set javac to fork
Sent from my [rhymes with tryPod] ;-)
On 29 Sep 2009, at 19:49, Stuart Sierra <[email protected]>
wrote:
Hi,
I have a Maven project that needs to call an Ant script (to build a
customized JRuby), which calls another Ant script (to compile JRuby
itself).
My POM contains:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>ant-build-jruby</id>
<phase>compile</phase>
<configuration>
<tasks>
<ant/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
But when I run it, I get the following error from Ant:
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.
It is currently set to "/usr/lib/jvm/java-6-sun-1.6.0.06/jre"
My JAVA_HOME environment variable is set to "/usr/lib/jvm/java-6-sun",
which is a symlink to the JDK at "/usr/lib/jvm/java-6-sun-1.6.0.06".
Calling ant like an ordinary program using Codehaus' exec-maven-plugin
works fine.
Is Maven modifying the environment in which the ant task runs? How
can I stop it?
Thanks,
-SS
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]