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

   **[Piotr 
Tabor](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ptabor)** 
commented
   
   What commands have you been using to generate your war ?
   
   I have an idea that the scenario was:
   
   " \<plugin>
   \<groupId>org.apache.maven.plugins\</groupId>
   \<artifactId>maven-war-plugin\</artifactId>
   \<configuration>
   **<archiveClasses>false</archiveClasses><!--or missing-->**
   \</configuration>
   \</execution>
   \</executions>
   \</plugin>"
   
   then:
   mvn package
   
   after that user changed in pom.xml to: 
**<archiveClasses>true</archiveClasses>**
   
   then:
   mvn package
   
   In effect the final zzz.war constains both: classes and zzz.jar.
   
   It is reason of the target/zzz directory, which constains zzz classes ofter 
first "mvn package",
   and zzz.jar after the second "mvn package".
   
   Instead the second "mvn package" the user should use "mvn clean package", to 
run the
   war plugin on an empty target/zzz dir.
   
   If the scenario is true - I think that this issue is not a bug.
   
   


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