« Return to Thread: [m2][archiva1] Issue deploying to Archiva

Re: [m2][archiva1] Issue deploying to Archiva

by Wendy Smoak-3 :: Rate this Message:

Reply to Author | View in Thread

On Jan 14, 2008 11:27 AM, Mick Knutson <mickknutson@...> wrote:

> I can deploy my site docs to my remote server just fine, but when I try to
> deploy a module to my archiva REP, I get a 401 error.

Please choose *one* list and ask your question there.  Someone will
tell you if you're in the wrong place.  Many of the people who can
help are already reading both lists, and cross-posting just causes
duplicate traffic, as well as splitting a conversation so it's hard to
follow in the archives.

In this case it doesn't look like a problem with Archiva, just a
problem with configuration, so I'm replying on users@maven. You have:

> *pom.xml:*
>
>         <!-- use the following if you're not using a snapshot version. -->
>         <repository>
>             <id>dap.internal</id>
...
>         <snapshotRepository>
>             <id>dap.snapshots</id>
>     </distributionManagement>

and

> *settings.xml:*
...
>             <id>rc_sun66e-site</id>
>             <id>rc_sun66e-repository</id>
>             <id>dap2.internal</id>
>             <id>deployment.webdav</id>
>             <id>deployment.webdav</id>

In order for Maven to figure out what credentials to send to the
server, the ids need to match in the pom.xml distributionManagement
section, and settings.xml servers section.

You're probably getting the 401 because Maven isn't supplying any credentials.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: [m2][archiva1] Issue deploying to Archiva