jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x SCM Plugin
  • MPSCM-1

scm:prepare-release makes unwelcome changes to project.xml

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • 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)

Description

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.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 07/Oct/03 6:30 PM

Thanks for the detailed report Joe.
Since there is a workaround, leaving to fix in 1.1
Anyone got Mac OS X and willing/able to debug this?

Show
Brett Porter added a comment - 07/Oct/03 6:30 PM Thanks for the detailed report Joe. Since there is a workaround, leaving to fix in 1.1 Anyone got Mac OS X and willing/able to debug this?
Hide
Permalink
Lukas Theussl added a comment - 19/Jun/06 1:46 PM

Cannot reproduce anymore with m1.1-beta-3, scm plugin 1.6.

Show
Lukas Theussl added a comment - 19/Jun/06 1:46 PM Cannot reproduce anymore with m1.1-beta-3, scm plugin 1.6.

People

  • Assignee:
    Lukas Theussl
    Reporter:
    Joe Germuska
Vote (0)
Watch (0)

Dates

  • Created:
    07/Oct/03 6:23 PM
    Updated:
    19/Jun/06 1:46 PM
    Resolved:
    19/Jun/06 1:46 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.