Java 使用maven 3和flexmojos maven插件获取MojoExecutor.execute异常

Java 使用maven 3和flexmojos maven插件获取MojoExecutor.execute异常,java,apache-flex,maven,flexmojos,flex-mojos,Java,Apache Flex,Maven,Flexmojos,Flex Mojos,我尝试将我的应用程序从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-SNAPSH

我尝试将我的应用程序从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>
有人能帮我吗


p、 s:这可能是与输出配置有关的吗?

不幸的是,您似乎忽略了实际的错误。您在构建结束时发布了错误报告,但通常flexmojos会在maven日志的稍早一点报告实际发生的错误。我想这会帮你解决你的问题。如果没有,只需发布日志输出,我们肯定能够帮助您。我强烈建议切换到最新的Flexmojos版本(至少6.0.1)。verion 4.0-RC2非常旧,不再维护和支持。
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(