You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Xavier Toth <tx...@gmail.com> on 2006/03/09 17:25:35 UTC
[m2] maven-antrun-plugin classpath related behavior changed
maven-antrun-plugin executions that had been working are failing with
classpath related issues (classnotfound). I'm thinking maybe I've picked up
a newer version of the plugin and it's behavior is different. Is anyone else
experiencing these types of problems?
Xavier
RE: [m2] maven-antrun-plugin classpath related behavior changed
Posted by bigred0241 <bi...@gmail.com>.
The problem is that for some reason, maven redirects the java.home variable
to jre, so if your java_home is currently pointing at c:\j2sdk1.5.0_08,
maven will add jre to the end of that. With the incorrect java_home
variable, the tools.jar file can't be found.
Take a look here:
http://www.mail-archive.com/users@maven.apache.org/msg57981.html
Mayorgaadame, Alex [IT] wrote:
>
> Xavier,
>
> I've seen something similar just yesterday. Can you share your stack
> traces?
>
> mvn goal -X
>
> Also which version of ant is maven using, mine was 1.6.5 and fails like:
>
> Embedded error: The following error occurred while executing this line:
> /home/am74839/sree/esf_samples_build.xml:162: Unable to find a javac
> compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
>
> Regards,
> Alex
>
> -----Original Message-----
> From: Xavier Toth [mailto:txtoth@gmail.com]
> Sent: Thursday, March 09, 2006 11:26 AM
> To: Maven Users List
> Subject: [m2] maven-antrun-plugin classpath related behavior changed
>
>
> maven-antrun-plugin executions that had been working are failing with
> classpath related issues (classnotfound). I'm thinking maybe I've picked
> up
> a newer version of the plugin and it's behavior is different. Is anyone
> else
> experiencing these types of problems?
>
> Xavier
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-m2--maven-antrun-plugin-classpath-related-behavior-changed-tf1253800s177.html#a8147998
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org