local artifact use error
Hi, I use the following command to install a JAR in local repository: mvn install:install-file -Dfile=c:\{module}-{version}.jar -DgroupId=com.sourceforge.code -DartifactId={module} -Dversion={version} -Dpackaging=jar -DgeneratePom=true and its seems to work fine: $ mvn install:install-file -Dfile=C:\\Eclipse\\K2\\W\\covana_old\\lib\\recoder_0.97.jar -DgroupId=com.sourceforge.code -DartifactId=recoder -Dversion=0.97 -Dpackaging=jar -DgeneratePom=true [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building covana 1.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ covana --- [INFO] Installing C:\Eclipse\K2\W\covana_old\lib\recoder_0.97.jar to d:\Profiles\\.m2\repository\com\sourceforge\code\recoder\0.97\recoder-0.97.jar [INFO] Installing C:\cygwin\tmp\mvninstall4213701695268682729.pom to d:\Profiles\\.m2\repository\com\sourceforge\code\recoder\0.97\recoder-0.97.pom [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 0.610s [INFO] Finished at: Fri Jan 31 11:45:55 CET 2014 [INFO] Final Memory: 6M/121M [INFO] I add the dependency in my project POM file: dependency groupIdorg.sourceforge.code/groupId artifactIdrecoder/artifactId version0.97/version /dependency But when I launch mvn clean package command it's KO searching central update of my local module... The -offline or -U options doesn't change anything $ mvn clean package [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building covana 1.0-SNAPSHOT [INFO] [WARNING] The POM for org.sourceforge.code:recoder:jar:0.97 is missing, no dependency information available [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.008s [INFO] Finished at: Fri Jan 31 11:48:50 CET 2014 [INFO] Final Memory: 7M/153M [INFO] [ERROR] Failed to execute goal on project covana: Could not resolve dependencies for project core:covana:jar:1.0-SNAPSHOT: Failure to find org.sourceforge.code:recoder:jar:0.97 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException Can you help me to use local repository and configure it? Regards -- View this message in context: http://maven.40175.n5.nabble.com/local-artifact-use-error-tp5782890.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: local artifact use error
You've specified the groupId as com.sourceforge.code, not org.sourceforge.code. Change in your pom and it should work. /Anders On Fri, Jan 31, 2014 at 11:54 AM, cyrduf cyr...@free.fr wrote: Hi, I use the following command to install a JAR in local repository: mvn install:install-file -Dfile=c:\{module}-{version}.jar -DgroupId=com.sourceforge.code -DartifactId={module} -Dversion={version} -Dpackaging=jar -DgeneratePom=true and its seems to work fine: $ mvn install:install-file -Dfile=C:\\Eclipse\\K2\\W\\covana_old\\lib\\recoder_0.97.jar -DgroupId=com.sourceforge.code -DartifactId=recoder -Dversion=0.97 -Dpackaging=jar -DgeneratePom=true [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building covana 1.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ covana --- [INFO] Installing C:\Eclipse\K2\W\covana_old\lib\recoder_0.97.jar to d:\Profiles\\.m2\repository\com\sourceforge\code\recoder\0.97\recoder-0.97.jar [INFO] Installing C:\cygwin\tmp\mvninstall4213701695268682729.pom to d:\Profiles\\.m2\repository\com\sourceforge\code\recoder\0.97\recoder-0.97.pom [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 0.610s [INFO] Finished at: Fri Jan 31 11:45:55 CET 2014 [INFO] Final Memory: 6M/121M [INFO] I add the dependency in my project POM file: dependency groupIdorg.sourceforge.code/groupId artifactIdrecoder/artifactId version0.97/version /dependency But when I launch mvn clean package command it's KO searching central update of my local module... The -offline or -U options doesn't change anything $ mvn clean package [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building covana 1.0-SNAPSHOT [INFO] [WARNING] The POM for org.sourceforge.code:recoder:jar:0.97 is missing, no dependency information available [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.008s [INFO] Finished at: Fri Jan 31 11:48:50 CET 2014 [INFO] Final Memory: 7M/153M [INFO] [ERROR] Failed to execute goal on project covana: Could not resolve dependencies for project core:covana:jar:1.0-SNAPSHOT: Failure to find org.sourceforge.code:recoder:jar:0.97 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException Can you help me to use local repository and configure it? Regards -- View this message in context: http://maven.40175.n5.nabble.com/local-artifact-use-error-tp5782890.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: local artifact use error
Thanks for your help So simple mistake Cyril -- View this message in context: http://maven.40175.n5.nabble.com/local-artifact-use-error-tp5782890p5782896.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org