• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Maven dependency failure

 
Ranch Hand
Posts: 254
1
MySQL Database Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, I have imported this Maven project into MyEclipse. Once that was done, I notice that Project -> Build Path -> Libraries -> Maven Dependencies displays an error symbol. Issuing mvn clean results in build success. When I try to issue: mvn install it ends up in a build failure:



I've even deleted the .m2 directory. Here is my pom.xml:



I've omitted some lines above so that the project name is not revealed. How do I resolve this dependency issue?
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to read this http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

Unfortunately, Sun/Oracle doesn't allow Maven to host Sun/Oracle's proprietary jars. You have to download the jar from sun, and then add it to your own artifact repository.
 
Ahsan Bagwan
Ranch Hand
Posts: 254
1
MySQL Database Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding the artifact to the local repository helped resolve the issue. Thanks a lot as usual!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!