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

   **[Alberto 
Mozzone](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=alberto.mozzone)**
 commented
   
   Ok, I'll try to explanate.
   My objective is to pack classes so the JAR can be a dependency, without any 
resource of the WAR. I want to:
   1. put all and only classes (compiled from "src/main/java") in a JAR file in 
"WEB-INF/lib" and outside of the WAR, to allow it to be a dependency (because 
it is installed/deployed in the repo and, moreover, it should be the same JAR);
   2. put all non-classes files (present in "src/main/resources" and properly 
filtered) in "WEB-INF/classes";
   
   According to what you did, only one of the listed objectives can be 
accomplished at a time, because:
   1. "archiveClasses" creates a JAR in "WEB-INF/lib" containing the classes 
derived from source files in "src/main/java" and the filtered copy of 
"src/main/resources" files;
   2. "attachClasses" creates a JAR named 
"\<artifactId>-\<version>-classes.jar" outside of the war and puts the classes 
derived from source files in "src/main/java" and the filtered copy of 
"src/main/resources" files under "WEB-INF/classes".
   
   HTH
   


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