Is there any reason you use FM 4.0 beta 3? Beta 6 is out for a few days,
you could give it a try.
Did you check for compile errors? Everytime I see this message, some
compile errors occured. You have to check the compiler output, which you
can find above the stacktrace stuff.
Dominik
Am 23.03.2011 14:17, schrieb Athas:
Hi,
We were previously building a project with FlexMojos 3.8 however we
wish to move to flexmojos 4 to allow for code coverage anylisis.
However our build now fails with the following message.
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0
-beta-3:compile-swf (default-compile-swf) on project MainClient: Got 4
errors bu
ilding project, check logs -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal o
rg.sonatype.flexmojos:flexmojos-maven-plugin:4.0-beta-3:compile-swf
(default-com
pile-swf) on project MainClient: Got 4 errors building project, check
logs
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
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:
319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoFailureException: Got 4 errors
building p
roject, check logs
at
org.sonatype.flexmojos.plugin.AbstractMavenMojo.checkResult(AbstractM
avenMojo.java:282)
at
org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.execu
teCompiler(AbstractFlexCompilerMojo.java:1671)
at
org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody0(
MxmlcMojo.java:142)
at
org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody1$
advice(MxmlcMojo.java:36)
at
org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody2(
MxmlcMojo.java:136)
at
org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody3$
advice(MxmlcMojo.java:14)
at
org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody4(
MxmlcMojo.java:1)
at
org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody5$
advice(MxmlcMojo.java:17)
at
org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.ja
va:1)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:107)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
our pom is as follows.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2008 Marvin Herman Froeder Licensed under the Apache
License, Version 2.0 (the "License"); you may not use this file
except
in compliance with the License. You may obtain a copy of the
License
at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
applicable law or agreed to in writing, software distributed
under
the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
OR
CONDITIONS OF ANY KIND, either express or implied. See the
License
for
the specific language governing permissions and limitations
under
the
License.
-->
<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">
<parent>
<groupId>com.twentyonefifty</groupId>
<artifactId>PortalClientParent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>net.paypoint</groupId>
<version>0.0.1-SNAPSHOT</version>
<artifactId>MainClient</artifactId>
<packaging>swf</packaging>
<name>Main Portal Client (Launcher)</name>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-beta-3</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.1.0.16248</version>
<type>pom</type>
</dependency>
</dependencies>
<configuration>
<useM2Repo>true</useM2Repo>
<sourceFile>MainClient.mxml</sourceFile>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.1.0.16248</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flexunit</groupId>
<artifactId>flexunit</artifactId>
<version>4.0.0</version>
<type>swc</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.asfusion.mate</groupId>
<artifactId>mate-framework</artifactId>
<version>0.9</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.google.code.flexlib</groupId>
<artifactId>flexlib</artifactId>
<version>2.5</version>
<type>swc</type>
</dependency>
</dependencies>
<profiles>
<profile>
<!--
https://docs.sonatype.org/pages/viewpage.action?pageId=2949459
-->
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>
just changing the flexmojos-maven-plugin version to 3.8 allows the
project to build successfully.
Any ideas?
Wes
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/