File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven shows a missing artifact error even though I tried fixing the POM.xml

 
karthik raghunathan
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm installing Broadleaf to learn J2EE .
I followed instructions at http://docs.broadleafcommerce.org/core/ ... ng-started

I get the following error when the project is loaded into eclipse.
Missing artifact jdk.tools:jdk.tools.jar:1.6
The container 'Maven Dependencies' references non-existing library 'C:/<home>/.m2/jdk/tools/jdk.tools/1.6/jdk.tools-1.6.jar
I tried following a couple of stack overflow links but even then the errors continued to show up.
http://stackoverflow.com/questions/11118070/buiding-hadoop-with-eclipse-maven-missing-artifact-jdk-toolsjdk-toolsjar1


EDIT: I have Java JDK 1.7 installed and Eclipse configured to use it

Could you help me resolve this ? Am I missing something basic ?
Thanks in advance
Karthik
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33716
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The link to the tutorial is broken, so I'm not sure what you were following. Can you copy/paste your pom here?
 
karthik raghunathan
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apologies for incorrect link, here's the link again

http://www.broadleafcommerce.com/docs/core/current/getting-started


And here's the POM.
1. jdktools1.6 is not in it. Should it be ?
2. I'm sure tools.jar is part of my eclipse's JVM . Does it have to be in the POM ?





 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like one of the dependencies, or one of the listed plugins, has the tools.jar file listed as a dependency, which it should not be doing because tools.jar is part of the JDK and will be included automatically.

You have several options:
1) Try to find out who is referencing tools.jar and removing the reference. The dependency plugin might help, something like: mvn dependency:tree
Or you turn on the -X option, run the build again, and post the full console output.

2) Install the tools.jar into your local repository. Look at the docs for the install plugin for more details.

By the way, you mentioned Eclipse. It would be better it you did the builds from the command line for now until the issue is resolved. This will help eliminate Eclipse from being the culprit (sometime in tryin to be too helpful, Eclipse just makes things worse).
 
karthik raghunathan
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>> By the way, you mentioned Eclipse. It would be better it you did the builds from the command line for now until the issue is resolved. This will help eliminate Eclipse from being the culprit (sometime in tryin to be too helpful, Eclipse just makes things worse).

Thanks a lot ! It _was_ Eclipse that wasn't playing nice. I could run maven from the command line/prompt and everything went fine. Now I just need to read up on how to start modifying the code to my needs ...
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is exactly why I use Eclipse only as an intelligent editor - all builds, test runs, etc. I do from the command line. I suspect that in a parallel universe where by counterpart uses Eclipse to do such things, he has way more grey hairs than I do, and an ulcer. Poor guy...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic