jira-importer commented on issue #224:
URL:
https://github.com/apache/maven-war-plugin/issues/224#issuecomment-2967853956
**[Piotr
Tabor](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ptabor)**
commented
The issue depends on org.codehaus.plexus.archiver.war.WarArchiver class
(initZipOutputStream method), which doesn't allow to create
war file without "web.xml" descriptor. The Ant WAR task doesn't allow this
neither (org.apache.tools.ant.taskdefs.War)
When I changed the maven-war-plugin to ignore lack of the file (warn only),
I got the result:
[INFO] Error assembling WAR: webxml attribute is required (or pre-existing
WEB-INF/web.xml if executing in update mode)
[INFO]
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling
WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing
in update mode)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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 assembling
WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing
in update mode)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:146)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: webxml attribute
is required (or pre-existing WEB-INF/web.xml if executing in update mode)
at
org.codehaus.plexus.archiver.war.WarArchiver.initZipOutputStream(WarArchiver.java:148)
at
org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:348)
at
org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchive(AbstractZipArchiver.java:250)
at
org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:402)
at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:188)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:130)
... 18 more
So I think, the issue shouldn't be fixed. The possibility to cope with
overlay's problem will be provided in other way.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]