我有一個mavenized flex項目,這與adobe sdke 4.6建立良好。 現在,我想用apache最近的sdk編譯它。 我maven化sdk並複製本地回購的依賴關係。 我mavenized的apache版本是:4.13.0.20140701。建設maven flex項目與柔性mojo取決於apache sdk失敗
我的聚甲醛是如下:
xmojos.oss:flexmojos-flex-compiler:jar:7.0.1 -> net.flexmojos.oss:flexmojos-generator-internal-compiler-iface:jar:7.0.1 -> org.apache.flex:compiler:pom:4.12.1.20140427: Failed to read artifact descriptor for org.apache.flex:compiler:pom:4.12.1.20140427: Could not transfer artifact org.apache.
似乎是彎曲的魔力總是使用默認的Apache版本而忽略礦山提供:
<properties>
<flexmojos.version>7.0.1</flexmojos.version>
<flex.version>4.13.0.20140701</flex.version>
<flash.version>11.1</flash.version>
</properties>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<plugins>
<plugin>
<groupId>net.flexmojos.oss</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<configuration>
<debug>true</debug>
<sourceFile>ComptaFlex.mxml</sourceFile>
<services>${basedir}/src/main/flex/services/services-config.xml</services>
<compilerWarnings>
<warn-no-constructor>false</warn-no-constructor>
</compilerWarnings>
</configuration>
<dependencies>
<!-- This handles a bug in maven which causes problems with flex resources -->
<dependency>
<groupId>net.flexmojos.oss</groupId>
<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
<version>${flexmojos.version}</version>
</dependency>
<!-- Without this FM will use the compiler configured in its master
pom, which will result in version conflicts -->
<dependency>
<groupId>org.apache.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.13.0.20140701</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
<plugin>
,因爲我得到了Maven的編譯錯誤。我怎麼能強制flexmojo與我的給定版本。
在下一個版本中,我目前正在研究Flexmojos將不直接依賴任何flex-artifact。爲了支持新的Falcon編譯器,我將「默認版本」的東西全部扔在板上。 – 2014-10-12 17:41:05
我建議你給Flexmojos 7.1.0-SNAPSHOT一個嘗試......這不應該有這種依賴關係了。 – 2014-11-04 09:28:02
你確定這個依賴存在嗎(maven不能在已知的倉庫中自動加載它)! – 2014-11-04 15:10:48