Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
2.4.1
-
None
-
None
-
None
-
openSUSE 12.3 (x86-64)
Description
We have a Maven project that contains licence headers as XML comments in the pom.xml files. We use a licence checker plugin which checks for the presence of these licence headers.
It seems the mvn release:prepare command subtly reformats the XML comments. The licence checker runs after this reformatting, and fails since the licence header is no longer an exact match to the reference text. The problem occurs with the following comment lines:
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Maven inserts some extra whitespace:
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses />.
I suspect this is a bug in Maven (or whatever XML parser it relies on). Maven should not reformat XML comments (and especially not in a URL where whitespace is significant).
Attachments
Attachments
Issue Links
- is related to
-
MRELEASE-601 The Maven 2 release plugin modifies CDATA elements in pom.xml files.
- Closed
-
MRELEASE-266 Content outside root elements in pom are not transfered to the release poms
- Closed
-
MRELEASE-607 release:prepare messes up line wrapping in pom.xml
- Closed
-
MRELEASE-676 prepare goal corrupts pom.xml file by removing some line breaks in CDATA
- Closed
- relates to
-
MRELEASE-1111 release:prepare reformat empty tags
- Open