Nota Bene: to detect missing dependencies i run dependency:tree and  bind to 
initialize phase before compilation
http://stackoverflow.com/questions/17978768/how-to-determine-which-maven-dependency-is-needing-a-missing-dependency
HTH!
Martin (decidedly left of CTR) Gainty 



> From: [email protected]
> To: [email protected]
> Subject: RE: Problem With Maven Compiler Plugin
> Date: Wed, 11 May 2016 15:14:24 +0000
> 
> Thank you for the reply Mark.
> 
> This problem "fixed itself".  Just thought I'd explain here in the event 
> anyone else was having the same problem.
> 
> There were some dependencies I was missing in my POM.  They were libraries 
> needed by the app (I'm new to this app and it is not normally built with 
> Maven) and I had not included them in the POM or our repo yet.  But they were 
> not related to a plugin in any way.
> 
> When I added these dependencies to the POM and tried a compile from the 
> command line, the build worked.  Then with no changes to Eclipse I submitted 
> the compile using Run As..... Maven build and it also worked fine.
> 
> So the error message about not being able to find tools.jar, and the fact 
> that it appeared to be looking for it in the wrong place, appears to be just 
> a distraction from the actual problem, in this case not including all the 
> dependencies.  I'm not sure why that would result in the error message I was 
> seeing, but at this stage, that's a moot point.
> 
> Mike
> 
> Michael Tarullo
> Contractor (Engility Corp)
> Software Engineer
> FAA WJH Technical Center
> (609)485-5294
> 
> -----Original Message-----
> From: Mark Prins [mailto:[email protected]] 
> Sent: Tuesday, May 10, 2016 10:24 AM
> To: [email protected]
> Subject: Re: Problem With Maven Compiler Plugin
> 
> On 10-05-16 16:12, [email protected] 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: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
                                          

Reply via email to