flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <christofer.d...@c-ware.de>
Subject AW: Flexmojos 7.0.1 NullPointerException while generating sources
Date Wed, 12 Nov 2014 22:38:04 GMT
Hi,

I guess the problem you are having is that you set the parameter "generatorToUse" to a generator
that is not available on your plugin classpath. 

So if you wanted to use the 2.3.2 granite generator, you have this in the configuration:
                    <generatorToUse>graniteds232</generatorToUse>
                    
And then you need this dependency in the plugins dependencies section:
                     <dependency>
                        <groupId>net.flexmojos.oss</groupId>
                        <artifactId>flexmojos-generator-graniteds-2.3.2</artifactId>
                        <version>7.0.1</version>
                    </dependency>

Hope this helps.

Chris


________________________________________
Von: 4xy <workingfenix@gmail.com>
Gesendet: Mittwoch, 12. November 2014 16:21
An: users@flex.apache.org
Betreff: Flexmojos 7.0.1 NullPointerException while generating sources

Hi folks,

I'm migrating my projects to flexmojos7.0.1 (flex-sdk4.13) from 6.0.1.
I have a project that generate the sources by using graniteds23 generator.

When I made changes in order flexmojos7.0.1 to be used I've got
NullPointerException.

[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.163s
[INFO] Finished at: Wed Nov 12 19:06:02 MSK 2014
[INFO] Final Memory: 14M/182M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
net.flexmojos.oss:flexmojos-maven-plugin:7.0.1:generate (default) on project
watchdog-swc: Execution default
of goal net.flexmojos.oss:flexmojos-maven-plugin:7.0.1:generate failed.
NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal net.flexmojos.oss:flexmojos-maven-plugin:7.0.1:generate (defa
ult) on project watchdog-swc: Execution default of goal
net.flexmojos.oss:flexmojos-maven-plugin:7.0.1:generate failed.
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
        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.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        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:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
default of goal net.flexmojos.oss:flexmojos-maven-plugin:7.0.1:genera
te failed.
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: java.lang.NullPointerException
        at
net.flexmojos.oss.generator.SimpleGeneratorMojo.execute(SimpleGeneratorMojo.java:156)
        at
net.flexmojos.oss.plugin.generator.GeneratorMojo.execute(GeneratorMojo.java:46)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        ... 20 more
[ERROR]

What can you suggest?




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flexmojos-7-0-1-NullPointerException-while-generating-sources-tp8699.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Mime
View raw message