You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chris DeJong <ch...@metatv.com> on 2005/04/11 22:30:42 UTC
possible to specify JAVA_HOME?
I'm building several project with maven, some of which build with a
JAVA_HOME set to 1.4, some with 1.5 (aka Java5).
So far, I can't get the 1.4 projects to build with a 1.5 JAVA_HOME, even
if I set maven.compile.executable and maven.compile.source to 1.4. The
build fails on our xjc task. The 1.4 installation handles XML
differently, and has jar files in its endorsed directory.
I'm actually calling maven from cruisecontrol, so I would prefer to be
able to handle all of this from inside of maven somehow, and not have to
modify my environment settings outside of maven. Then I can have one
cruisecontrol job build everything, regardless of jdk version.
One easy fix would be to specify a different JAVA_HOME for a build. Is
there some way to do this?
Thanks!
--Chris
Re: possible to specify JAVA_HOME?
Posted by Mark Lowe <me...@gmail.com>.
Use a shell script or batch file so you dont need to mess with maven's
scripts, this makes things easier when upgrading maven also.. On
windows your cursed with no symlinking but its still workable.
Mark
On Apr 11, 2005 11:36 PM, Arik Kfir <ar...@gmail.com> wrote:
>
>
> I also had a problem with java1.5+maven - what I did is modify the maven
> installation - I don't remember exactly what I did, but I know my
> "MAVEN_HOME/lib/endorsed" dir is empty, and I remember modifying the
> maven.bat file to NOT add the "-Djavax.xml.parser....." and
> "-Djavax.xml.SAXParser...." properties.
>
> The problem I think was that java5 changed the xml parser's package names,
> and caused some collisions.
>
> Perhaps there is a better solution someone here can suggest (I definitly
> don't like messing with Maven's home).
>
>
>
> Chris DeJong wrote:
> I'm building several project with maven, some of which build with a
> JAVA_HOME set to 1.4, some with 1.5 (aka Java5).
>
>
>
> So far, I can't get the 1.4 projects to build with a 1.5 JAVA_HOME, even
> if I set maven.compile.executable and maven.compile.source to 1.4. The
> build fails on our xjc task. The 1.4 installation handles XML
> differently, and has jar files in its endorsed directory.
>
>
>
> I'm actually calling maven from cruisecontrol, so I would prefer to be
> able to handle all of this from inside of maven somehow, and not have to
> modify my environment settings outside of maven. Then I can have one
> cruisecontrol job build everything, regardless of jdk version.
>
>
>
> One easy fix would be to specify a different JAVA_HOME for a build. Is
> there some way to do this?
>
>
>
> Thanks!
>
> --Chris
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: possible to specify JAVA_HOME?
Posted by Arik Kfir <ar...@gmail.com>.
I also had a problem with java1.5+maven - what I did is modify the maven
installation - I don't remember exactly what I did, but I know my
"MAVEN_HOME/lib/endorsed" dir is empty, and I remember modifying the
maven.bat file to NOT add the "-Djavax.xml.parser....." and
"-Djavax.xml.SAXParser...." properties.
The problem I think was that java5 changed the xml parser's package
names, and caused some collisions.
Perhaps there is a better solution someone here can suggest (I definitly
don't like messing with Maven's home).
Chris DeJong wrote:
>I'm building several project with maven, some of which build with a
>JAVA_HOME set to 1.4, some with 1.5 (aka Java5).
>
>
>
>So far, I can't get the 1.4 projects to build with a 1.5 JAVA_HOME, even
>if I set maven.compile.executable and maven.compile.source to 1.4. The
>build fails on our xjc task. The 1.4 installation handles XML
>differently, and has jar files in its endorsed directory.
>
>
>
>I'm actually calling maven from cruisecontrol, so I would prefer to be
>able to handle all of this from inside of maven somehow, and not have to
>modify my environment settings outside of maven. Then I can have one
>cruisecontrol job build everything, regardless of jdk version.
>
>
>
>One easy fix would be to specify a different JAVA_HOME for a build. Is
>there some way to do this?
>
>
>
>Thanks!
>
>--Chris
>
>
>
>