Re: Problem with maven-antrun-plugin task being run with the jre rather than the jdk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>    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
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel



[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux