You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by koppaka pradeep <bu...@gmail.com> on 2011/07/29 16:36:24 UTC

does Maven 3 supports use of archiva 1.3.5

hello,
my access was denied to archiva and i defined in settings.xml
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building Parent Sample Pom 0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
Downloading:
http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.284s
[INFO] Finished at: Fri Jul 29 19:51:12 IST 2011
[INFO] Final Memory: 2M/50M
[INFO]
------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.3.1 or one of
its dependencies could not be resolved: Failed to read artifact descriptor
for org.apache.maven.plugins:maven-install-plugin:jar:2.3.1: Could not
transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.3.1
from/to archiva.default
(http://localhost:8080/archiva/repository/internal/): Access denied to:
http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
-> [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/PluginResolutionException


I followed the guide in configuring but i am not able to.... please tell me
the complete template for configuring archiva..in maven3 settings.xml

i am pasting my settings.xml for better idea...please guide me.. i am new to
maven..i am behind a proxy
<?xml version="1.0" encoding="UTF-8"?>
<proxies>
 <proxy>
      <id>Myproxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>user</username>
      <password>*****</password>
      <host>proxy.mycompany.com</host>
      <port>8080</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
  </proxies>

 
  <servers>
    <server> 
     <id>archiva.internal</id> 
     <username>admin</username> 
     <password>archiva123</password> 
</server> 
<server> 
     <id>archiva.snapshots</id> 
    <username>admin</username> 
     <password>archiva123</password> 
</server>
  </servers>


  <profiles>
  <profile>
        <id>day-central</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <repositories>
          <repository>
      <id>internal</id>
      <name>Archiva Managed Internal Repository</name>
      <url>http://localhost:8080/archiva/repository/internal/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>snapshots</id>
      <name>Archiva Managed Snapshot Repository</name>
      <url>http://localhost:8080/archiva/repository/snapshots/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
        </repositories>
        <pluginRepositories>
          <pluginRepository>
            <id>internal</id>
            <name>My Company Archiva Repository</name>
            <url>http://localhost:8080/archiva/repository/internal</url>
            <layout>default</layout>
          </pluginRepository>
        </pluginRepositories>
    </profile>
</profiles>
</settings>


your help would be appreciated


































  
  <mirrors>
    
     <mirror> 
     <id>archiva.default</id> 
     <url>http://localhost:8080/archiva/repository/internal/</url> 
     <mirrorOf>*</mirrorOf> 
</mirror>
  </mirrors>
  
  
  <profiles>
  <profile>
        <id>day-central</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <repositories>
          <repository>
      <id>internal</id>
      <name>Archiva Managed Internal Repository</name>
      <url>http://localhost:8080/archiva/repository/internal/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>snapshots</id>
      <name>Archiva Managed Snapshot Repository</name>
      <url>http://localhost:8080/archiva/repository/snapshots/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
        </repositories>
        <pluginRepositories>
          <pluginRepository>
            <id>internal</id>
            <name>My Company Archiva Repository</name>
            <url>http://localhost:8080/archiva/repository/internal</url>
            <layout>default</layout>
          </pluginRepository>
        </pluginRepositories>
    </profile>

    

    
  </profiles>

  
</settings>


--
View this message in context: http://maven.40175.n5.nabble.com/does-Maven-3-supports-use-of-archiva-1-3-5-tp4647232p4647232.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: does Maven 3 supports use of archiva 1.3.5

Posted by Tamás Cservenák <ta...@cservenak.net>.
The repository IDs in profile does not match the IDs in servers
section, hence, are not picked up. That's why Archiva rejects your
access, but would stand for any other access to remote server/repo
that is protected.


Thanks,
~t~

On Fri, Jul 29, 2011 at 4:36 PM, koppaka pradeep <bu...@gmail.com> wrote:
> hello,
> my access was denied to archiva and i defined in settings.xml
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Parent Sample Pom 0.0.1-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 0.284s
> [INFO] Finished at: Fri Jul 29 19:51:12 IST 2011
> [INFO] Final Memory: 2M/50M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.3.1 or one of
> its dependencies could not be resolved: Failed to read artifact descriptor
> for org.apache.maven.plugins:maven-install-plugin:jar:2.3.1: Could not
> transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.3.1
> from/to archiva.default
> (http://localhost:8080/archiva/repository/internal/): Access denied to:
> http://localhost:8080/archiva/repository/internal/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
> -> [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/PluginResolutionException
>
>
> I followed the guide in configuring but i am not able to.... please tell me
> the complete template for configuring archiva..in maven3 settings.xml
>
> i am pasting my settings.xml for better idea...please guide me.. i am new to
> maven..i am behind a proxy
> <?xml version="1.0" encoding="UTF-8"?>
> <proxies>
>  <proxy>
>      <id>Myproxy</id>
>      <active>true</active>
>      <protocol>http</protocol>
>      <username>user</username>
>      <password>*****</password>
>      <host>proxy.mycompany.com</host>
>      <port>8080</port>
>      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
>    </proxy>
>  </proxies>
>
>
>  <servers>
>    <server>
>     <id>archiva.internal</id>
>     <username>admin</username>
>     <password>archiva123</password>
> </server>
> <server>
>     <id>archiva.snapshots</id>
>    <username>admin</username>
>     <password>archiva123</password>
> </server>
>  </servers>
>
>
>  <profiles>
>  <profile>
>        <id>day-central</id>
>        <activation>
>            <activeByDefault>true</activeByDefault>
>        </activation>
>        <repositories>
>          <repository>
>      <id>internal</id>
>      <name>Archiva Managed Internal Repository</name>
>      <url>http://localhost:8080/archiva/repository/internal/</url>
>      <releases>
>        <enabled>true</enabled>
>      </releases>
>      <snapshots>
>        <enabled>false</enabled>
>      </snapshots>
>    </repository>
>    <repository>
>      <id>snapshots</id>
>      <name>Archiva Managed Snapshot Repository</name>
>      <url>http://localhost:8080/archiva/repository/snapshots/</url>
>      <releases>
>        <enabled>false</enabled>
>      </releases>
>      <snapshots>
>        <enabled>true</enabled>
>      </snapshots>
>    </repository>
>        </repositories>
>        <pluginRepositories>
>          <pluginRepository>
>            <id>internal</id>
>            <name>My Company Archiva Repository</name>
>            <url>http://localhost:8080/archiva/repository/internal</url>
>            <layout>default</layout>
>          </pluginRepository>
>        </pluginRepositories>
>    </profile>
> </profiles>
> </settings>
>
>
> your help would be appreciated
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  <mirrors>
>
>     <mirror>
>     <id>archiva.default</id>
>     <url>http://localhost:8080/archiva/repository/internal/</url>
>     <mirrorOf>*</mirrorOf>
> </mirror>
>  </mirrors>
>
>
>  <profiles>
>  <profile>
>        <id>day-central</id>
>        <activation>
>            <activeByDefault>true</activeByDefault>
>        </activation>
>        <repositories>
>          <repository>
>      <id>internal</id>
>      <name>Archiva Managed Internal Repository</name>
>      <url>http://localhost:8080/archiva/repository/internal/</url>
>      <releases>
>        <enabled>true</enabled>
>      </releases>
>      <snapshots>
>        <enabled>false</enabled>
>      </snapshots>
>    </repository>
>    <repository>
>      <id>snapshots</id>
>      <name>Archiva Managed Snapshot Repository</name>
>      <url>http://localhost:8080/archiva/repository/snapshots/</url>
>      <releases>
>        <enabled>false</enabled>
>      </releases>
>      <snapshots>
>        <enabled>true</enabled>
>      </snapshots>
>    </repository>
>        </repositories>
>        <pluginRepositories>
>          <pluginRepository>
>            <id>internal</id>
>            <name>My Company Archiva Repository</name>
>            <url>http://localhost:8080/archiva/repository/internal</url>
>            <layout>default</layout>
>          </pluginRepository>
>        </pluginRepositories>
>    </profile>
>
>
>
>
>  </profiles>
>
>
> </settings>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/does-Maven-3-supports-use-of-archiva-1-3-5-tp4647232p4647232.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