Skip to content

Instantly share code, notes, and snippets.

@ctrueden
Created March 27, 2012 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctrueden/2220296 to your computer and use it in GitHub Desktop.
Save ctrueden/2220296 to your computer and use it in GitHub Desktop.
Example exception from license-maven-plugin 1.0
[WARNING] skip failed file : Could not extract header on file /Users/curtis/code/ImageJ/imagej/core/ext/src/test/java/imagej/ext/plugin/PluginDiscovery.java for reason copyright [Copyright (C) 2009 - 2012 Board of Regents of the University of
Wisconsin-Madison, Broad Institute of MIT and Harvard, and Max Planck
Institute of Molecular Cell Biology and Genetics.] is not valid
org.codehaus.mojo.license.header.InvalideFileHeaderException: Could not extract header on file /Users/curtis/code/ImageJ/imagej/core/ext/src/test/java/imagej/ext/plugin/PluginDiscovery.java for reason copyright [Copyright (C) 2009 - 2012 Board of Regents of the University of
Wisconsin-Madison, Broad Institute of MIT and Harvard, and Max Planck
Institute of Molecular Cell Biology and Genetics.] is not valid
at org.codehaus.mojo.license.UpdateFileHeaderMojo.processFile(UpdateFileHeaderMojo.java:776)
at org.codehaus.mojo.license.UpdateFileHeaderMojo.prepareProcessFile(UpdateFileHeaderMojo.java:689)
at org.codehaus.mojo.license.UpdateFileHeaderMojo.processCommentStyle(UpdateFileHeaderMojo.java:668)
at org.codehaus.mojo.license.UpdateFileHeaderMojo.doAction(UpdateFileHeaderMojo.java:596)
at org.codehaus.mojo.license.AbstractLicenseMojo.execute(AbstractLicenseMojo.java:186)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
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:319)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment