Re: Maven First installation on Windows Vista doesn't work as expected
Brian E. Fox wrote: You need to add the repo as a pluginRepository in addition to repository. -Original Message- From: Marco Tedone [mailto:[EMAIL PROTECTED] Sent: Saturday, October 04, 2008 4:28 PM To: Maven-Users Subject: Maven First installation on Windows Vista doesn't work as expected Hi everybody, I just installed Maven on a new laptop running Windows Vista (don't worry, this is not my production box :-) ). The problem is that when building a project a certain dependency is not downloaded from the artifactory. Running an help on the build I get: true repo1 http://repo1.maven.org/maven2 codehaus-snapshots http://snapshots.repository.codehaus.org java.net.m2 http://download.java.net/maven/2 java.net.m1 http://download.java.net/maven/1 jemos-repo http://jemoslinux:8081/artifactory/jemos-repo jemos-repo-ext http://jemoslinux:8081/artifactory/repo default default uk.co.jemos.maven.plugins Please note that the dependency I'm referring can be seen both from jemos-repo and jemos-repo-ext (if you want to verify, just replace jemoslinux:8081 with http://www.jemos.co.uk However it appears that Maven tries to download the plugin from central only and then it fails (rather than trying on all other repositories). This is the exception message I get: [INFO] Downloading: http://repo1.maven.org/maven2/uk/co/jemos/maven/plugins/jeco-plugin/1.0. 1/jeco-plugin-1.0.1.jar [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=uk.co.jemos.maven.plugins -DartifactId=jeco-plugin -Dversion=1.0.1 -Dpackaging=maven-plugin -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=uk.co.jemos.maven.plugins -DartifactId=jeco-plugin -Dversion=1.0.1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] uk.co.jemos.maven.plugins:jeco-plugin:maven-plugin:1.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2) uk.co.jemos.maven.plugins:jeco-plugin:maven-plugin:1.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] But the jar is available at the following address (for instance): http://www.jemos.co.uk/artifactory/repo/uk/co/jemos/maven/plugins/jeco-p lugin/1.0.1/ Any idea as of why this is happening? Regards, M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Brilliant, that'll do it. Thanks. M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven First installation on Windows Vista doesn't work as expected
You need to add the repo as a pluginRepository in addition to repository. -Original Message- From: Marco Tedone [mailto:[EMAIL PROTECTED] Sent: Saturday, October 04, 2008 4:28 PM To: Maven-Users Subject: Maven First installation on Windows Vista doesn't work as expected Hi everybody, I just installed Maven on a new laptop running Windows Vista (don't worry, this is not my production box :-) ). The problem is that when building a project a certain dependency is not downloaded from the artifactory. Running an help on the build I get: true repo1 http://repo1.maven.org/maven2 codehaus-snapshots http://snapshots.repository.codehaus.org java.net.m2 http://download.java.net/maven/2 java.net.m1 http://download.java.net/maven/1 jemos-repo http://jemoslinux:8081/artifactory/jemos-repo jemos-repo-ext http://jemoslinux:8081/artifactory/repo default default uk.co.jemos.maven.plugins Please note that the dependency I'm referring can be seen both from jemos-repo and jemos-repo-ext (if you want to verify, just replace jemoslinux:8081 with http://www.jemos.co.uk However it appears that Maven tries to download the plugin from central only and then it fails (rather than trying on all other repositories). This is the exception message I get: [INFO] Downloading: http://repo1.maven.org/maven2/uk/co/jemos/maven/plugins/jeco-plugin/1.0. 1/jeco-plugin-1.0.1.jar [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=uk.co.jemos.maven.plugins -DartifactId=jeco-plugin -Dversion=1.0.1 -Dpackaging=maven-plugin -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=uk.co.jemos.maven.plugins -DartifactId=jeco-plugin -Dversion=1.0.1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] uk.co.jemos.maven.plugins:jeco-plugin:maven-plugin:1.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2) uk.co.jemos.maven.plugins:jeco-plugin:maven-plugin:1.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] But the jar is available at the following address (for instance): http://www.jemos.co.uk/artifactory/repo/uk/co/jemos/maven/plugins/jeco-p lugin/1.0.1/ Any idea as of why this is happening? Regards, M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven First installation on Windows Vista doesn't work as expected
Hi everybody, I just installed Maven on a new laptop running Windows Vista (don't worry, this is not my production box :-) ). The problem is that when building a project a certain dependency is not downloaded from the artifactory. Running an help on the build I get: true repo1 http://repo1.maven.org/maven2 codehaus-snapshots http://snapshots.repository.codehaus.org java.net.m2 http://download.java.net/maven/2 java.net.m1 http://download.java.net/maven/1 jemos-repo http://jemoslinux:8081/artifactory/jemos-repo jemos-repo-ext http://jemoslinux:8081/artifactory/repo default default uk.co.jemos.maven.plugins Please note that the dependency I'm referring can be seen both from jemos-repo and jemos-repo-ext (if you want to verify, just replace jemoslinux:8081 with http://www.jemos.co.uk However it appears that Maven tries to download the plugin from central only and then it fails (rather than trying on all other repositories). This is the exception message I get: [INFO] Downloading: http://repo1.maven.org/maven2/uk/co/jemos/maven/plugins/jeco-plugin/1.0.1/jeco-plugin-1.0.1.jar [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=uk.co.jemos.maven.plugins -DartifactId=jeco-plugin -Dversion=1.0.1 -Dpackaging=maven-plugin -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=uk.co.jemos.maven.plugins -DartifactId=jeco-plugin -Dversion=1.0.1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] uk.co.jemos.maven.plugins:jeco-plugin:maven-plugin:1.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2) uk.co.jemos.maven.plugins:jeco-plugin:maven-plugin:1.0.1 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] But the jar is available at the following address (for instance): http://www.jemos.co.uk/artifactory/repo/uk/co/jemos/maven/plugins/jeco-plugin/1.0.1/ Any idea as of why this is happening? Regards, M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]