Re: Problem With Maven Compiler Plugin

2016-05-10 Thread Mark Prins

On 10-05-16 16:12, michael.ctr.taru...@faa.gov wrote:

When attempting to build with Maven from Eclipse I am getting the following 
error:

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on 
project camel-activemq: Fatal error compiling: tools.jar not found: 
C:\Dev\Java\jre1.8.0_51\..\lib\tools.jar -> [Help 1]

I'm confused about why the plugin is looking in the JRE for tools.jar, when 
this JAR exists in the JDK.



I think the eclipse maven plugin uses the JVM that eclipse is running 
in, so you need to specify either a specific JDK or run eclipse in a JDK 
VM (this is configured in eclipse.ini if I recall correctly)


(or -not recommended- specify a specific compiler in your pom/compiler 
plugin)


-M

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Problem With Maven Compiler Plugin

2016-05-10 Thread Michael.CTR.Tarullo
When attempting to build with Maven from Eclipse I am getting the following 
error:

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) 
on project camel-activemq: Fatal error compiling: tools.jar not found: 
C:\Dev\Java\jre1.8.0_51\..\lib\tools.jar -> [Help 1]

I'm confused about why the plugin is looking in the JRE for tools.jar, when 
this JAR exists in the JDK.

Here is the build tag in my POM:
  
install


  
org.apache.maven.plugins
maven-compiler-plugin
2.5.1

  1.7
  1.7
   
  
  
org.apache.maven.plugins
maven-resources-plugin
2.6

  UTF-8
   
  

  
  
org.apache.camel
camel-maven-plugin
2.15.1.redhat-620133
  

  

Thanks,
Mike

Michael Tarullo
Contractor (Engility Corp)
Software Engineer
FAA WJH Technical Center
(609)485-5294