> -----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: [email protected] For additional commands, e-mail: [email protected]
