Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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: 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
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!