You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by thomas2004 <th...@yahoo.de> on 2008/09/05 18:53:46 UTC
Unable to download
"org.apache.maven.plugins:maven-dependency-plugin:pom:2.0"
Hi all, the following is my pom.xml. As I run mvn clean I got error:
[code]
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.plugins
ArtifactId: maven-dependency-plugin
Version: 2.0
Reason: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-dependency-plugin:pom:2.0
from the specified remote repositories:
ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Fri Sep 05 18:44:00 CEST 2008
[INFO] Final Memory: 1M/3M
[INFO]
------------------------------------------------------------------------
[/code]
My "pom.xml":
[code]
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<excludeScope>provided</excludeScope>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
</configuration>
</plugin>
</plugins>
</build>
[/code]
--
View this message in context: http://www.nabble.com/Unable-to-download-%22org.apache.maven.plugins%3Amaven-dependency-plugin%3Apom%3A2.0%22-tp19335385p19335385.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Unable to download
"org.apache.maven.plugins:maven-dependency-plugin:pom:2.0"
Posted by thomas2004 <th...@yahoo.de>.
As I try it today again, seems the plugin can be downloaded. But as I run
"mvn install", I got another error:
[code]
Missing:
----------
1) javax.jms:jms:jar:1.1
2) com.sun.jdmk:jmxtools:jar:1.2.1
3) com.sun.jmx:jmxri:jar:1.2.1
[/code]
Brian E Fox wrote:
>
> I can't see anything obvious in your config, and ibiblio does have the
> file:
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/m
> aven-dependency-plugin/2.0/
>
> So either there is bad metadata in your local repo, or you have some
> connection problem/firewall etc.
>
--
View this message in context: http://www.nabble.com/Unable-to-download-%22org.apache.maven.plugins%3Amaven-dependency-plugin%3Apom%3A2.0%22-tp19335385p19343762.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Unable to download
"org.apache.maven.plugins:maven-dependency-plugin:pom:2.0"
Posted by thomas2004 <th...@yahoo.de>.
1.
I have no problem with connection/firewall, since I can run other poms.
2.
What do you mean "bad metadata in my local repo"? How can I clean it?
Thanks
Brian E Fox wrote:
>
> I can't see anything obvious in your config, and ibiblio does have the
> file:
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/m
> aven-dependency-plugin/2.0/
>
> So either there is bad metadata in your local repo, or you have some
> connection problem/firewall etc.
>
>
--
View this message in context: http://www.nabble.com/Unable-to-download-%22org.apache.maven.plugins%3Amaven-dependency-plugin%3Apom%3A2.0%22-tp19335385p19343533.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Unable to download "org.apache.maven.plugins:maven-dependency-plugin:pom:2.0"
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
I can't see anything obvious in your config, and ibiblio does have the
file:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/m
aven-dependency-plugin/2.0/
So either there is bad metadata in your local repo, or you have some
connection problem/firewall etc.
-----Original Message-----
From: thomas2004 [mailto:thomas2004ch@yahoo.de]
Sent: Friday, September 05, 2008 12:54 PM
To: users@maven.apache.org
Subject: Unable to download
"org.apache.maven.plugins:maven-dependency-plugin:pom:2.0"
Hi all, the following is my pom.xml. As I run mvn clean I got error:
[code]
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.plugins
ArtifactId: maven-dependency-plugin
Version: 2.0
Reason: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-dependency-plugin:pom:2.0
from the specified remote repositories:
ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Fri Sep 05 18:44:00 CEST 2008
[INFO] Final Memory: 1M/3M
[INFO]
------------------------------------------------------------------------
[/code]
My "pom.xml":
[code]
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<excludeScope>provided</excludeScope>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
</configuration>
</plugin>
</plugins>
</build>
[/code]
--
View this message in context:
http://www.nabble.com/Unable-to-download-%22org.apache.maven.plugins%3Am
aven-dependency-plugin%3Apom%3A2.0%22-tp19335385p19335385.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org