Adding a dependency is removing from POM.xml some XML attributes and XML
comments, and is reformating the file
---------------------------------------------------------------------------------------------------------------
Key: MECLIPSE-372
URL: http://jira.codehaus.org/browse/MECLIPSE-372
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Environment: OS: Windows XP
Eclipse Plugin: version 0.0.12.20071107-2300
Eclipse: SDK 3.3.1.1
Maven: 2.0.8
Java: 1.6.0_02
Reporter: Jean-Paul GUIGUI
XML comments and XML attributes in the POM.xml are lost after adding a new
dependency with the Maven plugin menu "Add dependency"
For instance if the POM.xml is containing the following attributes:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
it is replaces after by using the plugin by:
<project>
Sam for XML comments.
Less critical, the formatting of the whole POM.xml file is rewritten
--
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