My company is using Archiva as the internal central repository.

I am trying to deploy an artifact for the first time to our internal
repository. (yes, I am new to Maven)

The bottom line is that the artifact
org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy cannot be downloaded
from any repository.

What am I doing wrong?

Here is the setting.xml:

<?xml version="1.0" encoding="UTF-8"?>
<settings>
  <pluginGroups>
    <pluginGroup>triemax</pluginGroup>
  </pluginGroups>

<mirrors>
    <mirror>
      <id>archiva.default</id>
      <url>http://nnl-code.nnl.org:8080/archiva/repository/internal</url>
      <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

<servers>
    <server>
      <id>archiva.internal</id>
      <username>user</username>
      <password>password</password>
    </server>
    <server>
      <id>archiva.snapshots</id>     
      <username>user</username>
      <password>password</password>
    </server>
   <server>
      <id>archiva.nnl</id>     
      <username>user</username>
      <password>password</password>
    </server>
  </servers> 
</settings>


Here is the project pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>nnl</groupId>
  <artifactId>nnl-common</artifactId>
  <packaging>jar</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>nnl-common</name>
  <url/>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.4</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
 
  
  <distributionManagement>
    <repository>
      <id>archiva.nnl</id>
      <name>NNL snapshot Repository</name>
      <url>http://nnl-code.nnl.org:8080/archiva/repository/nnl/</url>
    </repository>    
  </distributionManagement>
  
</project>


Here is the output of the execution of the goal:

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building nnl-common
[INFO] 
[INFO] Id: nnl:nnl-common:jar:0.0.1-SNAPSHOT
[INFO] task-segment: [deploy]
[INFO]
------------------------------------------------------------------------
[INFO] Using mirror: archiva.default for repository: central
(mirror url: http://nnl-code.nnl.org:8080/archiva/repository/internal)
url = http://nnl-code.nnl.org:8080/archiva/repository/internal
Downloading:
http://nnl-code.nnl.org:8080/archiva/repository/internal/org/apache/maven/plugins/maven-deploy-plugin/2.3/maven-deploy-plugin-2.3.pom
[INFO] Using mirror: archiva.default for repository: central
(mirror url: http://nnl-code.nnl.org:8080/archiva/repository/internal)
[ERROR] 

Maven cannot calculate your build plan, given the following information:

Tasks:
- deploy

Current project:
Group-Id: nnl
Artifact-Id: nnl-common
Version: 0.0.1-SNAPSHOT
>From file: C:\Documents and Settings\goren\My
Documents\eclipse\workspace\nnl-common\pom.xml


Error message: Failed to resolve plugin for mojo binding:
org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy
Root error message: Unable to download the artifact from any repository



[INFO]
------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Sep 26 10:01:53 CDT 2008
[INFO] Final Memory: 5M/106M
[INFO]
------------------------------------------------------------------------
-- 
View this message in context: 
http://www.nabble.com/unable-to-download-artifact-org.apache.maven.plugins%3Amaven-deploy-plugin%3A2.3%3Adeploy-tp19691688p19691688.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to