• 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Maven dependency failure  RSS feed

 
Ranch Hand
Posts: 254
1
Java MySQL Database 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: 2762
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
Java MySQL Database 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!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!