IT's a "bug"" that has already been fixed in SVN. However, you probably
don't want war:war on it's own (which won't do anything bug assemble a
war from the target files, if present) - you probably want "package"
(which compiles and tests, etc), which will not have this problem.
- Brett
solo turn wrote:
hi,
i get the following error:
$ m2 war:war
[INFO]
----------------------------------------------------------------------------
[INFO] Building com.ubs.ocr:ocr:war:1.0-SNAPSHOT
[INFO]
----------------------------------------------------------------------------
[INFO] maven-war-plugin: resolved to version 2.0-alpha-2 from local repository
[INFO] [war:war]
[INFO] Copy webapp resources to c:\mavenprojects\myp\target\myp
[INFO] Assembling webapp ocr in g:\mavenprojects\myp\target/myp
[INFO]
----------------------------------------------------------------------------
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error assembling WAR
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:217)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.
java:169)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
90)
at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
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:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: java.lang.NullPointerException
at
org.codehaus.plexus.util.FileUtils.copyFileToDirectory(FileUtils.java:728)
at org.apache.maven.plugin.war.WarMojo.buildWebapp(WarMojo.java:173)
at
org.apache.maven.plugin.war.WarMojo.generateExplodedWebapp(WarMojo.java:194)
at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:230)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:212)
can it be that the path:
[INFO] Assembling webapp ocr in g:\mavenprojects\myp\target/myp
is the cause?
-solo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]