Incompatible lang3 package error during maven plugin release for Springboot project - spring

I just downloaded the maven release plugin and attempts to configure my multi-module spring project to trigger an maven release. But I have obtain the following error when doing maven release:perform saying there is the following error about the lang3 library. I search other stackoverflow post and they said to use the latest version of lang3 library, I attempts that and it does not work, can someone give me some knowledge as to how to fix this?
The following is the error log on terminal:
Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar (attach-javadocs) on project pet-clinic-data: Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar failed: Cannot invoke "org.apache.commons.lang3.JavaVersion.atLeast(org.apache.commons.lang3.JavaVersion)" because "org.apache.commons.lang3.SystemUtils.JAVA_SPECIFICATION_VERSION_AS_ENUM" is null
I have the following pom files for my multi-module project:
<?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">
<parent>
<artifactId>sfg-pet-clinic</artifactId>
<groupId>guru.springframework</groupId>
<version>1.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pet-clinic-web</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<artifactId>pet-clinic-data</artifactId>
<groupId>guru.springframework</groupId>
<version>1.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
</plugins>
</build>
</project>
<?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">
<parent>
<artifactId>sfg-pet-clinic</artifactId>
<groupId>guru.springframework</groupId>
<version>1.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pet-clinic-data</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<spring-boot.repackage.skip>true</spring-boot.repackage.skip>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.24</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
<?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">
<parent>
<artifactId>sfg-pet-clinic</artifactId>
<groupId>guru.springframework</groupId>
<version>1.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pet-clinic-web</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<artifactId>pet-clinic-data</artifactId>
<groupId>guru.springframework</groupId>
<version>1.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
</plugins>
</build>
</project>
Here is the full maven build output:
n1569231#LIBP45P-358886M sfg-pet-clinic % mvn release:perform
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] sfg-pet-clinic [pom]
[INFO] pet-clinic-data [jar]
[INFO] pet-clinic-web [jar]
[INFO]
[INFO] ----------------< guru.springframework:sfg-pet-clinic >-----------------
[INFO] Building sfg-pet-clinic 1.1-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.5.3:perform (default-cli) # sfg-pet-clinic ---
[INFO] Checking out the project to perform the release ...
[INFO] Executing: /bin/sh -c cd /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target && git clone --branch sfg-pet-clinic-1.0 https://github.com/Jialin-Zhen_lmig/spring-pet-clinic.git /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Working directory: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target
[INFO] Executing: /bin/sh -c cd /var/folders/93/ns4g0g4s6wq14lvpl30wsg140000gp/T/ && git ls-remote https://github.com/Jialin-Zhen_lmig/spring-pet-clinic.git
[INFO] Working directory: /var/folders/93/ns4g0g4s6wq14lvpl30wsg140000gp/T
[INFO] Executing: /bin/sh -c cd /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout && git fetch https://github.com/Jialin-Zhen_lmig/spring-pet-clinic.git
[INFO] Working directory: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Executing: /bin/sh -c cd /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout && git checkout sfg-pet-clinic-1.0
[INFO] Working directory: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Executing: /bin/sh -c cd /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout && git ls-files
[INFO] Working directory: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Invoking perform goals in directory /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Executing goals 'install'...
[WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Build Order:
[INFO] [INFO]
[INFO] [INFO] sfg-pet-clinic [pom]
[INFO] [INFO] pet-clinic-data [jar]
[INFO] [INFO] pet-clinic-web [jar]
[INFO] [INFO]
[INFO] [INFO] ----------------< guru.springframework:sfg-pet-clinic >-----------------
[INFO] [INFO] Building sfg-pet-clinic 1.0 [1/3]
[INFO] [INFO] --------------------------------[ pom ]---------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) # sfg-pet-clinic ---
[INFO] [INFO]
[INFO] [INFO] --- maven-javadoc-plugin:3.0.0:jar (attach-javadocs) # sfg-pet-clinic ---
[INFO] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO] [INFO]
[INFO] [INFO] --- spring-boot-maven-plugin:2.0.3.RELEASE:repackage (default) # sfg-pet-clinic ---
[INFO] [INFO]
[INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) # sfg-pet-clinic ---
[INFO] [INFO] Installing /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pom.xml to /Users/n1569231/.m2/repository/guru/springframework/sfg-pet-clinic/1.0/sfg-pet-clinic-1.0.pom
[INFO] [INFO]
[INFO] [INFO] ----------------< guru.springframework:pet-clinic-data >----------------
[INFO] [INFO] Building pet-clinic-data 1.0 [2/3]
[INFO] [INFO] --------------------------------[ jar ]---------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) # pet-clinic-data ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/src/main/resources
[INFO] [INFO] skip non existing resourceDirectory /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/src/main/resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # pet-clinic-data ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 5 source files to /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/target/classes
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) # pet-clinic-data ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/src/test/resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # pet-clinic-data ---
[INFO] [INFO] No sources to compile
[INFO] [INFO]
[INFO] [INFO] --- maven-surefire-plugin:2.21.0:test (default-test) # pet-clinic-data ---
[INFO] [INFO] No tests to run.
[INFO] [INFO]
[INFO] [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) # pet-clinic-data ---
[INFO] [INFO] Building jar: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/target/pet-clinic-data-1.0.jar
[INFO] [INFO]
[INFO] [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) # pet-clinic-data ---
[INFO] [INFO] Building jar: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/target/pet-clinic-data-1.0-sources.jar
[INFO] [INFO]
[INFO] [INFO] --- maven-javadoc-plugin:3.0.0:jar (attach-javadocs) # pet-clinic-data ---
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary for sfg-pet-clinic 1.0:
[INFO] [INFO]
[INFO] [INFO] sfg-pet-clinic ..................................... SUCCESS [ 1.018 s]
[INFO] [INFO] pet-clinic-data .................................... FAILURE [ 1.246 s]
[INFO] [INFO] pet-clinic-web ..................................... SKIPPED
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 2.417 s
[INFO] [INFO] Finished at: 2022-08-18T21:52:50-04:00
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar (attach-javadocs) on project pet-clinic-data: Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar failed: Cannot invoke "org.apache.commons.lang3.JavaVersion.atLeast(org.apache.commons.lang3.JavaVersion)" because "org.apache.commons.lang3.SystemUtils.JAVA_SPECIFICATION_VERSION_AS_ENUM" is null -> [Help 1]
[INFO] [ERROR]
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[INFO] [ERROR]
[INFO] [ERROR] After correcting the problems, you can resume the build with the command
[INFO] [ERROR] mvn <args> -rf :pet-clinic-data
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for sfg-pet-clinic 1.1-SNAPSHOT:
[INFO]
[INFO] sfg-pet-clinic ..................................... FAILURE [ 6.504 s]
[INFO] pet-clinic-data .................................... SKIPPED
[INFO] pet-clinic-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.705 s
[INFO] Finished at: 2022-08-18T21:52:50-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:perform (default-cli) on project sfg-pet-clinic: Maven execution failed, exit code: '1' -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
n1569231#LIBP45P-358886M sfg-pet-clinic % clear
n1569231#LIBP45P-358886M sfg-pet-clinic % mvn release:perform
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] sfg-pet-clinic [pom]
[INFO] pet-clinic-data [jar]
[INFO] pet-clinic-web [jar]
[INFO]
[INFO] ----------------< guru.springframework:sfg-pet-clinic >-----------------
[INFO] Building sfg-pet-clinic 1.1-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.5.3:perform (default-cli) # sfg-pet-clinic ---
[INFO] Checking out the project to perform the release ...
[INFO] Executing: /bin/sh -c cd /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target && git clone --branch sfg-pet-clinic-1.0 https://github.com/Jialin-Zhen_lmig/spring-pet-clinic.git /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Working directory: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target
[INFO] Executing: /bin/sh -c cd /var/folders/93/ns4g0g4s6wq14lvpl30wsg140000gp/T/ && git ls-remote https://github.com/Jialin-Zhen_lmig/spring-pet-clinic.git
[INFO] Working directory: /var/folders/93/ns4g0g4s6wq14lvpl30wsg140000gp/T
[INFO] Executing: /bin/sh -c cd /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout && git fetch https://github.com/Jialin-Zhen_lmig/spring-pet-clinic.git
[INFO] Working directory: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Executing: /bin/sh -c cd /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout && git checkout sfg-pet-clinic-1.0
[INFO] Working directory: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Executing: /bin/sh -c cd /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout && git ls-files
[INFO] Working directory: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Invoking perform goals in directory /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout
[INFO] Executing goals 'install'...
[WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Build Order:
[INFO] [INFO]
[INFO] [INFO] sfg-pet-clinic [pom]
[INFO] [INFO] pet-clinic-data [jar]
[INFO] [INFO] pet-clinic-web [jar]
[INFO] [INFO]
[INFO] [INFO] ----------------< guru.springframework:sfg-pet-clinic >-----------------
[INFO] [INFO] Building sfg-pet-clinic 1.0 [1/3]
[INFO] [INFO] --------------------------------[ pom ]---------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) # sfg-pet-clinic ---
[INFO] [INFO]
[INFO] [INFO] --- maven-javadoc-plugin:3.0.0:jar (attach-javadocs) # sfg-pet-clinic ---
[INFO] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO] [INFO]
[INFO] [INFO] --- spring-boot-maven-plugin:2.0.3.RELEASE:repackage (default) # sfg-pet-clinic ---
[INFO] [INFO]
[INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) # sfg-pet-clinic ---
[INFO] [INFO] Installing /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pom.xml to /Users/n1569231/.m2/repository/guru/springframework/sfg-pet-clinic/1.0/sfg-pet-clinic-1.0.pom
[INFO] [INFO]
[INFO] [INFO] ----------------< guru.springframework:pet-clinic-data >----------------
[INFO] [INFO] Building pet-clinic-data 1.0 [2/3]
[INFO] [INFO] --------------------------------[ jar ]---------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) # pet-clinic-data ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/src/main/resources
[INFO] [INFO] skip non existing resourceDirectory /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/src/main/resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # pet-clinic-data ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 5 source files to /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/target/classes
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) # pet-clinic-data ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/src/test/resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # pet-clinic-data ---
[INFO] [INFO] No sources to compile
[INFO] [INFO]
[INFO] [INFO] --- maven-surefire-plugin:2.21.0:test (default-test) # pet-clinic-data ---
[INFO] [INFO] No tests to run.
[INFO] [INFO]
[INFO] [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) # pet-clinic-data ---
[INFO] [INFO] Building jar: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/target/pet-clinic-data-1.0.jar
[INFO] [INFO]
[INFO] [INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) # pet-clinic-data ---
[INFO] [INFO] Building jar: /Users/n1569231/Desktop/SpringExcercise/sfg-pet-clinic/target/checkout/pet-clinic-data/target/pet-clinic-data-1.0-sources.jar
[INFO] [INFO]
[INFO] [INFO] --- maven-javadoc-plugin:3.0.0:jar (attach-javadocs) # pet-clinic-data ---
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary for sfg-pet-clinic 1.0:
[INFO] [INFO]
[INFO] [INFO] sfg-pet-clinic ..................................... SUCCESS [ 1.757 s]
[INFO] [INFO] pet-clinic-data .................................... FAILURE [ 1.778 s]
[INFO] [INFO] pet-clinic-web ..................................... SKIPPED
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 3.723 s
[INFO] [INFO] Finished at: 2022-08-19T09:05:40-04:00
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar (attach-javadocs) on project pet-clinic-data: Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar failed: Cannot invoke "org.apache.commons.lang3.JavaVersion.atLeast(org.apache.commons.lang3.JavaVersion)" because "org.apache.commons.lang3.SystemUtils.JAVA_SPECIFICATION_VERSION_AS_ENUM" is null -> [Help 1]
[INFO] [ERROR]
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[INFO] [ERROR]
[INFO] [ERROR] After correcting the problems, you can resume the build with the command
[INFO] [ERROR] mvn <args> -rf :pet-clinic-data
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for sfg-pet-clinic 1.1-SNAPSHOT:
[INFO]
[INFO] sfg-pet-clinic ..................................... FAILURE [ 9.668 s]
[INFO] pet-clinic-data .................................... SKIPPED
[INFO] pet-clinic-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.946 s
[INFO] Finished at: 2022-08-19T09:05:41-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:perform (default-cli) on project sfg-pet-clinic: Maven execution failed, exit code: '1' -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
The maven version using is 3.8.5, here is the output
n1569231#LIBP45P-358886M sfg-pet-clinic % mvn --v
Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0)
Maven home: /usr/local/Cellar/maven/3.8.5/libexec
Java version: 17.0.2, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/17.0.2/libexec/openjdk.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "12.4", arch: "x86_64", family: "mac"
n1569231#LIBP45P-358886M sfg-pet-clinic %

Related

setup maven for jdk10

[INFO] Scanning for projects...
[INFO] ---------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] test.master
[INFO] test.generator
[INFO] test.model
[INFO] test.dal
[INFO] test.service
[INFO] test.web
[INFO]
[INFO] ---------------------------------------------
[INFO] Building test.master 0.0.1-SNAPSHOT
[INFO] ---------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # test.master ---
[INFO]
[INFO] --- maven-jdeps-plugin:3.1.1:jdkinternals (default) # test.master ---
[INFO]
[INFO] --- maven-jdeps-plugin:3.1.1:test-jdkinternals (default) # test.master ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # test.master ---
[INFO] Installing C:\Users\cora_kwok\git\backend2\pom.xml to C:\Users\cora_kwok\.m2\repository\com\kinetix\test.master\0.0.1-SNAPSHOT\test.master-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ----------------------------------------------------------
[INFO] Building test.generator 1.0.0
[INFO] -------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # test.generator ---
[INFO] Deleting C:\Users\cora_kwok\git\backend2\test.generator\target
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) # test.generator ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\cora_kwok\git\backend2\test.generator\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # test.generator ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\cora_kwok\git\backend2\test.generator\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] -----------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] test.master ............................. SUCCESS [ 0.703 s]
[INFO] test.generator ............................ FAILURE [ 0.790 s]
[INFO] test.model ......................................... SKIPPED
[INFO] test.dal ........................................... SKIPPED
[INFO] test.service ....................................... SKIPPED
[INFO] test.web ........................................... SKIPPED
[INFO] ---------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------------
[INFO] Total time: 1.715 s
[INFO] Finished at: 2018-05-09T14:14:05+08:00
[INFO] Final Memory: 11M/40M
[INFO] ---------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project test.generator: Compilation failure: Compilation failure:
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :test.generator
Below is my pom.xml for the module test.generator . I would like to use jdeps to check the 3rd party dependency of jdk10, and prepare for the jdk10 upgrade, however, when I try to run and results the above errors.
I did remove my m2.repository folder, but the same error still exists.
I have installed the jdk10 and jre10. However, it seems it failed to recognize jdk10 during the maven build.
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.kinetix</groupId>
<artifactId>test.master</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.kinetix.test</groupId>
<artifactId>test.generator</artifactId>
<version>1.0.0</version>
<name>test.generator</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java-version>10.0.1</java-version>
</properties>
<dependencies>
<dependency>
<groupId>org.jasypt</groupId>
<artifactId>jasypt</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
I have no idea why it failed to recognize jdk10 for version 10.0.1 is smaller than that of version 1.7.
You have to define the maven-compiler plugin via pluginManagement like this:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
</plugin>
</plugins>
</pluginManagement>
..
</build>
Furthermore you should define the property like this:
<properties>
<maven.compiler.source>10</maven.compiler.source>
<maven.compiler.target>10</maven.compiler.target>
<maven.compiler.release>10</maven.compiler.release>
</properties>
You have multi module build where you have a parent where you should define the above. Furthermore I recommend strongly to define all plugins you are using like maven-resources-plugin etc. like the maven-compiler-plugin above...and with most recent versions and not with such ancient versions...

Maven 2 & 3 differences on dependency:analyze with cycle

Here's the dependency tree I'm using:
[INFO] ------------------------------------------------------------------------
[INFO] Building PA 0.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # PA ---
[INFO] myTest:PA:jar:0.0.2-SNAPSHOT
[INFO] \- PC:PC:jar:0.0.1-SNAPSHOT:compile
[INFO] \- myTest:PA:jar:0.0.1-SNAPSHOT:compile
As you can see, there's a cycle :
PA > PC > PA
Using maven 2.2.1:
mvn dependency:analyze
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - myTest:PA:jar:0.0.2-SNAPSHOT
[INFO] task-segment: [dependency:analyze]
[INFO] ------------------------------------------------------------------------
...
[INFO] No dependency problems found
Using maven 3.3.3:
mvn dependency:analyze
[INFO] ------------------------------------------------------------------------
[INFO] Building PA 0.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
...
[INFO] --- maven-dependency-plugin:2.8:analyze (default-cli) # PA ---
[WARNING] Used undeclared dependencies found:
[WARNING] myTest:PA:jar:0.0.1-SNAPSHOT:compile
The analyze using maven 3 wants me to add PA as a dependency to PA, to itself. Is it possible to have the same behavior as maven 2 using maven 3?
Here's the workaround I'm using to have the same result as Maven 2 using Maven 3:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<ignoredDependencies>
<ignoredDependencie>${project.groupId}:${project.artifactId}::</ignoredDependencie>
</ignoredDependencies>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

Maven is not downloading a plugin : jetspeed-unpack-maven-plugin

so I made this pom :
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.mssb.ocr</groupId>
<artifactId>tesseractOcr</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<build>
<plugins>
<!-- autorun unit tests during maven compilation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<argLine>-Xmx1024m -XX:MaxPermSize=256m -XX:-UseSplitVerifier</argLine>
<skipTests>-DskipTests</skipTests>
</configuration>
</plugin>
<!--
this extract the 32 bits dll and the tesseractdata folder to
the project root from tess4j.jar
-->
<plugin>
<groupId>org.apache.portals.jetspeed-2</groupId>
<artifactId>jetspeed-unpack-maven-plugin</artifactId>
<version>2.2.2</version>
<configuration>
<unpack>
<artifact>net.sourceforge.tess4j:tess4j:jar</artifact>
<overwrite>true</overwrite>
<resources combine.children="append">
<resource>
<path>win32-x86</path>
<destination>${basedir}</destination>
<overwrite>true</overwrite>
<flat>true</flat>
<include>*</include>
</resource>
<resource>
<path>tessdata</path>
<destination>${basedir}</destination>
<overwrite>true</overwrite>
<flat>false</flat>
<include>*</include>
</resource>
</resources>
</unpack>
<verbose>true</verbose>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!--
Log4j 2 is broken up in an API and an implementation (core), where the API
provides the interface that applications should code to. Strictly speaking
Log4j core is only needed at runtime and not at compile time.
However, below we list Log4j core as a compile time dependency to improve
the startup time for custom plugins.
-->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.1</version>
</dependency>
<!--
Integration of tesseract OCR
-->
<dependency>
<groupId>net.sourceforge.tess4j</groupId>
<artifactId>tess4j</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
mvn clean install and eclipse:eclipse both end up in a "SUCCESS" however the jeetspeed plugin does nothing, I don't see him doing anything in the console when building and he his not even in my local repository.
Yes, I added maven central to my maven conf file (http://repo1.maven.org/maven2/)
I'm using maven 3.2.1
What could I do?
Thanks
EDIT
mvn clean install
D:\!2015 repo\TTsXXJava>mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] capcha solver
[INFO] tesseract ocr project
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building capcha solver 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # parent ---
[INFO] Deleting D:\!2015 repo\TTsXXJava\target
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # parent ---
[INFO] Installing D:\!2015 repo\TTsXXJava\pom.xml to d:\.m2\fr\mssb\capcha\parent\1.0\parent-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building tesseract ocr project 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # tesseractOcr ---
[INFO] Deleting D:\!2015 repo\TTsXXJava\capcha-solver\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # tesseractOcr ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) # tesseractOcr ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to D:\!2015 repo\TTsXXJava\capcha-solver\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # tesseractOcr ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) # tesseractOcr ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) # tesseractOcr ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # tesseractOcr ---
[INFO] Building jar: D:\!2015 repo\TTsXXJava\capcha-solver\target\tesseractOcr-1.0.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # tesseractOcr ---
[INFO] Installing D:\!2015 repo\TTsXXJava\capcha-solver\target\tesseractOcr-1.0.jar to d:\.m2\fr\mssb\capcha\tesseractOcr\1.0\tesseractOcr-1.0.jar
[INFO] Installing D:\!2015 repo\TTsXXJava\capcha-solver\pom.xml to d:\.m2\fr\mssb\capcha\tesseractOcr\1.0\tesseractOcr-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] capcha solver ..................................... SUCCESS [ 0.381 s]
[INFO] tesseract ocr project ............................. SUCCESS [ 1.910 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.424 s
[INFO] Finished at: 2015-02-05T12:52:22+01:00
[INFO] Final Memory: 14M/231M
[INFO] ------------------------------------------------------------------------
mvn eclipse:eclipse
$ mvn eclipse:eclipse
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] capcha solver
[INFO] tesseract ocr project
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building capcha solver 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-eclipse-plugin:2.5.1:eclipse (default-cli) # parent >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.5.1:eclipse (default-cli) # parent <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.5.1:eclipse (default-cli) # parent ---
[INFO] Not running eclipse plugin goal for pom project
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building tesseract ocr project 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-eclipse-plugin:2.5.1:eclipse (default-cli) # tesseractOcr >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.5.1:eclipse (default-cli) # tesseractOcr <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.5.1:eclipse (default-cli) # tesseractOcr ---
[INFO] Using as WTP server : null
[INFO] Using source status cache: D:\!2015 repo\TTsXXJava\target\mvn-eclipse-cache.properties
[INFO] File D:\!2015 repo\TTsXXJava\capcha-solver\.project already exists.
Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.
[INFO] Wrote Eclipse project for "tesseractOcr" to D:\!2015 repo\TTsXXJava\capcha-solver.
[INFO]
Javadoc for some artifacts is not available.
List of artifacts without a javadoc archive:
o com.sun.jna:jna:3.0.9
o net.java.dev.jai-imageio:jai-imageio-core-standalone:1.2-pre-dr-b04-2011-07-04
o log4j:log4j:1.2.15
o commons-io:commons-io:1.3.1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] capcha solver ..................................... SUCCESS [ 0.962 s]
[INFO] tesseract ocr project ............................. SUCCESS [ 0.406 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.698 s
[INFO] Finished at: 2015-02-05T12:42:36+01:00
[INFO] Final Memory: 7M/183M
[INFO] ------------------------------------------------------------------------
Parent pom in case you need it (I remove the parent reference in the originaly posted pom)
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.mssb.capcha</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<version>1.0</version>
<name>capcha solver</name>
<modules>
<module>capcha-solver</module>
</modules>
<build>
<plugins>
<!-- All project will be interpreted (source) and compiled (target) in java 7 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<!-- this will make eclipse:eclipse goal work and make the project Eclipse compatible -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<classpathContainers>
<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7</classpathContainer>
</classpathContainers>
<additionalBuildcommands>
<buildcommand>net.sf.eclipsecs.core.CheckstyleBuilder</buildcommand>
</additionalBuildcommands>
<additionalProjectnatures>
<projectnature>net.sf.eclipsecs.core.CheckstyleNature</projectnature>
</additionalProjectnatures>
</configuration>
</plugin>
</plugins>
</build>
</project>
It is not doing anything because you have not bound any execution of the plugin to a lifecycle phase. You need to add a block like this:
<plugin>
<executions>
<execution>
<id>unpack-step</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
...
</configuration>
</executions>
</plugin>
See http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference for the possible lifecycle phases you can use.

maven-invoker doesn't call install on dependency

i have a problem in my maven build process. there is a pom file which uses the maven-invoker-plugin to execute different tasks:
<execution>
<id>createWebstartApps</id>
<phase>process-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<projectsDirectory>.</projectsDirectory>
<streamLogs>true</streamLogs>
<pomIncludes>
<pomInclude>pom1.xml</pomInclude>
</pomIncludes>
....
but when i use the maven release plugin "mvn release:prepare" the install goal will not be executed on the child pom dependencies. For example the pom1.xml has the following dependency:
<dependency>
<groupId>com.qnamic.dis</groupId>
<artifactId>DisAdminToolWithPlugins</artifactId>
<version>${project.parent.version}</version>
<type>pom</type>
<scope>runtime</scope>
.....
But this dependency (in this case the pom file) will not be installed in my local maven repo and therefore not be found:
[INFO] [INFO] Building: pomWebstartDisAdminTool.xml
[INFO] [INFO] [INFO] Scanning for projects...
[INFO] [INFO] [INFO]
[INFO] [INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [INFO] Building RailOpt DIS Admin Tool 4.9.12
[INFO] [INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [WARNING] The POM for com.qnamic.dis:DisAdminToolWithPlugins:pom:4.9.12 is missing, no dependency information available
[INFO] [INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [INFO] BUILD FAILURE
[INFO] [INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [INFO] Total time: 0.203s
[INFO] [INFO] [INFO] Finished at: Tue Feb 05 13:00:04 CET 2013
[INFO] [INFO] [INFO] Final Memory: 4M/15M
[INFO] [INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [ERROR] Failed to execute goal on project DisAdminToolWebstart: Could not resolve dependencies for project com.qnamic.dis:DisAdminToolWebstart:pom:4.9.12: Failure to find com.qnamic.dis:DisAdminToolWithPlugins:pom:4.9.12 in http://maven.ad.bls.ch/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of bls-public has elapsed or updates are forced -> [Help 1]
any ideas?
regards
Try adding install before run. Eg.
<execution>
<id>createWebstartApps</id>
<phase>process-resources</phase>
<goals>
<goal>install</goal>
<goal>run</goal>
</goals>
...
For more information: http://maven.apache.org/plugins/maven-invoker-plugin/install-mojo.html & http://maven.apache.org/plugins/maven-invoker-plugin/usage.html
HTH,
Jamie
Add the file invoker.properties next to your pom.xml
and put your goals into it, like:
invoker.goals = clean install

Maven release does not work with a grouping pom

I want to release a project with the following structre (simplified):
parent
--module A (packaging type: pom)
--module B (type jar)
--module C (type jar, uses A and B as dependency)
I want to release my project with the help of Jenkins. A build works fine.
But for the release it seems that there will not be a version of the pom-typed project in the reactor. The build failed because no version of the pom-type project can be found in my maven repository. With the dependency of type jar everything works well.
Can anybody help me?
here you can see the console out out and my test pom-files:
[INFO] [release:prepare {execution: default-cli}]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: /bin/sh -c cd /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace && git status
[INFO] Working directory: /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] Transforming 'Unnamed - com.basfits.test:parentTest:pom:0.0.2-SNAPSHOT'...
[INFO] Transforming 'Unnamed - com.basfits.test:childTestSimplePom:pom:0.0.2-SNAPSHOT'...
[INFO] Transforming 'Unnamed - com.basfits.test:testjarDep:jar:0.0.2-SNAPSHOT'...
[INFO] Transforming 'Unnamed - com.basfits.test:testPomDep:jar:0.0.2-SNAPSHOT'...
[INFO] Updating testjarDep to 0.0.2
[INFO] Updating childTestSimplePom to 0.0.2
[INFO] Not generating release POMs
[INFO] Executing goals 'clean verify'...
[INFO] [INFO] Scanning for projects...
[INFO] [INFO] Reactor build order:
[INFO] [INFO] Unnamed - com.basfits.test:parentTest:pom:0.0.2
[INFO] [INFO] Unnamed - com.basfits.test:childTestSimplePom:pom:0.0.2
[INFO] [INFO] Unnamed - com.basfits.test:testjarDep:jar:0.0.2
[INFO] [INFO] Unnamed - com.basfits.test:testPomDep:jar:0.0.2
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Unnamed - com.basfits.test:parentTest:pom:0.0.2
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Unnamed - com.basfits.test:childTestSimplePom:pom:0.0.2
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Unnamed - com.basfits.test:testjarDep:jar:0.0.2
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] [resources:resources {execution: default-resources}]
[INFO] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testjarDep/src/main/resources
[INFO] [INFO] [compiler:compile {execution: default-compile}]
[INFO] [INFO] Compiling 1 source file to /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testjarDep/target/classes
[INFO] [INFO] [resources:testResources {execution: default-testResources}]
[INFO] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testjarDep/src/test/resources
[INFO] [INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] [INFO] No sources to compile
[INFO] [INFO] [surefire:test {execution: default-test}]
[INFO] [INFO] No tests to run.
[INFO] [INFO] [jar:jar {execution: default-jar}]
[INFO] [INFO] Building jar: /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testjarDep/target/testjarDep-0.0.2.jar
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Building Unnamed - com.basfits.test:testPomDep:jar:0.0.2
[INFO] [INFO] task-segment: [clean, verify]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] [clean:clean {execution: default-clean}]
[INFO] [INFO] Deleting directory /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testPomDep/target
[INFO] [INFO] [resources:resources {execution: default-resources}]
[INFO] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] [INFO] skip non existing resourceDirectory /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/testPomDep/src/main/resources
[INFO] Downloading: http://maven.bcs.de/content/repositories/bis-releases/com/basfits/test/childTestSimplePom/0.0.2/childTestSimplePom-0.0.2.pom
[INFO] [INFO] Unable to find resource 'com.basfits.test:childTestSimplePom:pom:0.0.2' in repository bis-releases (http://maven.bcs.de/content/repositories/bis-releases)
[INFO] Downloading: http://maven.bcs.de/content/groups/public/com/basfits/test/childTestSimplePom/0.0.2/childTestSimplePom-0.0.2.pom
[INFO] [INFO] Unable to find resource 'com.basfits.test:childTestSimplePom:pom:0.0.2' in repository central (http://repo1.maven.org/maven2)
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Failed to resolve artifact.
[INFO]
[INFO] Missing:
[INFO] ----------
[INFO] 1) com.basfits.test:childTestSimplePom:pom:0.0.2
[INFO] Path to dependency:
[INFO] 1) com.basfits.test:testPomDep:jar:0.0.2
[INFO] 2) com.basfits.test:childTestSimplePom:pom:0.0.2
[INFO]
[INFO] ----------
[INFO] 1 required artifact is missing.
[INFO]
[INFO] for artifact:
[INFO] com.basfits.test:testPomDep:jar:0.0.2
[INFO]
[INFO] from the specified remote repositories:
[INFO] nexus-central (http://maven.bcs.de/content/groups/public),
[INFO] bis-releases (http://maven.bcs.de/content/repositories/bis-releases),
[INFO] bis-snapshots (http://maven.bcs.de/content/repositories/bis-snapshots)
[INFO]
[INFO]
[INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] For more information, run Maven with the -e switch
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 3 seconds
[INFO] [INFO] Finished at: Fri Jun 08 13:43:48 CEST 2012
[INFO] [INFO] Final Memory: 21M/271M
[INFO] [INFO] ------------------------------------------------------------------------
[JENKINS] Archiving /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/workspace/pom.xml to /CVS1/home/jenkins/.jenkins/jobs/PomDepstest/modules/com.basfits.test$parentTest/builds/2012-06-08_13-43-09/archive/com.basfits.test/parentTest/0.0.2-SNAPSHOT/parentTest-0.0.2-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
<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.basfits.test</groupId>
<artifactId>parentTest</artifactId>
<version>0.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<build />
<scm>
<connection>...</connection>
<url>...</url>
</scm>
<distributionManagement>
<repository>
<id>bis-releases</id>
<name>BIS Releases</name>
<url>...</url>
</repository>
<snapshotRepository>
<id>bis-snapshots</id>
<name>BIS Snapshots</name>
<url>...</url>
</snapshotRepository>
</distributionManagement>
<modules>
<module>childTestSimplePom</module>
<module>testPomDep</module>
<module>testjarDep</module>
</modules>
<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>parentTest</artifactId>
<groupId>com.basfits.test</groupId>
<version>0.0.2-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>childTestSimplePom</artifactId>
<packaging>pom</packaging>
<build />
<dependencies>
<dependency>
<groupId>com.mysema.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
</project>
<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>parentTest</artifactId>
<groupId>com.basfits.test</groupId>
<version>0.0.2-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>testPomDep</artifactId>
<build />
<dependencies>
<dependency>
<artifactId>testjarDep</artifactId>
<version>0.0.2-SNAPSHOT</version>
<groupId>com.basfits.test</groupId>
</dependency>
<dependency>
<artifactId>childTestSimplePom</artifactId>
<version>0.0.2-SNAPSHOT</version>
<groupId>com.basfits.test</groupId>
<type>pom</type>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
You can set the preparation goals to clean install (default is clean verify). Add this in your grouping pom:
<build>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<preparationGoals>clean install</preparationGoals>
</configuration>
</plugin>
<plugins>
<build>
This will install the released pom.xml into your local repository so your submodules can find it.

Resources