jira-importer commented on issue #190:
URL: 
https://github.com/apache/maven-war-plugin/issues/190#issuecomment-2967849152

   
**[mchesney](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mchesney)**
 commented
   
   I am attaching the workaround I use which supports the use case where all 
webapp dependencies are in the EAR. The workaround is activated when the the 
archive.manifest.addClasspath configuration property is set to true like so:
   
       <plugins>
            <plugin>
                 <artifactId>maven-war-plugin</artifactId>
                 <configuration>
                          <archive>
                                   <manifest>
                                            <addClasspath>true</addClasspath>
                                   </manifest>
                          </archive>
                 </configuration>
            </plugin>
       </plugins>
   
   Not bundling runtime/compile dependencies for a WAR packaged within an EAR 
is necessary because of the J2EE spec application assembly requirement 8.3.1e: 
There must be only one version of each class in an application.
   
   This workaround does not support the use case of a combination of EAR and 
WEB-INF/lib dependencies which the J2EE spec supports.
   


-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to