You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2022/12/22 13:21:01 UTC

[jackrabbit-oak] branch trunk updated: OAK-9800: Update Maven Plugins and Apache Parent POM to version 29 (#808)

This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


The following commit(s) were added to refs/heads/trunk by this push:
     new a1f2d62669 OAK-9800: Update Maven Plugins and Apache Parent POM to version 29 (#808)
a1f2d62669 is described below

commit a1f2d626690af616baff48b00854f6eb7627e113
Author: Julian Reschke <re...@apache.org>
AuthorDate: Thu Dec 22 14:20:56 2022 +0100

    OAK-9800: Update Maven Plugins and Apache Parent POM to version 29 (#808)
    
    * OAK-9800: Update Maven Plugins and Apache Parent POM to version 27
    
    * OAK-9800: Update Apache Parent POM to version 28
    
    * OAK-9800: Update Apache Parent POM to version 29
    
    * OAK-9800: remove duplicated dependency
---
 oak-parent/pom.xml      | 53 ++++---------------------------------------------
 oak-run-elastic/pom.xml |  1 -
 oak-run/pom.xml         |  2 --
 oak-segment-aws/pom.xml |  2 --
 pom.xml                 |  1 -
 5 files changed, 4 insertions(+), 55 deletions(-)

diff --git a/oak-parent/pom.xml b/oak-parent/pom.xml
index fb266eaca9..d12d004d41 100644
--- a/oak-parent/pom.xml
+++ b/oak-parent/pom.xml
@@ -23,7 +23,7 @@
   <parent>
     <groupId>org.apache</groupId>
     <artifactId>apache</artifactId>
-    <version>18</version>
+    <version>29</version>
     <relativePath />
   </parent>
 
@@ -34,6 +34,8 @@
   <packaging>pom</packaging>
 
   <properties>
+    <minimalMavenBuildVersion>3.3.9</minimalMavenBuildVersion><!-- evaluated by ASF parent -->
+    <maven.compiler.target>${java.version}</maven.compiler.target><!-- evaluated by m-compiler-p and m-javadoc-p -->
     <test.opts.memory>-Xmx512m</test.opts.memory>
     <test.opts>${test.opts.coverage} ${test.opts.memory} -XX:+HeapDumpOnOutOfMemoryError -Dupdate.limit=100 -Djava.awt.headless=true</test.opts>
     <skip.deployment>false</skip.deployment>
@@ -89,10 +91,6 @@
     <sonar.host.url>https://sonarcloud.io</sonar.host.url>
   </properties>
 
-  <prerequisites>
-    <maven>3.2.1</maven>
-  </prerequisites>
-
   <issueManagement>
     <system>Jira</system>
     <url>http://issues.apache.org/jira/browse/OAK</url>
@@ -112,10 +110,7 @@
       <plugins>
         <plugin>
           <artifactId>maven-compiler-plugin</artifactId>
-          <version>3.8.1</version>
           <configuration>
-            <target>${java.version}</target>
-            <source>${java.version}</source>
             <compilerArgs>
               <!-- OAK-7310 -->
               <arg>-Xpkginfo:always</arg>
@@ -136,9 +131,7 @@
         </plugin>
         <plugin>
           <artifactId>maven-javadoc-plugin</artifactId>
-          <version>3.1.1</version>
           <configuration>
-            <source>${java.version}</source>
             <doclint>none</doclint>
             <detectJavaApiLink>false</detectJavaApiLink>
             <aggregate>true</aggregate>
@@ -278,34 +271,25 @@
         </plugin>
         <plugin>
           <artifactId>maven-deploy-plugin</artifactId>
-          <version>2.8.2</version>
           <configuration>
             <skip>${skip.deployment}</skip>
           </configuration>
         </plugin>
         <plugin>
           <artifactId>maven-release-plugin</artifactId>
-          <version>2.5.3</version>
           <configuration>
             <autoVersionSubmodules>true</autoVersionSubmodules>
           </configuration>
         </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-assembly-plugin</artifactId>
-          <version>3.2.0</version>
-        </plugin>
         <plugin>
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
-          <version>0.13</version>
           <configuration>
             <consoleOutput>true</consoleOutput>
           </configuration>
         </plugin>
         <plugin>
           <artifactId>maven-surefire-plugin</artifactId>
-          <version>2.22.2</version>
           <configuration>
             <argLine>${test.opts}</argLine>
             <trimStackTrace>false</trimStackTrace>
@@ -329,7 +313,6 @@
         </plugin>
         <plugin>
           <artifactId>maven-failsafe-plugin</artifactId>
-          <version>2.22.2</version>
           <configuration>
             <argLine>${test.opts}</argLine>
             <trimStackTrace>false</trimStackTrace>
@@ -406,7 +389,6 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-site-plugin</artifactId>
-          <version>3.12.0</version>
           <configuration>
             <generateReports>false</generateReports>
             <skip>true</skip>
@@ -414,36 +396,11 @@
             <relativizeDecorationLinks>false</relativizeDecorationLinks><!-- leave absolute URLs untouched: https://maven.apache.org/plugins/maven-site-plugin/site-mojo.html#relativizeDecorationLinks -->
           </configuration>
         </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-scm-publish-plugin</artifactId>
-          <version>3.0.0</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-project-info-reports-plugin</artifactId>
-          <version>3.0.0</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-shade-plugin</artifactId>
-          <version>3.2.1</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-clean-plugin</artifactId>
-            <version>3.1.0</version>
-        </plugin>
         <plugin>
           <groupId>org.jacoco</groupId>
           <artifactId>jacoco-maven-plugin</artifactId>
           <version>0.8.8</version>
         </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-dependency-plugin</artifactId>
-          <version>3.1.2</version>
-        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
@@ -505,7 +462,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
-        <version>3.2.0</version>
         <executions>
           <execution>
             <goals>
@@ -881,7 +837,7 @@
 
    <!--  - - - - - - - - - - - - - - - - - - - will run all the required tests before a release -->
    <profile>
-      <id>release</id>
+      <id>release</id> <!-- needs to be activated manually, not used automatically with m-release-p goals -->
       <properties>
          <nsfixtures />
          <rdb.jdbc-url>jdbc:derby:./target/derby-release-test;create=true</rdb.jdbc-url>
@@ -1001,7 +957,6 @@
          <plugins>
             <plugin>
               <artifactId>maven-compiler-plugin</artifactId>
-              <version>3.7.0</version>
               <configuration>
                 <compilerId>javac-with-errorprone</compilerId>
                 <forceJavacCompilerUse>true</forceJavacCompilerUse>
diff --git a/oak-run-elastic/pom.xml b/oak-run-elastic/pom.xml
index ec7a0196e7..e587dd6558 100644
--- a/oak-run-elastic/pom.xml
+++ b/oak-run-elastic/pom.xml
@@ -95,7 +95,6 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-enforcer-plugin</artifactId>
-                <version>3.0.0-M2</version>
                 <executions>
                     <execution>
                         <id>enforce-file-size</id>
diff --git a/oak-run/pom.xml b/oak-run/pom.xml
index 3c03accbad..2a78e9d4ab 100644
--- a/oak-run/pom.xml
+++ b/oak-run/pom.xml
@@ -137,7 +137,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>3.0.0-M2</version>
         <executions>
           <execution>
             <id>enforce-file-size</id>
@@ -147,7 +146,6 @@
             <phase>package</phase>
             <configuration>
               <rules>
-
                 <requireFilesSize>
                   <maxsize>${max.jar.size}</maxsize>
                   <files>
diff --git a/oak-segment-aws/pom.xml b/oak-segment-aws/pom.xml
index 803ec21a9f..c3338e89e5 100644
--- a/oak-segment-aws/pom.xml
+++ b/oak-segment-aws/pom.xml
@@ -112,7 +112,6 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
-                <version>3.0.0-M4</version>
                 <configuration>
                     <argLine>-Dsqlite4java.library.path="${project.build.directory}/dependencies"</argLine>
                 </configuration>
@@ -120,7 +119,6 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-dependency-plugin</artifactId>
-                <version>3.1.1</version>
                 <executions>
                     <execution>
                         <id>copy-dependencies</id>
diff --git a/pom.xml b/pom.xml
index b78f527a7a..29c3d20626 100644
--- a/pom.xml
+++ b/pom.xml
@@ -181,7 +181,6 @@
           <!-- JCR-2455: Automatic staging of non-Maven release artifacts -->
           <plugin>
             <artifactId>maven-antrun-plugin</artifactId>
-            <version>1.8</version>
             <executions>
               <execution>
                 <goals>