• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?





 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic