我将使用Adobe Flex 4.6和FlexMojos 4的应用程序迁移到Apache Flex 4.14和FlexMojos 7.当我尝试执行" mvn build"我收到此错误:
PlaceholderFragment
这是我的pom.xml:
newInstance
我正在使用Maven 3.2.5和Java 1.6.0_14:
[ERROR] Unresolveable build extension: Plugin net.flexmojos.oss:flexmojos-maven-plugin:7.0.1 or one of its dependencies could not be resolved:
The following artifacts could not be resolved:
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
org.apache.flex.compiler:digest:jar:4.12.1.20140427,
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom:4.12.1.20140427: Failure to find
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
http://repository.sonatype.org/content/groups/flexgroup/ was cached in the local repository, resolution will not be reattempted until the update interval of flex-mojos-repository has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: swf @ line 5, column 13
这些是我遵循的步骤:
我使用安装程序下载了Apache Flex SDK:
我使用Mavenizer创建了此SDK的Maven版本:
{{3}}
然后我在我的/root/.m2/repository/文件夹中部署了mavenized版本,并用pom.xml执行了mvn编译。
答案 0 :(得分:0)
顺便说一下,mavenizer已经发展了很多......通过“.mvn / extensions.xml”文件使用maven扩展。这应该会自动下载,转换和安装您引用的Flex / Flash / Air资源。因此,要升级到下一个Flex / Flash / Air版本,只需引用一个新版本,插件将负责其余部分(只要版本确实存在)。在此处查看更多详细信息:https://cwiki.apache.org/confluence/display/FLEX/Preparing+FDKs+for+Maven+builds(请特别注意以下章节:使用flex-sdk-converter-maven-extension准备FDK资源)