Java Mailing List Archive

http://www.java2.5341.com/

Home » Maven Users List »

Maven First installation on Windows Vista doesn't work as expected

Marco Tedone

2008-10-04

Replies: Find Java Web Hosting

Author LoginPost Reply
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:

<profiles>
<profile>
 <activation>
  <activeByDefault>true</activeByDefault>
 </activation>
 <repositories>
  <repository>
    <id>repo1</id>
    <url>http://repo1.maven.org/maven2</url>
  </repository>
  <repository>
    <id>codehaus-snapshots</id>
    <url>http://snapshots.repository.codehaus.org</url>
  </repository>
  <repository>
    <id>java.net.m2</id>
    <url>http://download.java.net/maven/2</url>
  </repository>
  <repository>
    <id>java.net.m1</id>
    <url>http://download.java.net/maven/1</url>
  </repository>
  <repository>
    <id>jemos-repo</id>
    <url>http://jemoslinux:8081/artifactory/jemos-repo</url>
  </repository>
  <repository>
    <id>jemos-repo-ext</id>
    <url>http://jemoslinux:8081/artifactory/repo</url>
  </repository>
 </repositories>
 <id>default</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>default</activeProfile>
</activeProfiles>
<pluginGroups>
<pluginGroup>uk.co.jemos.maven.plugins</pluginGroup>
</pluginGroups>

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: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.