[fedora-java] Problem with maven-antrun-plugin task being run with the jre rather than the jdk
Orion Poplawski
orion at cora.nwra.com
Tue Dec 4 15:38:00 UTC 2012
On 12/04/2012 01:07 AM, Mikolaj Izdebski wrote:
>> seem to be facing a classic issue with a maven-antrun-plugin task being run
>> with the jre rather than the jdk and not finding the compiler. Haven't yet
>> found the proper fix though. Any ideas?
>
> Java compiler is in tools.jar, you need to add it to classpath of antrun plugin
> explicitly, for example:
>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> [...]
> <dependencies>
> <dependency>
> <groupId>com.sun</groupId>
> <artifactId>tools</artifactId>
> <version>1.7</version>
> <scope>system</scope>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
> </dependency>
> </dependencies>
> </plugin>
> </plugins>
>
> Mikolaj
>
That's already there, although perhaps not in the right place? See attached
pom.xml. Or maybe because the version is too old?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office FAX: 303-415-9702
3380 Mitchell Lane orion at nwra.com
Boulder, CO 80301 http://www.nwra.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pom.xml
Type: text/xml
Size: 2789 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/java-devel/attachments/20121204/0ff687f9/attachment.xml>
More information about the java-devel
mailing list