flexmojos现在有啥版本?
点击查看:https://repository.sonatype.org/content/sites/maven-sites/flexmojos/
http://mvnrepository.com/artifact/org.sonatype.flexmojos/flexmojos-maven-plugin
4.0-RC版本的功能浏览表:
https://repository.sonatype.org/content/sites/maven-sites/flexmojos/4.0-RC2/plugin-info.html
官方flexmojos的主页功能介绍:
https://docs.sonatype.org/display/FLEXMOJOS/Index
flexmojos插件github地址:
https://github.com/velo/flexmojos
一篇flexmojos基础入门教程:
http://hegang793901.blog.163.com/blog/static/65143168201202915259711/
在命令行中创建flexmojos的archetype:
E:\_Project\_flex>mvn archetype:generate -DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup/ -DarchetypeGroupId=org.sonatype.flexmojos -DarchetypeArtifactId=flexmojos-archetypes-application -DarchetypeVersion=4.2-beta
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype defined by properties
Define value for property 'groupId': : com.mtea
Define value for property 'artifactId': : flexmojos-temp1
Define value for property 'version': 1.0-SNAPSHOT: :
Define value for property 'package': com.mtea: :
Confirm properties configuration:
groupId: com.mtea
artifactId: flexmojos-temp1
version: 1.0-SNAPSHOT
package: com.mtea
Y: : Y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: flexmojos-archetypes-application:4.2-beta
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.mtea
[INFO] Parameter: packageName, Value: com.mtea
[INFO] Parameter: package, Value: com.mtea
[INFO] Parameter: artifactId, Value: flexmojos-temp1
[INFO] Parameter: basedir, Value: E:\_Project\_flex
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: E:\_Project\_flex\flexmojos-temp1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.244s
[INFO] Finished at: Mon Apr 08 18:43:24 CST 2013
[INFO] Final Memory: 12M/989M
[INFO] ------------------------------------------------------------------------
E:\_Project\_flex>dir
驱动器 E 中的卷是 Workplace
卷的序列号是 1251-EC3E
E:\_Project\_flex 的目录
2013/04/08 周一 18:43 <DIR> .
2013/04/08 周一 18:43 <DIR> ..
2013/03/31 周日 20:36 <DIR> cairngorm-2.2.2
2013/03/31 周日 21:01 <DIR> cairngorm-src
2013/04/08 周一 16:21 <DIR> flex-gather
2013/03/31 周日 19:17 <DIR> flexblog
2013/03/16 周六 18:33 <DIR> flexmojos-docs
2013/03/27 周三 23:34 <DIR> flexmojos-introduction
2013/03/27 周三 23:34 <DIR> flexmojos-project-creator
2013/04/08 周一 18:43 <DIR> flexmojos-temp1
2013/04/01 周一 10:47 <DIR> sems-data-import-flex
0 个文件 0 字节
11 个目录 167,929,352,192 可用字节
E:\_Project\_flex>cd flexmojos-temp1
E:\_Project\_flex\flexmojos-temp1>dir
驱动器 E 中的卷是 Workplace
卷的序列号是 1251-EC3E
E:\_Project\_flex\flexmojos-temp1 的目录
2013/04/08 周一 18:43 <DIR> .
2013/04/08 周一 18:43 <DIR> ..
2013/04/08 周一 18:43 2,682 pom.xml
2013/04/08 周一 18:43 <DIR> src
1 个文件 2,682 字节
3 个目录 167,929,352,192 可用字节
E:\_Project\_flex\flexmojos-temp1>mvn org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:flashbuilder
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.713s
[INFO] Finished at: Mon Apr 08 18:44:26 CST 2013
[INFO] Final Memory: 12M/989M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'flashbuilder' in plugin org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta among available goals coverage-report, test-compile, compile-swc, wrapper, font2swf, test-run, cc-swc, generate, asdoc-report, dita-asdoc, manifest, compile-swf, cc, asdoc, configurator, trust, create-rsl, optimize-swf, copy-flex-resources, test-swc, sign-air, test-swf, source-view, sources -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
E:\_Project\_flex\flexmojos-temp1>
好尴尬! 为啥4.2-beta没有flashbuilder 的goal
再试下RC版本:
E:\_Project\_flex>mvn archetype:generate -DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup/ -DarchetypeGroupId=org.sonatype.flexmojos -DarchetypeArtifactId=flexmojos-archetypes-application -DarchetypeVersion=4.0-RC2
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype defined by properties
Define value for property 'groupId': : com.mtea
Define value for property 'artifactId': : flexmojos-temp2
Define value for property 'version': 1.0-SNAPSHOT: :
Define value for property 'package': com.mtea: :
Confirm properties configuration:
groupId: com.mtea
artifactId: flexmojos-temp2
version: 1.0-SNAPSHOT
package: com.mtea
Y: : Y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: flexmojos-archetypes-application:4.0-RC2
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.mtea
[INFO] Parameter: packageName, Value: com.mtea
[INFO] Parameter: package, Value: com.mtea
[INFO] Parameter: artifactId, Value: flexmojos-temp2
[INFO] Parameter: basedir, Value: E:\_Project\_flex
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: E:\_Project\_flex\flexmojos-temp2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.046s
[INFO] Finished at: Mon Apr 08 18:49:34 CST 2013
[INFO] Final Memory: 12M/989M
[INFO] ------------------------------------------------------------------------
E:\_Project\_flex>cd flexmojos-temp2\
E:\_Project\_flex\flexmojos-temp2>dir
驱动器 E 中的卷是 Workplace
卷的序列号是 1251-EC3E
E:\_Project\_flex\flexmojos-temp2 的目录
2013/04/08 周一 18:49 <DIR> .
2013/04/08 周一 18:49 <DIR> ..
2013/04/08 周一 18:49 1,937 pom.xml
2013/04/08 周一 18:49 <DIR> src
1 个文件 1,937 字节
3 个目录 167,929,339,904 可用字节
E:\_Project\_flex\flexmojos-temp2>mvn org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:flashbuilder
[INFO] Scanning for projects...
[WARNING] The POM for com.adobe.flex:compiler:pom:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:digest:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:optimizer:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:asdoc:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for net.sf.saxon:saxon-dom:jar:9.0 is missing, no dependency information available
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.mtea:flexmojos-temp2:1.0-SNAPSHOT (E:\_Project\_flex\flexmojos-temp2\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328, com.adobe.flex.compiler:digest:jar:4.5.1.21328, com.adobe.flex.compiler:optimizer:jar:4.5.1.21328, com.adobe.flex.compiler:asdoc:jar:4.5.1.21328, com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328, net.sf.saxon:saxon-dom:jar:9.0, com.adobe.flex:compiler:pom:4.5.1.21328: Failure to find com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: swf @ line 24, column 14
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
E:\_Project\_flex\flexmojos-temp2>mvn org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:flashbuilder -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] The POM for com.adobe.flex:compiler:pom:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:digest:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:optimizer:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:asdoc:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for net.sf.saxon:saxon-dom:jar:9.0 is missing, no dependency information available
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328, com.adobe.flex.compiler:digest:jar:4.5.1.21328, com.adobe.flex.compiler:optimizer:jar:4.5.1.21328, com.adobe.flex.compiler:asdoc:jar:4.5.1.21328, com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328, net.sf.saxon:saxon-dom:jar:9.0, com.adobe.flex:compiler:pom:4.5.1.21328: Failure to find com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @
[ERROR] Unknown packaging: swf @ line 24, column 14
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR]
[ERROR] The project com.mtea:flexmojos-temp2:1.0-SNAPSHOT (E:\_Project\_flex\flexmojos-temp2\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328, com.adobe.flex.compiler:digest:jar:4.5.1.21328, com.adobe.flex.compiler:optimizer:jar:4.5.1.21328, com.adobe.flex.compiler:asdoc:jar:4.5.1.21328, com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328, net.sf.saxon:saxon-dom:jar:9.0, com.adobe.flex:compiler:pom:4.5.1.21328: Failure to find com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
org.apache.maven.plugin.PluginResolutionException: Plugin org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328, com.adobe.flex.compiler:digest:jar:4.5.1.21328, com.adobe.flex.compiler:optimizer:jar:4.5.1.21328, com.adobe.flex.compiler:asdoc:jar:4.5.1.21328, com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328, net.sf.saxon:saxon-dom:jar:9.0, com.adobe.flex:compiler:pom:4.5.1.21328: Failure to find com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:215)
at org.apache.maven.project.DefaultProjectBuildingHelper.resolveExtensionArtifacts(DefaultProjectBuildingHelper.java:377)
at org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(DefaultProjectBuildingHelper.java:237)
at org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled(DefaultModelBuildingListener.java:106)
at org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire(ModelBuildingEventCatapult.java:43)
at org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelBuilder.java:1053)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:388)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:371)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:560)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:352)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328, com.adobe.flex.compiler:digest:jar:4.5.1.21328, com.adobe.flex.compiler:optimizer:jar:4.5.1.21328, com.adobe.flex.compiler:asdoc:jar:4.5.1.21328, com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328, net.sf.saxon:saxon-dom:jar:9.0, com.adobe.flex:compiler:pom:4.5.1.21328: Failure to find com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:207)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
... 27 more
[ERROR] Unknown packaging: swf @ line 24, column 14
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
E:\_Project\_flex\flexmojos-temp2>
这又是啥原因呢? 又尴尬了!
一不小心发现 Github 上的某项目介绍: https://github.com/justinjmoses/flexmojos-introduction
mvn org.sonatype.flexmojos:flexmojos-maven-plugin:3.9:flashbuilder
那尝试下3.9吧:
E:\_Project\_flex>mvn archetype:generate -DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup/ -DarchetypeGroupId=org.sonatype.flexmojos -DarchetypeArtifactId=flexmojos-archetypes-application -DarchetypeVersion=4.0-RC2
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype defined by properties
Define value for property 'groupId': : com.mtea
Define value for property 'artifactId': : flexmojos-flex-env
Define value for property 'version': 1.0-SNAPSHOT: :
Define value for property 'package': com.mtea: :
Confirm properties configuration:
groupId: com.mtea
artifactId: flexmojos-flex-env
version: 1.0-SNAPSHOT
package: com.mtea
Y: : Y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: flexmojos-archetypes-application:4.0-RC2
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.mtea
[INFO] Parameter: packageName, Value: com.mtea
[INFO] Parameter: package, Value: com.mtea
[INFO] Parameter: artifactId, Value: flexmojos-flex-env
[INFO] Parameter: basedir, Value: E:\_Project\_flex
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: E:\_Project\_flex\flexmojos-flex-env
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.750s
[INFO] Finished at: Mon Apr 08 19:39:07 CST 2013
[INFO] Final Memory: 12M/989M
[INFO] ------------------------------------------------------------------------
E:\_Project\_flex>cd flexmojos-flex-env
E:\_Project\_flex\flexmojos-flex-env>dir
驱动器 E 中的卷是 Workplace
卷的序列号是 1251-EC3E
E:\_Project\_flex\flexmojos-flex-env 的目录
2013/04/08 周一 19:39 <DIR> .
2013/04/08 周一 19:39 <DIR> ..
2013/04/08 周一 19:39 1,943 pom.xml
2013/04/08 周一 19:39 <DIR> src
1 个文件 1,943 字节
3 个目录 167,972,134,912 可用字节
E:\_Project\_flex\flexmojos-flex-env>mvn org.sonatype.flexmojos:flexmojos-maven-plugin:3.9:flashbuilder
[INFO] Scanning for projects...
[WARNING] The POM for com.adobe.flex:compiler:pom:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:digest:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:optimizer:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:asdoc:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328 is missing, no dependency information available
[WARNING] The POM for net.sf.saxon:saxon-dom:jar:9.0 is missing, no dependency information available
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.mtea:flexmojos-flex-env:1.0-SNAPSHOT (E:\_Project\_flex\flexmojos-flex-env\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328, com.adobe.flex.compiler:digest:jar:4.5.1.21328, com.adobe.flex.compiler:optimizer:jar:4.5.1.21328, com.adobe.flex.compiler:asdoc:jar:4.5.1.21328, com.adobe.flex.compiler:swcdepends:jar:4.5.1.21328, net.sf.saxon:saxon-dom:jar:9.0, com.adobe.flex:compiler:pom:4.5.1.21328: Failure to find com.adobe.flex.compiler:mxmlc:jar:4.5.1.21328 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: swf @ line 24, column 14
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
有问题,需要在pom中添加:
<repositories>
<repository>
<id>flex-mojos-repository</id>
<url>http://repository.sonatype.org/content/groups/flexgroup</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>flex-mojos-plugin-repository</id>
<url>http://repository.sonatype.org/content/groups/flexgroup</url>
</pluginRepository>
</pluginRepositories>
再来:
E:\_Project\_flex\flexmojos-flex-env>mvn org.sonatype.flexmojos:flexmojos-maven-plugin:3.9:flashbuilder
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building flexmojos-flex-env Flex 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> flexmojos-maven-plugin:3.9:flashbuilder (default-cli) @ flexmojos-flex-env >>>
[INFO]
[INFO] <<< flexmojos-maven-plugin:3.9:flashbuilder (default-cli) @ flexmojos-flex-env <<<
[INFO]
[INFO] --- flexmojos-maven-plugin:3.9:flashbuilder (default-cli) @ flexmojos-flex-env ---
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\flex-framework\4.5.1.21328\flex-framework-4.5.1.21328.pom
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\common-framework\4.5.1.21328\common-framework-4.5.1.21328.pom
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\advancedgrids\4.5.1.21328\advancedgrids-4.5.1.21328.rb.swc
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\charts\4.5.1.21328\charts-4.5.1.21328.rb.swc
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\framework\4.5.1.21328\framework-4.5.1.21328.rb.swc
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\mx\4.5.1.21328\mx-4.5.1.21328.rb.swc
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\osmf\4.5.1.21328\osmf-4.5.1.21328.rb.swc
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\rpc\4.5.1.21328\rpc-4.5.1.21328.rb.swc
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\spark\4.5.1.21328\spark-4.5.1.21328.rb.swc
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\textLayout\4.5.1.21328\textLayout-4.5.1.21328.rb.swc
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\flash-integration\4.5.1.21328\flash-integration-4.5.1.21328.rb.swc
[INFO] Unable to read jar manifest from E:\m2\repository\com\adobe\flex\framework\playerglobal\4.5.1.21328\playerglobal-4.5.1.21328.rb.swc
[INFO] Using source status cache: E:\_Project\_flex\flexmojos-flex-env\target\mvn-eclipse-cache.properties
[INFO] Not writing settings - defaults suffice
[INFO] Wrote Eclipse project for "flexmojos-flex-env" to E:\_Project\_flex\flexmojos-flex-env.
[INFO]
Sources for some artifacts are not available.
Please run the same goal with the -DdownloadSources=true parameter in order to check remote repositories for sources.
List of artifacts without a source archive:
o com.adobe.flex.framework:flex-framework:4.5.1.21328
o com.adobe.flex.framework:common-framework:4.5.1.21328
o com.adobe.flex.framework:advancedgrids:4.5.1.21328
o com.adobe.flex.framework:authoringsupport:4.5.1.21328
o com.adobe.flex.framework:charts:4.5.1.21328
o com.adobe.flex.framework:core:4.5.1.21328
o com.adobe.flex.framework:flash-integration:4.5.1.21328
o com.adobe.flex.framework:framework:4.5.1.21328
o com.adobe.flex.framework:mx:4.5.1.21328
o com.adobe.flex.framework:osmf:4.5.1.21328
o com.adobe.flex.framework:rpc:4.5.1.21328
o com.adobe.flex.framework:spark:4.5.1.21328
o com.adobe.flex.framework:sparkskins:4.5.1.21328
o com.adobe.flex.framework:spark_dmv:4.5.1.21328
o com.adobe.flex.framework:textLayout:4.5.1.21328
o com.adobe.flex.framework:framework:4.5.1.21328
o com.adobe.flex.framework:playerglobal:4.5.1.21328
o com.adobe.flex.framework:playerglobal:4.5.1.21328
o com.adobe.flexunit:flexunit:0.85
Javadoc for some artifacts is not available.
Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.
List of artifacts without a javadoc archive:
o com.adobe.flex.framework:flex-framework:4.5.1.21328
o com.adobe.flex.framework:common-framework:4.5.1.21328
o com.adobe.flex.framework:advancedgrids:4.5.1.21328
o com.adobe.flex.framework:authoringsupport:4.5.1.21328
o com.adobe.flex.framework:charts:4.5.1.21328
o com.adobe.flex.framework:core:4.5.1.21328
o com.adobe.flex.framework:flash-integration:4.5.1.21328
o com.adobe.flex.framework:framework:4.5.1.21328
o com.adobe.flex.framework:mx:4.5.1.21328
o com.adobe.flex.framework:osmf:4.5.1.21328
o com.adobe.flex.framework:rpc:4.5.1.21328
o com.adobe.flex.framework:spark:4.5.1.21328
o com.adobe.flex.framework:sparkskins:4.5.1.21328
o com.adobe.flex.framework:spark_dmv:4.5.1.21328
o com.adobe.flex.framework:textLayout:4.5.1.21328
o com.adobe.flex.framework:framework:4.5.1.21328
o com.adobe.flex.framework:playerglobal:4.5.1.21328
o com.adobe.flex.framework:playerglobal:4.5.1.21328
o com.adobe.flexunit:flexunit:0.85
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.221s
[INFO] Finished at: Mon Apr 08 19:40:52 CST 2013
[INFO] Final Memory: 14M/989M
[INFO] ------------------------------------------------------------------------
E:\_Project\_flex\flexmojos-flex-env>
--------------------------------华丽分割线-----------------------------------------
通过flash goal生成的项目如下:
导入maven项目:
出错,不理:
修改项目的属性:
无视,点击确定:
有错,等等处理:
选中错误,删除它,不影响,虽然我不知道怎么解决:
发现设计视图可以使用:
对项目进行maven clean:
在项目下新建一个文件夹,放入独立版本的debug版本的flash player,因为当你install的时候需要进行test:
当install完毕之后,尝试打开swf来跑跑看,看看是否能成功
总结: flexmojos的接触过程中很多碰壁,需要有耐心和精力去慢慢解决问题 !
相关推荐
标题 "flexmojos-threadlocaltoolkit-wrapper-6.0.1.zip" 提示我们这是一个与 FlexMojos 和 ThreadLocalToolkit 相关的软件包。FlexMojos 是一个 Maven 插件,专门用于构建和测试 Adobe Flex 和 ActionScript 项目。...
标题 "flexmojos-archetypes-library-6.0.1.zip" 暗示我们正在处理的是FlexMojo,一个用于构建Maven项目的框架,它提供了Archetypes,这些是预定义的项目模板,帮助开发者快速启动基于Flex的应用程序。6.0.1是该框架...
今天我们将深入探讨的是"flexmojos-configurator-7.0.0.zip"这个压缩包,它包含了名为"Model.zip"的一个开源项目,其主要实现了一个简单的类型化发布者观察者机制。这个机制源于https://git.iem.at/sciss/model的...
flexmojos-create-rsl-maven-plugin.zip,adobe flash rsl creator from file using flexmojos code base.rsl creator for flexmojos 5.*
JUnitInstrumentationTestRunner.zip,JUnitInstrumentationTestRunner是Android InstrumentationTestRunner的扩展,它添加了
java运行依赖jar包
java运行依赖jar包
java运行依赖jar包
对于Flex项目,需要添加`maven-flex-plugin`或`com.adobe.flexmojos:flexmojos-maven-plugin`,并指定Flex SDK的版本以及目标SWF版本等参数。 4. **设置Flex SDK**: Maven插件需要知道Flex SDK的位置,可以通过`...
1. **编译Flex源代码**:Flexmojos可以将ActionScript和MXML源代码编译为SWF(Shockwave Flash)文件,这是Flex应用的最终运行格式。 2. **资源管理**:处理项目中的资源配置,如图片、字体和其他非源码资源。 3. ...
FlexMojos 兼容模型验证器。 FlexMojos 提供了 6 个范围用作依赖项的链接: ... 仅与 Flex 和 AIR 应用程序(不是 SWC 或 ActionScript 3 项目)相关,这可确保 SWF 引用的库将在运行时一次加载到用户的 Fl
3. **:flexmojos**:虽然不是Flex Ant Tasks自带的任务,但FlexMojo是Maven插件中的一个目标,可与Ant集成,用于管理Flex项目。如果你的项目同时使用Ant和Maven,这个任务将很有用。 4. **zip** 和 **unzip**:这两...
Maven通过扩展插件,如`maven-flexmojos-plugin`,可以支持Flex项目的构建。这允许开发者使用Maven来管理Flex项目的依赖,执行编译、测试等操作,使得Flex开发也能融入到Maven的工作流程中。 总的来说,Maven通过...
让flexmojos modulefiles支持通配符文件集 模块输出不带版本号且按包结构输出 详细说明 http://blog.csdn.net/fidelhl/archive/2009/08/04/4406502.aspx