• 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

Failed to resolve artifact error

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to using Maven,i got the following error


------------------------------------------------------------------------------------------------------------------------

so i used the commmand to install db2jcc using the above comments

mvn install:install-file -DgroupId=com.ibm.db2 -DartifactId=db2jcc_license_cisuz -Dversion=8.1.1 -Dpackaging=jar -Dfile=C:\Program Files\IBM\SQLLIB\BIN\db2jcc.jar

but i am still getting error which i cannot understand

 
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
Command lines dislike file names with spaces in them - make sure you enclose arguments such within quotes. Example:

mvn install:install-file -DgroupId=com.ibm.db2 -DartifactId=db2jcc_license_cisuz -Dversion=8.1.1 -Dpackaging=jar "-Dfile=C:\Program Files\IBM\SQLLIB\BIN\db2jcc.jar"
 
vamsi naki
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for the reply Peter.I resolved this error .To anyone who faced the same issue ,i created a folder structure in my .m2 repository com/ibm/db2/db2jcc/8.1.1 and in that i placed db2jcc-8.1.1 jar.Similarly i placed in com/ibm/db2/db2jcc_license_cisuz/8.1.1 the db2jcc_license_cisuz-8.1.1.jar and ran the maven clean compile command from cmd.
 
vamsi naki
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks Peter for the reply.I resolved the error .I created a directory structure com/ibm/db2/db2jcc/8.1.1/ in my .m2 reposiotry and placed db2jcc-8.1.1 jar in it .Similarly i placed db2jcc_license_cisuz-8.1.1.jar in com/ibm/db2/db2jcc_license_cisuz/8.1.1 of .m2 repository.Then i ran the maven clean compile command from cmd .
 
reply
    Bookmark Topic Watch Topic
  • New Topic