[ http://jira.codehaus.org/browse/MPSCM-1?page=all ]
Lukas Theussl closed MPSCM-1:
-----------------------------
Assign To: Lukas Theussl
Resolution: Cannot Reproduce
Cannot reproduce anymore with m1.1-beta-3, scm plugin 1.6.
> scm:prepare-release makes unwelcome changes to project.xml
> ----------------------------------------------------------
>
> Key: MPSCM-1
> URL: http://jira.codehaus.org/browse/MPSCM-1
> Project: maven-scm-plugin
> Type: Bug
> Environment: Mac OS X 10.2.8; cvs 1.11.8; java -version: java version
> "1.4.1_01" Java(TM) 2 Runtime Environment, Standard Edition (build
> 1.4.1_01-69.1) Java HotSpot(TM) Client VM (build 1.4.1_01-24, mixed mode)
> Reporter: Joe Germuska
> Assignee: Lukas Theussl
>
>
> When executing scm:prepare-release, the transform to project.xml results in
> some unwelcome changes.
> Specifically, the root 'project' element is changed to:
> <project xsi:schemaLocation="file:///opt/maven/maven-project.xsd">
> followed by the bare text line:
> file:///opt/maven/maven-project.xsd
> After this change, any call to a maven goal results in the following stack
> trace:
> org.xml.sax.SAXParseException: The prefix "xsi" for attribute
> "xsi:schemaLocation" is not bound.
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.commons.digester.Digester.parse(Digester.java:1527)
> at org.apache.maven.MavenUtils.getProject(MavenUtils.java:201)
> This can be corrected by adding an "xmlns:xsi" declaration to the root
> element, but I don't want to do that, because my teammates may not have their
> maven-project.xsd in the same location.
> We could probably use a URL for the schemaLocation and then have a version
> which is shareable, but then I don't know what would happen if I needed to do
> an offline build.
> I don't think any of this is relevant, but Brett asked me to include the
> contents of my extensions directory, so just in case;
> % ls -1 $JAVA_HOME/lib/ext/
> apple_provider
> apple_provider.jar
> ldapsec.jar
> localedata.jar
> sunjce_provider.jar
> I just reproduced this for a second time on a different project. I haven't
> tried it on a project file which has the schemalocation already defined.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira