Maven | Use Outputfile configuration to rename Shaded Jar name
<excludedGroups>${excludedGroups}, xJDBC42</excludedGroups>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.2.1</version>
- <executions>
- <execution>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <shadedClassifierName>shaded.jre8-preview</shadedClassifierName>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
</profile>
</archive>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.2.1</version>
- <executions>
- <execution>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <shadedClassifierName>shaded.jre11-preview</shadedClassifierName>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
</profile>
</archive>
</configuration>
</plugin>
- <plugin>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.2.1</version>
- <executions>
- <!-- Run shade goal on package phase -->
- <execution>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <shadedClassifierName>shaded.jre12-preview</shadedClassifierName>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
</profile>
<destFile>${project.build.directory}/jacoco.exec</destFile>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.2.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <outputFile>${project.build.directory}/${project.build.finalName}-shaded.jar</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
