flex4 - Getting error "org.apache.flex.compiler:mxmlc:jar" when trying to compile with FlexMojos 7.0.1 and Apache Flex 4.14 -
i'm migrating application had working adobe flex 4.6 , flexmojos 4 apache flex 4.14 , flexmojos 7. when try execute "mvn build" i'm getting error:
[error] unresolveable build extension: plugin net.flexmojos.oss:flexmojos-maven-plugin:7.0.1 or 1 of dependencies not resolved: following artifacts not 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 find org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in http://repository.sonatype.org/content/groups/flexgroup/ cached in local repository, resolution not reattempted until update interval of flex-mojos-repository has elapsed or updates forced -> [help 2] [error] unknown packaging: swf @ line 5, column 13
this pom.xml:
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.cognifit.cognifitsocialflex</groupid> <artifactid>flexcognifit</artifactid> <packaging>swf</packaging> <name>cognifitsocialflex</name> <version>11.0.2.10</version> <properties> <flex.version>4.14.1.20150325</flex.version> <flashplayer.version>11.1</flashplayer.version> </properties> <build> <sourcedirectory>src</sourcedirectory> <directory>${project.basedir}/target/${project.version}</directory> <plugins> <plugin> <groupid>net.flexmojos.oss</groupid> <artifactid>flexmojos-maven-plugin</artifactid> <version>7.0.1</version> <extensions>true</extensions> <configuration> <sourcefile>cpcsocialflex.mxml</sourcefile> <swfversion>13</swfversion> <targetplayer>11.1.0</targetplayer> <localescompiled> <locale>ar_ma</locale> <locale>de_at</locale> <locale>de_ch</locale> <locale>de_de</locale> <locale>el_gr</locale> <locale>en_us</locale> <locale>en_za</locale> <locale>es_es</locale> <locale>es_mx</locale> <locale>fr_fr</locale> <locale>he_il</locale> <locale>it_it</locale> <locale>ja_jp</locale> <locale>ko_kr</locale> <locale>nl_nl</locale> <locale>pt_br</locale> <locale>pt_pt</locale> <locale>ru_ru</locale> <locale>sr_rs</locale> <locale>tr_tr</locale> <locale>zh_cn</locale> <locale>zh_hk</locale> </localescompiled> <dependencies> <dependency> <groupid>org.apache.flex</groupid> <artifactid>compiler</artifactid> <version>${flex.version}</version> <type>pom</type> </dependency> </dependencies> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupid>org.apache.flex</groupid> <artifactid>framework</artifactid> <version>${flex.version}</version> <type>pom</type> </dependency> <dependency> <groupid>com.adobe.flash.framework</groupid> <artifactid>playerglobal</artifactid> <version>${flashplayer.version}</version> <type>swc</type> </dependency> <dependency> <groupid>com.adobe.flex.framework.themes</groupid> <artifactid>halo</artifactid> <type>swc</type> <scope>theme</scope> <version>${flex.version}</version> </dependency> </dependencies> </project>
i'm using maven 3.2.5 , java 1.6.0_14:
apache maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14t12:29:23-05:00) maven home: /usr/local/maven java version: 1.6.0_14, vendor: sun microsystems inc. java home: /usr/java/jdk1.6.0_14/jre default locale: en_us, platform encoding: ansi_x3.4-1968 os name: "linux", version: "2.6.21.7-2.fc8xen", arch: "i386", family: "unix"
these steps have followed:
i downloaded apache flex sdk installer:
- apache flex sdk 4.14.1
- air 18.0
- flash player 18
i have used mavenizer create maven version of sdk:
then have deployed mavenized version in /root/.m2/repository/ folder , executed mvn compile pom.xml.
by way in meanwhile mavenizer has evolved quite bit ... making usage of maven extensions ".mvn/extensions.xml" files. should automatically download, convert , install flex/flash/air resources reference. upgrade next flex/flash/air version, reference new version , plugin take care of rest (as long version exists). see more details here: https://cwiki.apache.org/confluence/display/flex/preparing+fdks+for+maven+builds (pay special attention chapter: prepare fdk resources using flex-sdk-converter-maven-extension)
Comments
Post a Comment