maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: maven-license-plugin NPE
Date Thu, 11 Apr 2013 10:36:44 GMT
This mojo is maintained here http://code.google.com/p/maven-license-plugin/
So use this place for any questions.

Maybe you can try this one too http://mojo.codehaus.org/license-maven-plugin/

2013/4/11 David Hoffer <dhoffer6@gmail.com>:
> I have a multi-module build I'm running the license:format goal on.  It
> works fine for several modules then fails with NPE on the deployment-parent
> module which is a pom type module (we have several like that), any ideas
> why it would fail on this one?
>
> I tried versions 1.9.0 and 1.10.b1 and get the same error.
>
> [ERROR] Failed to execute goal
> com.mycila.maven-license-plugin:maven-license-plu
> gin:1.10.b1:format (default-cli) on project deployment-parent: Execution
> default
> -cli of goal
> com.mycila.maven-license-plugin:maven-license-plugin:1.10.b1:format
>  failed. NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal c
> om.mycila.maven-license-plugin:maven-license-plugin:1.10.b1:format
> (default-cli)
>  on project deployment-parent: Execution default-cli of goal
> com.mycila.maven-li
> cense-plugin:maven-license-plugin:1.10.b1:format 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.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: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(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:409)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> 352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default-c
> li of goal
> com.mycila.maven-license-plugin:maven-license-plugin:1.10.b1:format f
> ailed.
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
> BuildPluginManager.java:110)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
> .java:209)
>         ... 19 more
> Caused by: java.lang.NullPointerException
>         at
> com.google.code.mojo.license.header.HeaderParser.hasHeader(HeaderPars
> er.java:142)
>         at
> com.google.code.mojo.license.header.HeaderParser.<init>(HeaderParser.
> java:63)
>         at
> com.google.code.mojo.license.document.Document.parseHeader(Document.j
> ava:125)
>         at
> com.google.code.mojo.license.LicenseFormatMojo$1.onHeaderNotFound(Lic
> enseFormatMojo.java:55)
>         at
> com.google.code.mojo.license.AbstractLicenseMojo$1.run(AbstractLicens
> eMojo.java:265)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
> 1)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
> 1)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1145)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:615)
>         at java.lang.Thread.run(Thread.java:722)



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message