我尝试将我的应用程序从Flex Sdk 3.6.0.16995迁移到flex Sdk 4.5.1.21328。我已经改变了应用程序的pom。新的pom是:
<parent>
<groupId>it.fax.stand.client</groupId>
<artifactId>fax-solution-client-pom</artifactId>
<version>1.7.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>it.fax.stand.client</groupId>
<version>1.7.0.0-SNAPSHOT</version>
<artifactId>CommonComponents</artifactId>
<packaging>swc</packaging>
<name>CommonComponents Library</name>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/flex</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin><!-- Flex (SWC and SWF) compilation -->
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<configuration>
<configurationReport>true</configurationReport>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<version>${flex.sdk4.version}</version>
<artifactId>flex-framework</artifactId>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<version>${flex.sdk4.version}</version>
<artifactId>framework</artifactId>
<type>swc</type>
<scope>external</scope>
</dependency>
<dependency>
<groupId>flexlib</groupId>
<artifactId>flexlib</artifactId>
<version>2.5-flex3</version>
<type>swc</type>
<scope>external</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>datavisualization</artifactId>
<version>4.5.0.17855</version>
<type>swc</type>
<scope>external</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>datavisualization</artifactId>
<version>4.5.0.17855</version>
<type>swc</type>
<classifier>en_US.rb</classifier>
<scope>external</scope>
</dependency>
<dependency>
<groupId>com.adobe</groupId>
<artifactId>as3corelib</artifactId>
<version>0.93</version>
<type>swc</type>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
当我使用&#34; mvn clean install -X&#34;在命令行中我得到:
43677 [main] [ERROR] org.apache.maven.cli.MavenCli - Failed to execute goal org.
sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:compile-swc (default-compile-s
wc) on project CommonComponents: Got 2 errors building project, check logs -> [H
elp 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:compile-swc (default-compil
e-swc) on project CommonComponents: Got 2 errors building project, check logs
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:414)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
357)
Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors building p
roject, check logs
at org.sonatype.flexmojos.plugin.AbstractMavenMojo.checkResult(AbstractM
avenMojo.java:294)
at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.execu
teCompiler(AbstractFlexCompilerMojo.java:1672)
at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody0(
CompcMojo.java:223)
at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody1$
advice(CompcMojo.java:36)
at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody2(
任何人都可以帮助我吗?
p.s:在输出配置中可能是相对的吗?