I got a fairly simple maven project using
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.13.3</version>
plugin in build section. When compiling this project using pipeline with
mvn -B verify
I get a strange error:
<span>[INFO] Downloading from central: <a href="https://repo.maven.apache.org/maven2/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/0.13.3/maven-jaxb2-plugin-0.13.3.pom" target="_blank" rel="nofollow noopener noreferrer">https://repo.maven.apache.org/maven2/org/jvnet/jaxb2/maven2/maven-jaxb2-plugin/0.13.3/maven-jaxb2-plugin-0.13.3.pom<br>...</a></span>
<span>[ERROR] Plugin org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:jar:0.13.3: Could not transfer artifact org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:pom:0.13.3 from/to central (<a href="https://repo.maven.apache.org/maven2" target="_blank" rel="nofollow noopener noreferrer">https://repo.maven.apache.org/maven2</a>): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 1]</span>
This looks like the build server has outdated SSL root certs, but could also be something different. Compiling the same project locally on my dev machine works fine.
Here my pipeline file:
image: maven:3.5.2-jdk-9
pipelines:
default:
- step:
caches:
- maven
script: # Modify the commands below to build your repository.
- mvn -B verify # -B batch mode makes Maven less verbose