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

   **[rich 
zaleski](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rzaleski)**
 commented
   
   It would be great if this would be fixed.  It seems the maven-source-plugin 
works properly, but the maven-war-plugin does not.  I would like to generate 
primary and secondary artifacts using a single pom file. It seems overly 
complex to have to make modules out of everything.
   
        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-jar-plugin</artifactId>
           <executions>
             <execution>
               <id>default-jar</id>
               <phase>package</phase>
               <goals>
                 <goal>jar</goal>
               </goals>
             </execution>
           </executions>
         </plugin>
                
         <plugin>
           <artifactId>maven-war-plugin</artifactId>
           <configuration>
             <warName>cds_commons</warName>
           </configuration>
           <executions>
             <execution>
               <id>attach-war</id>
               <phase>package</phase>
               <goals>
                 <goal>war</goal>
               </goals>
             </execution>
           </executions>
         </plugin>
         
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-source-plugin</artifactId>
           <executions>
             <execution>
              <id>attach-sources</id>
              <phase>package</phase>
              <goals>
                <goal>jar</goal>
              </goals>
           </execution>
          </executions>
       </plugin>
   
   < /plugins>
   \</build>
   


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