You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jason Pyeron <jp...@pdinc.us> on 2011/08/26 17:11:12 UTC
RE: [maven] settings.xml boolean values not be honored.
> -----Original Message-----
> From: Jason Pyeron
> Sent: Thursday, August 25, 2011 18:59
> To: 'Maven Users List'
> Subject: [maven] RE: [maven] Re: settings.xml boolean values
> not be honored.
>
<snip/>
>
> $ svn co http://svn.apache.org/repos/asf/maven/maven-3/trunk
>
> $ LOCAL_REPO=`mktemp -d`
>
> $ # this should fail as the local repo is empty
>
> $ mvn -o -Dmaven.repo.local=$LOCAL_REPO validate
>
> $ GLOBAL_SETTINGS=` \
> mvn -o -X -Dmaven.repo.local=$LOCAL_REPO validate |\
> sed -n 's/\[DEBUG\] Reading global settings from \(.*\)/\1/p'` &&\
> LOCAL_SETTINGS=` \
> mvn -o -X -Dmaven.repo.local=$LOCAL_REPO validate |\
> sed -n 's/\[DEBUG\] Reading user settings from \(.*\)/\1/p'` &&\
> rm -f "$LOCAL_SETTINGS"
>
> $ $EDITOR "$GLOBAL_SETTINGS" # set offline to true
>
> $ # this will work but should fail since the repo is empty
> and the settings.xml says offline
>
> $ rm -rf $LOCAL_REPO && mkdir -p $LOCAL_REPO && mvn
> -Dmaven.repo.local=$LOCAL_REPO validate
>
> $ mkdir -p "`dirname "$LOCAL_SETTINGS"`" && echo cp "$GLOBAL_SETTINGS"
> "$LOCAL_SETTINGS"
>
> $ # now that the user's settings.xml is the same as the
> system, it should fail again as it is offline
>
> $ rm -rf $LOCAL_REPO && mkdir -p $LOCAL_REPO && mvn
> -Dmaven.repo.local=$LOCAL_REPO validate
>
<snip/>
> > >
> > > Can I get confirmation on my observations before filing a bug?
http://jira.codehaus.org/browse/MNG-5166
I will try to work up some unit tests for this, but I will have to learn the
maven source/build for that.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [maven] settings.xml boolean values not be honored.
Posted by Benson Margulies <bi...@gmail.com>.
On Fri, Aug 26, 2011 at 11:11 AM, Jason Pyeron <jp...@pdinc.us> wrote:
>> -----Original Message-----
>> From: Jason Pyeron
>> Sent: Thursday, August 25, 2011 18:59
>> To: 'Maven Users List'
>> Subject: [maven] RE: [maven] Re: settings.xml boolean values
>> not be honored.
I don't feel qualified to weigh in. I asked a clarifying question and
hoped that someone else would step in.
>>
> <snip/>
>>
>> $ svn co http://svn.apache.org/repos/asf/maven/maven-3/trunk
>>
>> $ LOCAL_REPO=`mktemp -d`
>>
>> $ # this should fail as the local repo is empty
>>
>> $ mvn -o -Dmaven.repo.local=$LOCAL_REPO validate
>>
>> $ GLOBAL_SETTINGS=` \
>> mvn -o -X -Dmaven.repo.local=$LOCAL_REPO validate |\
>> sed -n 's/\[DEBUG\] Reading global settings from \(.*\)/\1/p'` &&\
>> LOCAL_SETTINGS=` \
>> mvn -o -X -Dmaven.repo.local=$LOCAL_REPO validate |\
>> sed -n 's/\[DEBUG\] Reading user settings from \(.*\)/\1/p'` &&\
>> rm -f "$LOCAL_SETTINGS"
>>
>> $ $EDITOR "$GLOBAL_SETTINGS" # set offline to true
>>
>> $ # this will work but should fail since the repo is empty
>> and the settings.xml says offline
>>
>> $ rm -rf $LOCAL_REPO && mkdir -p $LOCAL_REPO && mvn
>> -Dmaven.repo.local=$LOCAL_REPO validate
>>
>> $ mkdir -p "`dirname "$LOCAL_SETTINGS"`" && echo cp "$GLOBAL_SETTINGS"
>> "$LOCAL_SETTINGS"
>>
>> $ # now that the user's settings.xml is the same as the
>> system, it should fail again as it is offline
>>
>> $ rm -rf $LOCAL_REPO && mkdir -p $LOCAL_REPO && mvn
>> -Dmaven.repo.local=$LOCAL_REPO validate
>>
> <snip/>
>> > >
>> > > Can I get confirmation on my observations before filing a bug?
>
> http://jira.codehaus.org/browse/MNG-5166
>
> I will try to work up some unit tests for this, but I will have to learn the
> maven source/build for that.
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> - -
> - Jason Pyeron PD Inc. http://www.pdinc.us -
> - Principal Consultant 10 West 24th Street #100 -
> - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
> - -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org