If they are never used independantly I'd say merge, otherwise I'd say fix the war plugin, merge the 2 web.xml's, and add that as the resulting one.
- Brett On 10/21/05, jerome lacoste <[EMAIL PROTECTED]> wrote: > I need to take a war and add some packages in certain places. > > I took the approach of using the assembly plugin to repackage the war. > I.e. I have now 2 projects A & B, A packages the war, B takes the war > and a couple of zip files as dependencies, and assemble the whole. > > It fails miserably because of the missing webxml attribute required by > the WebArchiver, triggered because the specified format is war. > > Should I consider this an issue of the assembly/WarAchiver > relationship and fix it? > > Or should I take another approach, like combine A&B projects into one > and move the assembly plugin execution as part of an earlier phase, > e.g. process-resources? > > > Here's the log: > > [DEBUG] -- end configuration -- > [INFO] [assembly:assembly] > [...] > [INFO] > ---------------------------------------------------------------------------- > [ERROR] BUILD ERROR > [INFO] > ---------------------------------------------------------------------------- > [INFO] Error creating assembly: webxml attribute is required > > [INFO] > ---------------------------------------------------------------------------- > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Error creating > assembly: webxml attribute is required > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > 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:585) > 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 > creating assembly: webxml attribute is required > at > org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:173) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) > ... 16 more > Caused by: org.codehaus.plexus.archiver.ArchiverException: webxml > attribute is required > at > org.codehaus.plexus.archiver.war.WarArchiver.initZipOutputStream(WarArchiver.java:139) > at > org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:327) > at > org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchive(AbstractZipArchiver.java:229) > at > org.apache.maven.plugin.assembly.AssemblyMojo.createArchive(AssemblyMojo.java:215) > at > org.apache.maven.plugin.assembly.AssemblyMojo.execute(AssemblyMojo.java:165) > ... 18 more > [INFO] > ---------------------------------------------------------------------------- > [INFO] Total time: 7 seconds > [INFO] Finished at: Fri Oct 21 12:44:25 CEST 2005 > [INFO] Final Memory: 3M/7M > [INFO] -------------------------------------------- > > --------------------------------------------------------------------- > 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]
