You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Thorsten Heit <th...@gmx.de> on 2007/03/15 17:28:29 UTC
[m2.0.5] maven-release-plugin changes HTML entities
Hi,
I'm actually evaluating Artifactory as repository proxy/cache and today played a bit with the maven-release-plugin (2.0-beta-5-SNAPSHOT; more precisely maven-release-plugin-2.0-beta-5-20070301.114416-5.jar according to my local repository).
My pom.xml started with the following:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xml [<!ENTITY quot """>
<!ENTITY euro "€">
<!ENTITY reg "®">
<!ENTITY nbsp " ">
<!ENTITY Auml "Ä">
<!ENTITY Uuml "Ü">
<!ENTITY Ouml "Ö">
<!ENTITY auml "ä">
<!ENTITY uuml "ü">
<!ENTITY ouml "ö">
<!ENTITY raquo "»">
<!ENTITY szlig "ß">]>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.ukv</groupId>
<artifactId>maven</artifactId>
<version>1.0-SNAPSHOT</version>
<name>
Voreinstellungen für Maven-basierte Projekte
</name>
etc.
"mvn release:prepare" went fine, but "mvn release:perform" gave me a return code 500 when Maven finally tried to deploy the pom.xml to Artifactory. I could track that down to a bug in Artifactory (1.2.0.1) which obviously doesn't like when a pom.xml contains umlaut characters.
When I then looked at my pom.xml I wondered:
1) The XML header above wasn't there anymore
2) The <project...> header which originally spread over three lines was only line.
3) "ü" was changed into an umlaut ("ΓΌ")
Is this normal behaviour or did I just encounter a bug in the release plugin? Is it even possible to prevent the plugin from changing my pom according to 1-3? I haven't seen much about that in the docs at http://maven.apache.org/plugins/maven-release-plugin/...
Thanks for any hints
Thorsten
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org