• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

External Jar not being referenced in the pom.xml

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ranchers,

I have added 2 external jar files along with hibernate files in my pom.xml.

Here is my pom.xml



After this I have also installed the jtds and super csv external jars by running following commands


Now I'm getting the following error when I'm running mvn install


Any help would be greatly appreciated. I'm only into my second day with Maven so I'm also learning and researching about this meanwhile.

- Ank
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The groupIds in the install:install-file command don't match the groupIds used in the dependency entries in your POM. Ditto for the version on the jdts artifact.
 
Ankit V Agrawal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks peter, yes that was a mistake. But I now wonder how it got successful in the first place

Anyways I have corrected what you have mentioned and have these 2 commands running now

mvn install:install-file -DgroupId=org.supercsv -DartifactId=SuperCSV -Dversion=1.52 -Dpackaging=jar -Dfile=mySuperCSVLocation
mvn install:install-file -DgroupId=net.sourceforge -DartifactId=jtds -Dversion=1.2.5 -Dpackaging=jar -Dfile=mySuperCSVLocation


But still the problem persists
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post the full mvn build output.
 
Ankit V Agrawal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a sonatype nexus maven repository, these two jars were not added there, after adding them in that repository the problem got resolved. Thanks you.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, installing such third-party artifacts in a central repository, such as Nexus, is always preferred to installing them in a local repository.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic