Archiva is giving these error when I run the deploy goal from Maven:

>
>>
>> 2011-03-09 16:49:49,737 [http-8080-2] INFO
>> org.apache.maven.archiva.security.ArchivaServletAuthenticator  -
>> Authorization Denied
>> [ip=192.168.1.51,permission=archiva-upload-repository,repo=snapshots] : no
>> matching permissions
>> 2011-03-09 16:49:50,397 [http-8080-1] INFO
>> org.apache.maven.archiva.security.ArchivaServletAuthenticator  -
>> Authorization Denied
>> [ip=192.168.1.51,permission=archiva-upload-repository,repo=snapshots] : no
>> matching permissions
>> 2011-03-09 16:49:50,743 [http-8080-1] INFO
>> org.apache.maven.archiva.security.ArchivaServletAuthenticator  -
>> Authorization Denied
>> [ip=192.168.1.51,permission=archiva-upload-repository,repo=snapshots] : no
>> matching permissions
>>
>>
>> 1) the username and password are set correctly in the servers section of
>> the settings.xml file
>>
>> 2) If I change the password in the settings.xml file to an incorrect one,
>> maven fails with an error
>>
>> 3) the user in question has the following rights in Archiva:
>> Effective Roles
>>
>>     * Global Repository Manager
>>     * User Administrator
>>     * System Administrator
>>     * Repository Observer - snapshots
>>     * Repository Observer - internal
>>     * Global Repository Observer
>>     * Registered User
>>     * Repository Manager - snapshots
>>     * Repository Manager - internal
>>
>> 4) The files that get created when running a maven deploy are:
>>      maven-metadata.xml
>>      maven-metadata.xml.md5
>>      maven-metadata.xml.sha1
>>      and the POM actually gets created, but it is a ZERO length file
>>
>> 5) When logged into the web-interface as this user, I can successfully
>> upload the POM file
>>
>>
>
> Does anyone have any ideas?
>>
>
>
I double checked the System ID - comparing what is defined within
settings.xml and my POM, they are both the same.

I have set various combinations of Permissions in the user manager, none of
which had any effect:

a) System Admin
b) Global Repo Manager + Global Repo Observer
c) internal and snapshot repository: Repo Manager + Repo Observer

I also set the filesystem permissions for the filesystem-tree (recursively)
for the repository to: ugo+rwx

Like I stated above, it creates all of the related files for an artifact
except for the POM file.  That gets created as a zero-length file.

Maven completes without error oddly enough.  So from maven, everything looks
as though it is OK:

[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building common-defs 0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ common-defs ---
[INFO]
[INFO] --- maven-install-plugin:2.3:install (default-install) @ common-defs
---
[INFO] Installing W:\EclipseProjects\CQ_Projects\common-defs\pom.xml to
C:\Documents and
Settings\kellehmj\.m2\repository\com\nielsen\cq\common-defs\0.0.1-SNAPSHOT\common-defs-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.4:deploy (default-deploy) @ common-defs ---
[INFO] Retrieving previous build number from maven-snapshotRepository
2011-03-09 23:49:27.763:INFO::Logging to StdErrLog::DEBUG=false via
org.eclipse.jetty.util.log.StdErrLog
Uploading:
http://myhost.com:8080/archiva/repository/snapshots/com/nielsen/cq/common-defs/0.0.1-SNAPSHOT/common-defs-0.0.1-20110310.044927-21.pom
14 KB uploaded at 106.6 KB/sec
[INFO] Retrieving previous metadata from maven-snapshotRepository
[INFO] Uploading repository metadata for: 'artifact
com.nielsen.cq:common-defs'
[INFO] Retrieving previous metadata from maven-snapshotRepository
[INFO] Uploading repository metadata for: 'snapshot
com.nielsen.cq:common-defs:0.0.1-SNAPSHOT'
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.625s
[INFO] Finished at: Wed Mar 09 23:49:29 EST 2011
[INFO] Final Memory: 3M/15M
[INFO]
------------------------------------------------------------------------

Reply via email to