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

   **[Eric 
Smalling](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=esmalling)**
 commented
   
   FYI: We've found that if you add a classifier to the jar that causes the 
filename to differ from the .war file, the install:install step will grab both 
and not exhibt the issue described here.
   
   i.e.
   
       <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-jar-plugin</artifactId>
               <executions>
                       <execution>
                               <id>my-web-jar</id>
                               <phase>package</phase>
                               <goals>
                                       <goal>jar</goal>
                               </goals>
                               <configuration>
                                       <classifier>something</classifier>
                               </configuration>
                       </execution>
               </executions>
       </plugin>
   
   (Although a better solution is to refactor your jar content into a "common" 
module though)
   


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