Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 3.0.3, 3.0.4
-
Fix Version/s: None
-
Component/s: Settings
-
Labels:None
-
Environment:Hidewindows xp 64 bit cygwin sun/oracle jdk 1.6 64 bit
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
CYGWIN_NT-5.2-WOW64 black 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin
Microsoft Windows [Version 5.2.3790]
Showwindows xp 64 bit cygwin sun/oracle jdk 1.6 64 bit java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) CYGWIN_NT-5.2-WOW64 black 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin Microsoft Windows [Version 5.2.3790]
-
Complexity:Intermediate
-
Number of attachments :
Description
$ 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
Issue Links
- is related to
-
MNG-5380
Cannot preserve whitespace in Maven plugin configuration
-
Seems that the XML processor is not handling the xml in a preserving way. It is loosing tags with default values and leading / trailing whitespace of tag values