mvn release:perform does not honor //servers/server in alternate settings location

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

mvn release:perform does not honor //servers/server in alternate settings location

David Siefert-3
Hi All-

I am trying to perform a maven release by invoking the following:

mvn -B -s /my/alternate/maven2/home/settings.xml release:prepare
release:perform

The problem that occurs is during the deploy of the release artifact, it
seems it is not picking up the username/password in
/my/alternate/maven2/home/settings.xml--I get a 401 authentication error.
However, when I place settings.xml in the default location
($HOME/.m2/settings.xml), then the deploy works perfectly.  Does anyone know
how to get around this issue? or is there a newer release of the appropriate
plugin that does not have this problem?

Thanks,
David
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: mvn release:perform does not honor //servers/server in alternate settings location

David Siefert-3
On Wed, Apr 21, 2010 at 1:42 PM, David Siefert <[hidden email]>wrote:

> Hi All-
>
> I am trying to perform a maven release by invoking the following:
>
> mvn -B -s /my/alternate/maven2/home/settings.xml release:prepare
> release:perform
>
> The problem that occurs is during the deploy of the release artifact, it
> seems it is not picking up the username/password in
> /my/alternate/maven2/home/settings.xml--I get a 401 authentication error.
> However, when I place settings.xml in the default location
> ($HOME/.m2/settings.xml), then the deploy works perfectly.  Does anyone know
> how to get around this issue? or is there a newer release of the appropriate
> plugin that does not have this problem?
>
> Thanks,
> David
>

Ah, found my answer...
mvn -B -s /my/alternate/maven2/home/settings.xml release:prepare
release:perform -Darguments="/my/alternate/maven2/home/settings.xml"

Not very elegant, but works like a charm!

Thanks,
David
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: mvn release:perform does not honor //servers/server in alternate settings location

Markku Saarela
Hi,

Have you tried -gs  /my/alternate/maven2/home/settings.xml (-gs
--global-settings) ?

mvn -B -gs /my/alternate/maven2/home/settings.xml release:prepare
release:perform

rgds,

Markku

On 21.4.2010 22:36, David Siefert wrote:

> On Wed, Apr 21, 2010 at 1:42 PM, David Siefert<[hidden email]>wrote:
>
>    
>> Hi All-
>>
>> I am trying to perform a maven release by invoking the following:
>>
>> mvn -B -s /my/alternate/maven2/home/settings.xml release:prepare
>> release:perform
>>
>> The problem that occurs is during the deploy of the release artifact, it
>> seems it is not picking up the username/password in
>> /my/alternate/maven2/home/settings.xml--I get a 401 authentication error.
>> However, when I place settings.xml in the default location
>> ($HOME/.m2/settings.xml), then the deploy works perfectly.  Does anyone know
>> how to get around this issue? or is there a newer release of the appropriate
>> plugin that does not have this problem?
>>
>> Thanks,
>> David
>>
>>      
> Ah, found my answer...
> mvn -B -s /my/alternate/maven2/home/settings.xml release:prepare
> release:perform -Darguments="/my/alternate/maven2/home/settings.xml"
>
> Not very elegant, but works like a charm!
>
> Thanks,
> David
>
>    

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...