maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From irfan <irfango...@gmail.com>
Subject Re: authentication problem to nexus repository with non-anonymous user
Date Thu, 24 Dec 2009 13:17:26 GMT
unfortunately, there is no difference.


İrfan GÖREN


2009/12/19 Brian Fox <brianf@infinity.nu>

> Could you try using the admin user instead of the deployment user? If
> that works then we know maven is getting the credentials through to
> Nexus. If not, then there's still some problem on the maven side.
>
> 2009/12/8 irfan <irfangoren@gmail.com>:
> > Hi;
> > I build my project with maven 2.1.0, which has some dependencies on
> > nexus(1.4.0) repository.
> > When I enable anonymous user in nexus, maven can download necessary
> > artifacts as expected but
> > if i disable anonymous user maven cannot download the artifacts. I mailed
> to
> > nexus forums but they
> > decided that somehow maven cannot send user credentials to nexus to
> > authenticate.
> > My mails can be followed from
> >
> http://old.nabble.com/settings.xml-for-non-anonymous-user-td22150250.html
> >
> > here is my settings.xml and maven debug  logs:
> >
> > thanks.
> >
> > *settings.xml
> > *
> > <settings>
> >
> >  <localRepository>c:/dev/tools_data/maven_local_repo</localRepository>
> >
> >  <proxies>
> >
> >  </proxies>
> >
> > <pluginGroups>
> >  <pluginGroup>org.sonatype.plugins</pluginGroup>
> > </pluginGroups>
> >
> >  <servers>
> >    <server>
> >    <id>repo</id>
> >    <username>deployment</username>
> >    <password>deployment123</password>
> >    </server>
> >  </servers>
> >
> >  <mirrors>
> >
> >    <mirror>
> >      <id>repo</id>
> >      <mirrorOf>*</mirrorOf>
> >      <name>Human Readable Name for this Mirror.</name>
> >      <url>http://myserver:8082/nexus/content/groups/repo</url>
> >    </mirror>
> >  </mirrors>
> >
> >  <profiles>
> >
> >    <profile>
> >      <id>developer</id>
> >      <activation>
> >        <activeByDefault>true</activeByDefault>
> >      </activation>
> >
> >      <repositories>
> >
> >        <repository>
> >          <id>repo</id>
> >          <name>Mirror of Maven repositories on the internet</name>
> >          <url>http://myserver:8082/nexus/content/groups/repo</url>
> >          <snapshots>
> >            <enabled>true</enabled>
> >          </snapshots>
> >          <releases>
> >            <enabled>true</enabled>
> >          </releases>
> >        </repository>
> >
> >      </repositories>
> >
> >      <pluginRepositories>
> >        <pluginRepository>
> >          <id>repo</id>
> >          <name>Maven Plugin Repository</name>
> >          <url>http://myserver:8082/nexus/content/groups/repo</url>
> >          <layout>default</layout>
> >          <snapshots>
> >            <enabled>true</enabled>
> >          </snapshots>
> >          <releases>
> >            <enabled>true</enabled>
> >          </releases>
> >        </pluginRepository>
> >      </pluginRepositories>
> >    </profile>
> >  </profiles>
> >
> >  <activeProfiles>
> >    <activeProfile>developer</activeProfile>
> >  </activeProfiles>
> > </settings>
> >
> > *maven debug  logs:*
> >
> > [DEBUG] Connecting to repository: 'repo' with url: '
> > http://myserver:8082/nexus/content/groups/repo'.
> > [DEBUG] Downloading:
> >
> http://myserver:8082/nexus/content/groups/repo/myproject/faces/faces-core/0.2.37/faces-core-0.2.37.jar
> > Connecting to repository: 'repo' with url: '
> > http://myserver:8082/nexus/content/groups/repo'.
> > Downloading:
> >
> http://myserver:8082/nexus/content/groups/repo/myproject/runtime/myproject-base/0.5.8/myproject-base-0.5.8.jar
> > [DEBUG] Error transferring file: Connection refused: connect
> > org.apache.maven.wagon.TransferFailedException: Error transferring file:
> > Connection refused: connect
> >        at
> >
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
> >        at
> > org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
> >        at
> > org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
> >        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
> >        at
> >
> org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:491)
> >        at
> >
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:372)
> >        at
> >
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:327)
> >        at
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
> >        at
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
> >        at
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.resolveArtifact(DefaultArtifactResolver.java:455)
> > at
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.run(DefaultArtifactResolver.java:433)
> >        at
> >
> hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
> >        at
> >
> hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
> >        at java.lang.Thread.run(Thread.java:619)
> > Caused by: java.net.ConnectException: Connection refused: connect
> >        at java.net.PlainSocketImpl.socketConnect(Native Method)
> >        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >        at
> > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> >        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> >        at java.net.Socket.connect(Socket.java:519)
> >        at java.net.Socket.connect(Socket.java:469)
> >        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> >        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> >        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> >        at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> >        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> >        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> >        at
> >
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:837)
> >        at
> >
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:778)
> >        at
> >
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:703)
> >        at
> >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1026)
> >        at
> > java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
> >        at
> >
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
> >        ... 13 more
> > [DEBUG] Error transferring file: Connection refused: connect
> > org.apache.maven.wagon.TransferFailedException: Error transferring file:
> > Connection refused: connect
> >        at
> >
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143)
> >        at
> > org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
> >        at
> > org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
> >        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
> >        at
> >
> org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:491)
> >        at
> >
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:372)
> >        at
> >
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:327)
> >        at
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
> >        at
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
> >        at
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.resolveArtifact(DefaultArtifactResolver.java:455)
> > at
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.run(DefaultArtifactResolver.java:433)
> >        at
> >
> hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
> >        at
> >
> hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
> >        at java.lang.Thread.run(Thread.java:619)
> > Caused by: java.net.ConnectException: Connection refused: connect
> >        at java.net.PlainSocketImpl.socketConnect(Native Method)
> >        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >        at
> > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> >        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> >        at java.net.Socket.connect(Socket.java:519)
> >        at java.net.Socket.connect(Socket.java:469)
> >        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> >        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> >        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> >        at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> >        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> >        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> >        at
> >
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:837)
> >        at
> >
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:778)
> >        at
> >
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:703)
> >        at
> >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1026)
> >        at
> > java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
> >        at
> >
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
> >        ... 13 more
> >
> >
> >
> >
> >
> >
> > İrfan GÖREN
> > Bilgisayar Mühendisi
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message