• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Maven dependency failure

 
Ranch Hand
Posts: 254
1
MySQL Database Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic