Skip to content

Commit

Permalink
MEECROWAVE-341 fix maven-shade-plugin config
Browse files Browse the repository at this point in the history
the old config did always create a dependency-reduced-pom which broke
downstream projects
  • Loading branch information
struberg committed Oct 20, 2024
1 parent 0c8574d commit 2d27283
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
7 changes: 5 additions & 2 deletions meecrowave-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<artifactId>meecrowave</artifactId>
<groupId>org.apache.meecrowave</groupId>
<version>2.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>meecrowave-core</artifactId>
<name>Meecrowave :: Core</name>
Expand Down Expand Up @@ -63,7 +64,7 @@
<groupId>org.apache.meecrowave</groupId>
<artifactId>meecrowave-test-app</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
<scope>test</scope>
<type>war</type>
</dependency>

Expand Down Expand Up @@ -106,6 +107,7 @@
<groupId>org.apache.openwebbeans</groupId>
<artifactId>openwebbeans-se</artifactId>
<version>${openwebbeans.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.openwebbeans</groupId>
Expand Down Expand Up @@ -431,6 +433,7 @@
<configuration>
<shadedClassifierName>runner</shadedClassifierName>
<shadedArtifactAttached>true</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<dependencyReducedPomLocation>${project.build.directory}/reduced-pom-bundle.xml
</dependencyReducedPomLocation>
<transformers>
Expand Down
16 changes: 10 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -216,12 +226,6 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down

0 comments on commit 2d27283

Please sign in to comment.