Skip to content

Commit 008109e

Browse files
committed
update pom.
1 parent 1e1bd36 commit 008109e

1 file changed

Lines changed: 41 additions & 18 deletions

File tree

pom.xml

Lines changed: 41 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ under the License.
2525

2626
<modelVersion>4.0.0</modelVersion>
2727

28-
<parent>
29-
<groupId>org.apache</groupId>
30-
<artifactId>apache</artifactId>
31-
<version>37</version>
32-
</parent>
33-
3428
<groupId>org.apache.datasketches</groupId>
3529
<artifactId>datasketches-java</artifactId>
3630
<version>9.0.1-SNAPSHOT</version>
@@ -106,7 +100,16 @@ under the License.
106100

107101
<!-- Covered by Apache Parent POM -->
108102
<!-- org.apache.maven plugins -->
103+
<maven-assembly-plugin.version>3.8.0</maven-assembly-plugin.version>
109104
<maven-compiler-plugin.version>3.15.0</maven-compiler-plugin.version> <!-- parent 37: 3.14.1 -->
105+
<maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version>
106+
<maven-enforcer-plugin.version>3.6.2</maven-enforcer-plugin.version>
107+
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>
108+
<maven-jar-plugin.version>3.5.0</maven-jar-plugin.version>
109+
<maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version>
110+
<maven-release-plugin.version>3.3.1</maven-release-plugin.version>
111+
<maven-source-plugin.version>3.4.0</maven-source-plugin.version>
112+
<maven-surefire-failsafe-plugins.version>3.5.4</maven-surefire-failsafe-plugins.version> <!-- for surefire, failsafe and surefire-report -->
110113

111114
<!-- org.apache.rat plugins -->
112115
<apache-rat-plugin.version>0.17</apache-rat-plugin.version> <!-- parent 37: 0.16.1 -->
@@ -145,30 +148,29 @@ under the License.
145148
<plugin>
146149
<groupId>org.apache.maven.plugins</groupId>
147150
<artifactId>maven-assembly-plugin</artifactId>
148-
<!-- version from Parent -->
151+
<version>${maven-assembly-plugin.version}</version>
149152
</plugin>
150153

151154
<plugin>
152155
<groupId>org.apache.maven.plugins</groupId>
153156
<artifactId>maven-compiler-plugin</artifactId>
154-
<!-- version from Parent -->
157+
<version>${maven-compiler-plugin.version}</version>
155158
<configuration>
156159
<fork>true</fork>
157-
<release>${java.version}</release>
158160
</configuration>
159161
</plugin>
160162

161163
<plugin>
162164
<!-- Apache Parent pom: apache-release profile -->
163165
<groupId>org.apache.maven.plugins</groupId>
164166
<artifactId>maven-deploy-plugin</artifactId>
165-
<!-- version from Parent -->
167+
<version>${maven-deploy-plugin.version}</version>
166168
</plugin>
167169

168170
<plugin>
169171
<groupId>org.apache.maven.plugins</groupId>
170172
<artifactId>maven-enforcer-plugin</artifactId>
171-
<!-- version from Parent -->
173+
<version>${maven-enforcer-plugin.version}</version>
172174
<executions>
173175
<execution>
174176
<id>enforce-banned-dependencies</id>
@@ -204,7 +206,7 @@ under the License.
204206
<plugin>
205207
<groupId>org.apache.maven.plugins</groupId>
206208
<artifactId>maven-jar-plugin</artifactId>
207-
<!-- version from Parent -->
209+
<version>${maven-jar-plugin.version}</version>
208210
<executions>
209211
<execution>
210212
<id>default-jar</id>
@@ -226,7 +228,7 @@ under the License.
226228
<plugin>
227229
<groupId>org.apache.maven.plugins</groupId>
228230
<artifactId>maven-javadoc-plugin</artifactId>
229-
<!-- version from Parent -->
231+
<version>${maven-javadoc-plugin.version}</version>
230232
<configuration>
231233
<excludePackageNames>org.apache.datasketches.memory/internal</excludePackageNames>
232234
<docfilessubdirs>true</docfilessubdirs>
@@ -252,13 +254,13 @@ under the License.
252254
<plugin>
253255
<groupId>org.apache.maven.plugins</groupId>
254256
<artifactId>maven-release-plugin</artifactId>
255-
<!-- version from Parent -->
257+
<version>${maven-release-plugin.version}</version>
256258
</plugin>
257259

258260
<plugin>
259261
<groupId>org.apache.maven.plugins</groupId>
260262
<artifactId>maven-source-plugin</artifactId>
261-
<!-- version from Parent -->
263+
<version>${maven-source-plugin.version}</version>
262264
<executions>
263265
<execution>
264266
<id>attach-sources</id>
@@ -280,7 +282,7 @@ under the License.
280282
<plugin>
281283
<groupId>org.apache.maven.plugins</groupId>
282284
<artifactId>maven-surefire-plugin</artifactId>
283-
<!-- version from Parent -->
285+
<version>${maven-surefire-failsafe-plugins.version}</version>
284286
<configuration>
285287
<argLine>@{jvm.args}</argLine>
286288
<jdkToolchain>
@@ -530,7 +532,7 @@ under the License.
530532
<plugin>
531533
<groupId>org.apache.maven.plugins</groupId>
532534
<artifactId>maven-jar-plugin</artifactId>
533-
<!-- version from Parent -->
535+
<version>${maven-jar-plugin.version}</version>
534536
<executions>
535537
<execution>
536538
<id>default-jar</id>
@@ -576,7 +578,7 @@ under the License.
576578
<plugin>
577579
<groupId>org.apache.maven.plugins</groupId>
578580
<artifactId>maven-gpg-plugin</artifactId>
579-
<!-- version from Parent -->
581+
<version>${maven-gpg-plugin.version}</version>
580582
<executions>
581583
<execution>
582584
<id>sign-artifacts</id>
@@ -614,6 +616,26 @@ under the License.
614616
</build>
615617
</profile>
616618

619+
<!-- Disable source release assembly for 'apache-release' profile.
620+
This is performed from a script outside Maven -->
621+
<profile>
622+
<id>apache-release</id>
623+
<build>
624+
<plugins>
625+
<plugin>
626+
<artifactId>maven-assembly-plugin</artifactId>
627+
<version>${maven-assembly-plugin.version}</version>
628+
<executions>
629+
<execution>
630+
<id>source-release-assembly</id>
631+
<phase>none</phase>
632+
</execution>
633+
</executions>
634+
</plugin>
635+
</plugins>
636+
</build>
637+
</profile>
638+
617639
<profile>
618640
<id>generate-java-files</id>
619641
<build>
@@ -692,4 +714,5 @@ under the License.
692714
</profile>
693715

694716
</profiles>
717+
695718
</project>

0 commit comments

Comments
 (0)