jira-importer commented on issue #201: URL: https://github.com/apache/maven-war-plugin/issues/201#issuecomment-2967852295
**[Karl Heinz Marbaise](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=khmarbaise)** commented First thanks for your feedback. So i have checked with your example project...and i will get the same result as you described...based on the layout of your test project: ``` . ├── pom.xml ├── src │ └── main │ ├── java │ │ └── org │ │ └── apache │ │ └── issues │ │ └── MWAR356Test.java │ ├── resources │ │ └── test.properties │ └── webapp │ ├── META-INF │ │ └── MANIFEST.MF │ └── WEB-INF │ ├── lib │ └── web.xml ``` So the result is as you described: ``` Archive: target/mwar-356-0.0.1-SNAPSHOT.war testing: META-INF/ OK testing: META-INF/MANIFEST.MF OK testing: WEB-INF/ OK testing: WEB-INF/classes/ OK testing: WEB-INF/lib/ OK testing: WEB-INF/lib/mwar-356-0.0.1-SNAPSHOT.jar OK testing: WEB-INF/web.xml OK testing: META-INF/maven/ OK testing: META-INF/maven/org.apache.issues/ OK testing: META-INF/maven/org.apache.issues/mwar-356/ OK testing: META-INF/maven/org.apache.issues/mwar-356/pom.xml OK testing: META-INF/maven/org.apache.issues/mwar-356/pom.properties OK No errors detected in compressed data of target/mwar-356-0.0.1-SNAPSHOT.war. ``` So based on the configuration for the maven-war-plugin you have made in the project example: `<archiveClasses>true</archiveClasses>` which means to create a jar file of the the classes which are in `src/main/java` including properties...If you don't like to create an archive of the classes in `src/main/java` you can simply omit this configuration option which will result in the following: ``` Archive: target/mwar-356-0.0.1-SNAPSHOT.war testing: META-INF/ OK testing: META-INF/MANIFEST.MF OK testing: WEB-INF/ OK testing: WEB-INF/classes/ OK testing: WEB-INF/classes/org/ OK testing: WEB-INF/classes/org/apache/ OK testing: WEB-INF/classes/org/apache/issues/ OK testing: WEB-INF/classes/org/apache/issues/MWAR356Test.class OK testing: WEB-INF/classes/test.properties OK testing: WEB-INF/web.xml OK testing: META-INF/maven/ OK testing: META-INF/maven/org.apache.issues/ OK testing: META-INF/maven/org.apache.issues/mwar-356/ OK testing: META-INF/maven/org.apache.issues/mwar-356/pom.xml OK testing: META-INF/maven/org.apache.issues/mwar-356/pom.properties OK No errors detected in compressed data of target/mwar-356-0.0.1-SNAPSHOT.war. ``` You can the `<attachClasses>true</attachClasses>` option independent of the `<archiveClasses>true</archiveClasses>` so you only get an supplemental archive being generated which contains the content of `src/main/java` including `src/main/resources` as a reusable archive. If you use filtering for the `src/main/resources` parts they will be filtered as usual... So in the end i have to admit i don't see the problem you have? Cause based on the given description the files are not put into `src/main/resources`....May be i misunderstand a thing here...Can you please elaborate more what you problem is ? -- 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