2 Replies Latest reply on Jul 30, 2011 12:51 PM by leonardohelman

    Flex Build using Maven with org.sonatype.flexmojos is failing

    Pstalwalkflex

      Hi,

       

      I am trying to create and build a flex library project (.swc) using maven .

      I am able to create directory structure but build is failing.

       

      Maven version : apache-maven-3.0.2

       

       

      Ø  mvn  archetype:generate

      -DarchetypeGroupId=org.sonatype.flexmojos

      -DarchetypeArtifactId=flexmojos-archetypes-library

      -DarchetypeVersion=3.8

      -DgroupId=com.testing

      -DartifactId=sampleflexproject2 –e

       

      This created the basic project skeleton as per my need.

      Ø  mvn clean install –e –X ,

       

      I get below exception while executing.  (I could see my local repo is getting build as well.)

       

      [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0

      -pre-alpha-1:compile-swc (default-compile-swc) on project sampleflexproject2: Th

      e parameters 'output' for goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0

      -pre-alpha-1:compile-swc are missing or invalid -> [Help 1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o

      rg.sonatype.flexmojos:flexmojos-maven-plugin:4.0-pre-alpha-1:compile-swc (defaul

      t-compile-swc) on project sampleflexproject2: The parameters 'output' for goal o

      rg.sonatype.flexmojos:flexmojos-maven-plugin:4.0-pre-alpha-1:compile-swc are mis

      sing or invalid

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor

      .java:221)

              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:585)

              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.PluginParameterException: The parameters 'out

      put' for goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-pre-alpha-1:comp

      ile-swc are missing or invalid

              at org.apache.maven.plugin.internal.DefaultMavenPluginManager.validatePa

      rameters(DefaultMavenPluginManager.java:688)

              at org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePl

      uginFields(DefaultMavenPluginManager.java:580)

              at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfigu

      redMojo(DefaultMavenPluginManager.java:525)

              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default

      BuildPluginManager.java:98)

              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor

      .java:209)

       

      ----------------------------------------------------

       

      Do you foresee any obvious  issue in this ? I am building flex project using maven first time.