Skip to content

Commit

Permalink
Use maven-jar-plugin to not include maven descriptor
Browse files Browse the repository at this point in the history
- Not include maven descriptor files (as they get big)
- addDefaultImplementationEntries true to add version into MANIFEST.MF
  • Loading branch information
rbygrave committed Jul 1, 2022
1 parent ecc1883 commit 4fc69a6
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.avaje</groupId>
<artifactId>java11-oss</artifactId>
<version>3.8</version>
<version>3.9</version>
<packaging>pom</packaging>
<name>java11-oss</name>

Expand All @@ -21,9 +21,10 @@
<maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.0.0-M6</maven-failsafe-plugin.version>
<maven-release-plugin.version>3.0.0-M5</maven-release-plugin.version>
<maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
</properties>

<url>http://www.avaje.org</url>
<url>https://avaje.io</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
Expand Down Expand Up @@ -106,6 +107,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>

<plugin>
Expand All @@ -114,6 +118,20 @@
<version>${maven-failsafe-plugin.version}</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>

</plugins>

</build>
Expand Down

0 comments on commit 4fc69a6

Please sign in to comment.