aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Failed to resolve artifact error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Failed to resolve artifact error " Watch "Failed to resolve artifact error " New topic
Author

Failed to resolve artifact error

vamsi naki
Ranch Hand

Joined: May 18, 2011
Posts: 46
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

Joined: May 14, 2008
Posts: 5830
    
    7

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"


JBoss In Action
vamsi naki
Ranch Hand

Joined: May 18, 2011
Posts: 46
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

Joined: May 18, 2011
Posts: 46
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 .
 
wood burning stoves
 
subject: Failed to resolve artifact error