2 Replies Latest reply on Oct 21, 2009 6:30 AM by Manikandan.Masilamani

    Unable to compile the MXML files, using flex mojos plugin-Maven

    Manikandan.Masilamani

      Hi,

       

      I am using the flex mojos plugin to compile the mxml in maven.

       

       

      <plugin>
            <groupId>org.sonatype.flexmojos</groupId>
            <artifactId>flexmojos-maven-plugin</artifactId>
            <version>3.3.0</version>
            <extensions>true</extensions>
            <configuration>
             <!--<sourceFile>text.mxml</sourceFile>-->
             <configFile>${basedir}/../../assembly/src/web/flex/flex-config.xml</configFile>
         <resourceBundlePath>${basedir}/../../assembly/src/web/flex/locales/{locale}</resourceBund lePath>
         <includeResourceBundles>
           <bundle>collections</bundle>
           <bundle>containers</bundle>
           <bundle>core</bundle>
           <bundle>effects</bundle>
           <bundle>WebResources</bundle>
           <bundle>skins</bundle>
           <bundle>styles</bundle>
           <bundle>SharedResources</bundle>
         </includeResourceBundles>
         <locales>
                     <locale>en_US</locale>
                  </locales>
         <moduleFiles>
          <module>text.mxml</module>
         </moduleFiles>
            </configuration>
           </plugin>

       

      while compiling, getting the following error.

       

      [ERROR] Unable to resolve resource bundle "containers" for locale "en_US".
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error compiling!
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Error compiling!
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor .java:719)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifec ycleExecutor.java:556)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor. java:535)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL ifecycleExecutor.java:387)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE xecutor.java:348)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :180)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Error compiling!
      at org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.build(AbstractFlexCompilerMojo.j ava:2369)
      at org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.run(AbstractFlexCompilerMojo.jav a:1197)
      at org.sonatype.flexmojos.AbstractIrvinMojo.execute(AbstractIrvinMojo.java:179)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor .java:694)
      ... 17 more

       

      Thanx in advance.

        • 1. Try checking this things, hope it helps
          carlaguggino

          It looks like your project is missing some of the core library references. Make sure all the default imports in the Library Path are still present.

           

          Try the basic (maybe you did already) Can you create a basic AIR project (without any remoting) and compile it?

           

          And just to confirm, the compile option you add is "-services C:/path/..../WEB-INF/flex/services-config.xml". Is that right?

           

          -locale en_US -services C:/wamp/www/Weborb/WEB-INF/flex/services-config.xml

           

          check a common mistake that is putting a "coma" behind US," that should make it...

           

          Hope it helps

           

          Carla Guggino

          Mi tienda informatica

          • 2. Re: Try checking this things, hope it helps
            Manikandan.Masilamani Level 1

            Hi,

             

            Thankx for the reply.

             

            All the default core librarys are included in the project lib.

             

            I have checked with the simple AIR project.  we dont have any service configuration in our project. do we need to configure the service-config.xml?

             

            and we are tried to compile one mxml files of our application.

             

            getting the following error.

             

            is thr any properties files missing or not reffered. if possible pls give sample code to compile the mxml page using the flex mojos plugin will be usefull.

             

            [ERROR] Unable to resolve resource bundle "containers" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "rpc" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "rpc" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "rpc" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [ERROR] Unable to resolve resource bundle "messaging" for locale "en_US".
            [INFO] ------------------------------------------------------------------------
            [ERROR] BUILD ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] Error compiling!
            [INFO] ------------------------------------------------------------------------
            [INFO] Trace
            org.apache.maven.lifecycle.LifecycleExecutionException: Error compiling!
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor .java:719)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifec ycleExecutor.java:556)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor. java:535)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL ifecycleExecutor.java:387)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE xecutor.java:348)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :180)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
            at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
            at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
            at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
            at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
            Caused by: org.apache.maven.plugin.MojoExecutionException: Error compiling!
            at org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.build(AbstractFlexCompilerMojo.j ava:2369)
            at org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.run(AbstractFlexCompilerMojo.jav a:1197)
            at org.sonatype.flexmojos.AbstractIrvinMojo.execute(AbstractIrvinMojo.java:179)
            at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor .java:694)
            ... 17 more

             

             

            Thanks in advance.