Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Failed to resolve artifact error

 
vamsi naki
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • 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

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic