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

   **[Karl Heinz 
Marbaise](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=khmarbaise)**
 commented
   
   The `-classes.jar` artifact (attached) is exactly for the purpose to be 
consumed as a dependency for others which contains `src/main/java` classes 
including the usual filtered/non filtered resources from `src/main/resources` 
(depending on your configuration).
   
   If you like to have resources which are only for the war to be put into `/` 
of the WAR file [you have to go via 
this](http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html):
   
   ```xml
   <configuration>
        <webResources>
            <resource>
              <!-- this is relative to the pom.xml directory -->
              <directory>src/main/webresources</directory>
            </resource>
        </webResources>
   </configuration>
   ```
   
   If you add a folder like `src/main/webresources/WEB-INF/` in the 
`webresources` folder those files will end up in `WEB-INF` folder...Those files 
will not be put into the `-classes` jar archive...
   


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