jira-importer commented on issue #468:
URL: 
https://github.com/apache/maven-deploy-plugin/issues/468#issuecomment-2771543538

   **[Karl Heinz 
Marbaise](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=khmarbaise)**
 commented
   
   This is an example for using a classifier which can be configured in pom by 
multiple executions of the maven-shade-plugin and no need for deploy-file...and 
of course not for using a different artifactId.
   
   ```xml
   <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-shade-plugin</artifactId>
          <configuration>
            <shadedArtifactAttached>true</shadedArtifactAttached>
          </configuration>
          <executions>
            <execution>
              <id>test</id>
              <phase>package</phase>
              <goals>
                <goal>shade</goal>
              </goals>
              <configuration>
                <shadedClassifierName>test</shadedClassifierName>
              </configuration>
            </execution>
            <execution>
              <id>dev</id>
              <phase>package</phase>
              <goals>
                <goal>shade</goal>
              </goals>
              <configuration>
                <shadedClassifierName>dev</shadedClassifierName>
              </configuration>
            </execution>
            <execution>
              <id>prod</id>
              <phase>package</phase>
              <goals>
                <goal>shade</goal>
              </goals>
              <configuration>
                <shadedClassifierName>prod</shadedClassifierName>
              </configuration>
            </execution>
          </executions>
        </plugin>
   ```
   
   In any of the configurations you can change the things you would to 
include/transform etc.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to