• Post Reply Bookmark Topic Watch Topic
  • New Topic

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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!