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

   **[Jimmy 
Praet](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jpraet)** 
commented
   
   These artifacts have type "xsd" or "wsdl", but are packaged as zip files.
   
   components.xml
   
   ```
   ...
   <component>
     <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
     <role-hint>wsdl</role-hint>
     
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
     <configuration>
       <type>wsdl</type>
       <extension>zip</extension>
       <language>java</language>
       <addedToClasspath>true</addedToClasspath>
     </configuration>
   </component>
   ...
   ```
   
   But you make a very good point as it turns out that the servlet spec only 
talks about jar files in the WEB-INF/lib directory. I just tested it and 
indeed, it doesn't work even when I put these zip files manually in the 
WEB-INF/lib folder.
   
   However, if I were to change the components.xml to package these artifacts 
as jar, then the maven-war-plugin will still not copy them to the WEB-INF/lib. 
That's because it checks the artifact type, not the file extension.
   


-- 
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