archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ToniGan...@bitsdontbyte.de
Subject m2eclipse, deploymentissues: no matching permissions
Date Thu, 08 Jul 2010 09:12:42 GMT
Hi,

i have an problem with archiva, using maven (and m2eclipse) for 
buildingstuff.

Everything works finde, but if I try to deploy out of eclipse archiva 
tells me that I dont have permissions. 

The archiva.log says:
2010-07-08 10:40:50,133 [btpool0-8] INFO 
org.apache.maven.archiva.security.ArchivaServletAuthenticator  - 
Authorization Denied 
[ip=192.168.1.175,permission=archiva-upload-repository,repo=internal] : no 
matching permissions

The eclipse console says:
[INFO] --- maven-deploy-plugin:2.4:deploy (default-deploy) @ 
edesignforms-core ---
2010-07-08 10:46:15.434:INFO::Logging to StdErrLog::DEBUG=false via 
org.eclipse.jetty.util.log.StdErrLog
Uploading: 
http://192.168.1.84:8080/archiva/repository/internal/edesignforms-core/edesignforms-core/1.0/edesignforms-core-1.0.jar
2010-07-08 10:46:46.292:WARN::EXCEPTION 
WagonExchange@22245100=PUT//192.168.1.84:8080/archiva/repository/internal/edesignforms-core/edesignforms-core/1.0/edesignforms-core-1.0.jar#9
org.eclipse.jetty.io.EofException
        at org.eclipse.jetty.http.HttpGenerator.flushBuffer(
HttpGenerator.java:857)
        at org.eclipse.jetty.client.HttpConnection.handle(
HttpConnection.java:192)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(
SelectChannelEndPoint.java:437)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(
QueuedThreadPool.java:435)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Eine bestehende Verbindung wurde 
softwaregesteuert
durch den Hostcomputer abgebrochen
        at sun.nio.ch.SocketDispatcher.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
        at sun.nio.ch.IOUtil.write(IOUtil.java:60)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
        at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(
ChannelEndPoint.java:166)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(
SelectChannelEndPoint.java:223)
        at org.eclipse.jetty.http.HttpGenerator.flushBuffer(
HttpGenerator.java:801)
        ... 4 more
2010-07-08 10:46:46.323:INFO::seeing JVM BUG(s) - cancelling 
interestOps==0
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 35.608s
[INFO] Finished at: Thu Jul 08 10:46:46 CEST 2010
[INFO] Final Memory: 4M/8M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) 
on project edesignforms-core: Error deploying artifact: Transfer error: 
null: EofException: Eine bestehende Verbindung wurde softwaregesteuert
durch den Hostcomputer abgebrochen

I have created an deployment user on Archiva,
which has the roles: Global Repository Manager, Repository Observer - 
snapshots, Repository Observer - internal, Global Repository Observer, 
Registered User, Repository Manager - snapshots, Repository Manager - 
internal.
"snapshot" and "internal" are the maven repository-IDs.

I´ve entered the userdate into: <user_home>\.m2\settings.xml
I´ve addes following tags into the pom.xml of the project:

<distributionManagement>
                <repository>
                        <id>internal</id>
                        <name>interner Maven Repository</name>
                        <url>
http://192.168.1.84:8080/archiva/repository/internal/</url>
                </repository>
                <snapshotRepository>
                        <id>snapshots</id>
                        <name>Maven Snapshotrepository</name>
                        <url>
http://192.168.1.84:8080/archiva/repository/snapshots/</url>
                </snapshotRepository>
        </distributionManagement>
...
<repositories>
        <repository>
                <id>internal</id>
                <url>http://192.168.1.84:8080/archiva/repository/internal/
</url>
        </repository>
        <repository>
                <id>snapshots</id>
                <url>
http://192.168.1.84:8080/archiva/repository/snapshots/</url>
        </repository>
</repositories>



Maybe an important point:
On the startup of archiva the consoleoutput is:

"Running Apache Archiva...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights 
Reserved.
jvm 1    |
jvm 1    | 2010-07-08 10:38:10.008::INFO:  Logging to STDERR via 
org.mortbay.log.StdErrLog
jvm 1    | 2010-07-08 10:38:10.256::WARN:  Deprecated configuration used 
for ./apps
jvm 1    | 2010-07-08 10:38:10.300::INFO:  jetty-6.1.19
jvm 1    | 2010-07-08 10:38:10.659::WARN:  Deprecated boolean 
load-on-startup.  Please use integer
jvm 1    | 2010-07-08 10:38:10.668::INFO:  No Transaction manager found - 
if your webapp requires one, please configure one.
jvm 1    | 2010-07-08 10:38:43.727:/archiva:INFO:  Initializing Spring 
root WebApplicationContext
jvm 1    | 2010-07-08 10:38:51.373::INFO:  Opened 
/opt/apache-archiva-1.3.1/logs/2010_07_08.request.log
jvm 1    | 2010-07-08 10:38:51.395::INFO:  Started 
SelectChannelConnector@0.0.0.0:8080"


Uploading an artifact via webend works fine, also with the same user as 
used in eclipse.


Thanks and regards
Toni


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