Hi,

If it is effectively using the same configuration, the problem could be on
the nexus level (users / permission).
Try uploading it directly from the nexus GUI.

That said I don't recall anything that would prevent iploading zip and not
jars so your problem can still be on maven level.

Can you try without profiles for example ? (avoid profile if it possible).

Also Nexus logs can have useful informations if you have access to them.


On Mon, Feb 8, 2016 at 6:43 AM, Mehul Sanghvi <[email protected]>
wrote:

> I have a project with multiple modules and sub-modules.   Two of the
> modules, use
> the same maven-deploy-plugin:deploy-file logic, just the artefacts they are
> working
> with are different.  One module uploads designated JARs to Nexus.  The
> other is
> meant for uploading ZIP files.  Both are activated only if their respective
> profiles
> are activated, -Pupload-jars and -Pupload-zips respectively.  Both modules
> share the same settings.xml information regarding repositories and servers.
>
>
> Upload-jars is able to successfully upload the JARs using deploy-file.
> Upload-zips always fails with:
>
>     Return code is: 401, ReasonPhrase:Unauthorized
>
> How do I figure out the credentials that are being used ?  When I use
>
>     mvn -X
>
> I do not see anything that would indicate what user/passwd combination is
> being used.   Any thoughts or suggestions ?
>
>
> cheers,
>
>       mehul
>
> --
> Mehul N. Sanghvi
> email: [email protected]
>



-- 
Adrien Rivard

Reply via email to