Hi Mikaël,
Thanks for the tip. I tried again, and now I see:
[INFO] -----------------------< org.glassfish.pfl:pfl >------------------------
[INFO] Building Eclipse ORB 4.1.1 [1/7]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven) @ pfl ---
[INFO]
[INFO] --- maven-toolchains-plugin:1.1:toolchain (default) @ pfl ---
[INFO] Required toolchain: jdk [ version='JavaSE-1.8' ]
[ERROR] No toolchain matched from 15 found for type jdk
[ERROR] Cannot find matching toolchain definitions for the following toolchain types:
jdk [ version='JavaSE-1.8' ]
That looks like what the toolchain you mentioned provides:
|
<toolchain> | | <type>jdk</type> | | <provides><id>JavaSE-1.8</id></provides> | | <configuration><jdkHome>/opt/tools/java/oracle/jdk-8/latest/jre</jdkHome></configuration> | | </toolchain> | |
Am I misreading it? And that seems to be a jre - does it include javac?
Thanks, Russ
Hi Russel,
You don't need to do that anymore. We have a toolchains.xml automatically mounted with the proper values. Current content can be found here https://github.com/eclipse-cbi/jiro/blob/master/templates/k8s/m2-dir.libsonnet
Cheers,
Mikaël Barbero
Team Lead - Release Engineering | Eclipse Foundation 🐦 @mikbarbero
Hi,
I am an administrator on this projec , and we are now attempting to do a release for the first time in over a year. The project uses maven, which needs to write at least into the .m2/repository directory. In addition, it requires a toolchain, so we need a way to copy a file from the project into some location that can be accessed during the build. In the past, that location was /home/jenkins/.m2.
Now, however, any attempt to do so results in the error:
+ cp eclipse-jenkins/toolchains.xml /home/jenkins/.m2
cp: cannot create regular file '/home/jenkins/.m2/toolchains.xml': Read-only file system
I suspect that there is something wrong with the Kubernetes Pod configuration; specifically, the volume mounts. How do I change them? It’s using subpath, when it is not necessary and not designating the volumes as writeable.
Thanks, Russ _______________________________________________ cbi-dev mailing list cbi-dev@xxxxxxxxxxxTo unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cbi-dev
_______________________________________________ cbi-dev mailing list cbi-dev@xxxxxxxxxxxTo unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cbi-dev
|