You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2005/01/12 18:38:28 UTC

[jira] Created: (MPSCM-43) scm:prepare-release doesn't work correctly with xml entities in POM

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPSCM-43

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPSCM-43
    Summary: scm:prepare-release doesn't work correctly with xml entities in POM
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-scm-plugin
   Versions:
             1.4.2

   Assignee: Brett Porter
   Reporter: Martijn Dashorst

    Created: Wed, 12 Jan 2005 12:37 PM
    Updated: Wed, 12 Jan 2005 12:37 PM

Description:
We use some XML entities in our project.xml in order to make the maintenance of the several multiprojects easier.

in our main project directory we have defined an entity file, project-entities.xml containing several xml entities:
<!ENTITY reports "
    <reports>
        <report>maven-junit-report-plugin</report>
		<report>maven-javadoc-plugin</report>
		<report>maven-jxr-plugin</report>
        <report>maven-checkstyle-plugin</report>
    </reports>
">

Each sub project extending the main project's POM defines a DOCTYPE entry pointing to the project-entities.xml file. The reason for defining the reports in a entity instead of in the main projects POM is that the reports for the main project are multiproject reports, and the subproject reports are all equal.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
    <!ENTITY % project-entities SYSTEM "file:../mainproject/project-entities.xml"> %project-entities;
]>
<project>
    <extend>${basedir}/../mainproject/project.xml</extend>
    <id>subproject</id>
    &reports;
</project>

When I use scm:prepare-release, the &reports; entity is in the new project.xml expanded to the contents in the project-entities.xml file *and* the entity it self still remains in the subproject's project.xml. Also, the reference to the project-entities in the DOCTYPE definition is gone:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project>
<project>
    <extend>${basedir}/../mainproject/project.xml</extend>
    <id>subproject</id>
    <reports>
        <report>maven-junit-report-plugin</report>
		<report>maven-javadoc-plugin</report>
		<report>maven-jxr-plugin</report>
        <report>maven-checkstyle-plugin</report>
    </reports>&reports;
</project>




---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org