If I run geoserver and geotools builds with java 5 and java 6 on the same machine, should I have two different local maven repos. (At the moment I have one, ".m2" in the home dir.
The jobs are started with the same maven options as in the official hudson build server.
Sometimes I get errors like
"Invalid version number in class file", which indicates a Java5 / Java 6 clash.
Christian Müller ha scritto:
If I run geoserver and geotools builds with java 5 and java 6 on the same machine, should I have two different local maven repos. (At the moment I have one, ".m2" in the home dir.
Yes, you should. On the win32 hudson (which is not working due to
systematic failures we are not able to trace atm) I made maven use
two separate repositories for java5 and java6 by adding the following
configuration:
-gs "C:/Hudson/Hudson Home With Spaces/mvn/settings-jdk5.xml"
where settings-jdk5.xml is a copy of apache-maven/conf/settings
with an explicitly set localRepository
Hope this helps
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
I configured like you proposed, this is a good idea.
Anyway the problem remains. I have 2 build servers, one suse 11.1 32 bit and one ubunutu 9.10 64 Bit. Both of them hosted a tomcat6 and I deployed the hudson war. The configurations seem to be identical, but the 32 bit Hudson had these class path problems.
At the end, I removed tomcat6 on both virtual machines and started the hudson.war with the init scripts. This works.
Another interesting thing is that starting hudson with OpenJDK, no geoserver builds are possible. This is because of an SSL handshake problem.
I did not investigate further and use SUN 6 now.
I hope to have offical URLs within December. At the moment I can say that the SUN builds work as expected, the ibm and openjdk builds have problems, interestingly sometimes exact the same test cases.
So far, so good
Andrea Aime writes:
Christian Müller ha scritto:
If I run geoserver and geotools builds with java 5 and java 6 on the same machine, should I have two different local maven repos. (At the moment I have one, ".m2" in the home dir.
Yes, you should. On the win32 hudson (which is not working due to
systematic failures we are not able to trace atm) I made maven use
two separate repositories for java5 and java6 by adding the following
configuration:
-gs "C:/Hudson/Hudson Home With Spaces/mvn/settings-jdk5.xml"
where settings-jdk5.xml is a copy of apache-maven/conf/settings
with an explicitly set localRepository
Hope this helps
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.