about an access denied problem. Newbee, pls help

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

about an access denied problem. Newbee, pls help

AlonsoIR
This post has NOT been accepted by the mailing list yet.
hi everyone, i m trying to configure a Sonatype Nexus™ Open Source Edition, Version: 2.0.4-1 to build my project. before i changed my .m2/settings.xml everything was fine, the project compiles and life is good.
this is the added lines to settings.xml:

<mirrors>
    <mirror>
     
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>http://localhost:8081/nexus/content/groups/public</url>
    </mirror>
</mirrors>

after that, its giving me this errors:

[WARNING] Could not transfer metadata org.apache.cxf:cxf-rt-core/maven-metadata.xml from/to nexus (http://localhost:8081/nexus/content/groups/public): Access denied to: http://localhost:8081/nexus/content/groups/public/org/apache/cxf/cxf-rt-core/maven-metadata.xml
Downloading: http://localhost:8081/nexus/content/groups/public/org/apache/cxf/cxf-rt-frontend-jaxws/maven-metadata.xml

[WARNING] Could not transfer metadata org.apache.cxf:cxf-rt-frontend-jaxws/maven-metadata.xml from/to nexus (http://localhost:8081/nexus/content/groups/public): Access denied to: http://localhost:8081/nexus/content/groups/public/org/apache/cxf/cxf-rt-frontend-jaxws/maven-metadata.xml
Downloading: http://localhost:8081/nexus/content/groups/public/org/apache/cxf/cxf-rt-transports-http/maven-metadata.xml

[WARNING] Could not transfer metadata org.apache.cxf:cxf-rt-transports-http/maven-metadata.xml from/to nexus (http://localhost:8081/nexus/content/groups/public): Access denied to: http://localhost:8081/nexus/content/groups/public/org/apache/cxf/cxf-rt-transports-http/maven-metadata.xml
Downloading: http://localhost:8081/nexus/content/groups/public/org/apache/cxf/cxf-rt-frontend-jaxrs/maven-metadata.xml

[WARNING] Could not transfer metadata org.apache.cxf:cxf-rt-frontend-jaxrs/maven-metadata.xml from/to nexus (http://localhost:8081/nexus/content/groups/public): Access denied to: http://localhost:8081/nexus/content/groups/public/org/apache/cxf/cxf-rt-frontend-jaxrs/maven-metadata.xml
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 23.125s
Finished at: Mon Jun 04 12:17:21 CEST 2012
Final Memory: 43M/90M
------------------------------------------------------------------------
[ERROR]Failed to execute goal on project CoreTienda: Could not resolve dependencies for project com.aironman:CoreTienda:war:1.0: Failed to collect dependencies for [org.codehaus.jackson:jackson-jaxrs:jar:1.9.0 (compile), javax.ws.rs:jsr311-api:jar:1.1.1 (compile), org.hibernate:hibernate:jar:3.2.1.ga (compile), org.hibernate:hibernate-annotations:jar:3.2.0.ga (compile), mysql:mysql-connector-java:jar:5.1.9 (compile), cglib:cglib-nodep:jar:2.1_3 (compile), javax.persistence:persistence-api:jar:1.0 (compile), commons-dbcp:commons-dbcp:jar:1.2.2 (compile), org.springframework:spring-web:jar:3.0.6.RELEASE (compile), org.springframework:spring-orm:jar:3.0.6.RELEASE (compile), org.springframework:spring-jdbc:jar:3.0.6.RELEASE (compile), org.springframework:spring-aop:jar:3.0.6.RELEASE (compile), org.springframework:spring-webmvc:jar:3.0.6.RELEASE (compile), hsqldb:hsqldb:jar:1.8.0.7 (compile), org.slf4j:slf4j-simple:jar:1.5.2 (compile), javax.servlet:servlet-api:jar:2.5 (provided), junit:junit:jar:4.4 (test), org.unitils:unitils:jar:1.0 (test), org.apache.cxf:cxf-rt-core:jar:[2,) (compile), org.apache.cxf:cxf-rt-frontend-jaxws:jar:[2,) (compile), org.apache.cxf:cxf-rt-transports-http:jar:[2,) (compile), org.apache.cxf:cxf-rt-frontend-jaxrs:jar:[2,) (compile), taglibs:standard:jar:1.1.2 (compile), org.apache.activemq:activemq-core:jar:5.6.0 (compile), javax.mail:mail:jar:1.4.4 (compile), javax.jms:jms:jar:1.1 (compile)]: Failed to read artifact descriptor for org.springframework:spring-orm:jar:3.0.6.RELEASE: Could not transfer artifact org.springframework:spring-orm:pom:3.0.6.RELEASE from/to nexus (http://localhost:8081/nexus/content/groups/public): Access denied to: http://localhost:8081/nexus/content/groups/public/org/springframework/spring-orm/3.0.6.RELEASE/spring-orm-3.0.6.RELEASE.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/DependencyResolutionException

If i go to http://localhost:8081/nexus/content/groups/public/org/apache/cxf/cxf-rt-transports-http/maven-metadata.xml, for example,  i see the xml file, and anonymous user is granted.

Could someone help me?

I have tried to search this related problem but i have not found nothing

thx and regards