Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created March 25, 2021 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aalmiray/92e8152c804448b8251f84594eede307 to your computer and use it in GitHub Desktop.
Save aalmiray/92e8152c804448b8251f84594eede307 to your computer and use it in GitHub Desktop.
reproducible maven
$ cat pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>com.acme</groupId>
<artifactId>sample</artifactId>
<version>0.0.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.9</version>
</dependency>
</dependencies>
</project>
$ mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /Users/aalmiray/.sdkman/candidates/maven/current
Java version: 1.8.0_282, vendor: Azul Systems, Inc., runtime: /Users/aalmiray/.sdkman/candidates/java/8.0.282-zulu/zulu-8.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.7", arch: "x86_64", family: "mac"
$ mvn versions:display-plugin-updates
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< com.acme:sample >---------------------------
[INFO] Building sample 0.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- versions-maven-plugin:2.7:display-plugin-updates (default-cli) @ sample ---
[INFO]
[INFO] All plugins with a version specified are using the latest versions.
[INFO]
[WARNING] The following plugins do not have their version specified:
[WARNING] maven-clean-plugin ........................ (from super-pom) 2.2
[WARNING] maven-compiler-plugin ................... (from super-pom) 2.0.2
[WARNING] maven-deploy-plugin ....................... (from super-pom) 2.4
[WARNING] maven-install-plugin ...................... (from super-pom) 2.2
[WARNING] maven-jar-plugin .......................... (from super-pom) 2.1
[WARNING] maven-resources-plugin .................... (from super-pom) 2.2
[WARNING] maven-site-plugin .................. (from super-pom) 2.0-beta-4
[WARNING] maven-surefire-plugin ................... (from super-pom) 2.4.2
[INFO]
[WARNING] Project does not define minimum Maven version, default is: 2.0
[INFO] Plugins require minimum Maven version of: 3.0.5
[INFO] Note: the super-pom from Maven 3.6.3 defines some of the plugin
[INFO] versions and may be influencing the plugins required minimum Maven
[INFO] version.
[INFO]
[ERROR] Project does not define required minimum version of Maven.
[ERROR] Update the pom.xml to contain maven-enforcer-plugin to
[ERROR] force the Maven version which is needed to build this project.
[ERROR] See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[ERROR] Using the minimum version of Maven: 3.0.5
[INFO]
[INFO] Require Maven 2.0.2 to use the following plugin updates:
[INFO] maven-site-plugin ............................. 3.8.2 -> 2.0-beta-7
[INFO]
[INFO] Require Maven 2.0.6 to use the following plugin updates:
[INFO] maven-clean-plugin ................................... 3.1.0 -> 2.5
[INFO] maven-deploy-plugin ............................. 3.0.0-M1 -> 2.8.1
[INFO] maven-install-plugin ............................ 3.0.0-M1 -> 2.5.1
[INFO] maven-jar-plugin ..................................... 3.1.2 -> 2.4
[INFO] maven-resources-plugin ............................... 3.1.0 -> 2.6
[INFO] maven-site-plugin .................................. 3.8.2 -> 2.0.1
[INFO] maven-surefire-plugin ........................... 3.0.0-M3 -> 2.4.3
[INFO]
[INFO] Require Maven 2.0.9 to use the following plugin updates:
[INFO] maven-compiler-plugin ................................ 3.8.1 -> 3.1
[INFO] maven-surefire-plugin ............................ 3.0.0-M3 -> 2.17
[INFO]
[INFO] Require Maven 2.1.0 to use the following plugin updates:
[INFO] maven-site-plugin .................................. 3.8.2 -> 2.1.1
[INFO]
[INFO] Require Maven 2.2.0 to use the following plugin updates:
[INFO] maven-site-plugin .................................... 3.8.2 -> 3.0
[INFO]
[INFO] Require Maven 2.2.1 to use the following plugin updates:
[INFO] maven-clean-plugin ................................. 3.1.0 -> 2.6.1
[INFO] maven-compiler-plugin ................................ 3.8.1 -> 3.3
[INFO] maven-deploy-plugin ............................. 3.0.0-M1 -> 2.8.2
[INFO] maven-install-plugin ............................ 3.0.0-M1 -> 2.5.2
[INFO] maven-jar-plugin ..................................... 3.1.2 -> 2.6
[INFO] maven-resources-plugin ............................... 3.1.0 -> 2.7
[INFO] maven-site-plugin .................................... 3.8.2 -> 3.4
[INFO] maven-surefire-plugin ............................ 3.0.0-M3 -> 2.20
[INFO]
[INFO] Require Maven 3.0 to use the following plugin updates:
[INFO] maven-clean-plugin .......................................... 3.1.0
[INFO] maven-jar-plugin ................................... 3.1.2 -> 3.1.0
[INFO] maven-resources-plugin ...................................... 3.1.0
[INFO] maven-site-plugin .................................. 3.8.2 -> 3.7.1
[INFO] maven-surefire-plugin .......................... 3.0.0-M3 -> 2.22.0
[INFO]
[INFO] Require Maven 3.0.4 to use the following plugin updates:
[INFO] maven-compiler-plugin .............................. 3.8.1 -> 3.7.0
[INFO]
[INFO] Require Maven 3.0.5 to use the following plugin updates:
[INFO] maven-compiler-plugin ....................................... 3.8.1
[INFO] maven-deploy-plugin ...................................... 3.0.0-M1
[INFO] maven-install-plugin ..................................... 3.0.0-M1
[INFO] maven-jar-plugin ............................................ 3.1.2
[INFO] maven-site-plugin ........................................... 3.8.2
[INFO] maven-surefire-plugin .................................... 3.0.0-M3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment