Zephyr Guo created MNG-6027:
-------------------------------
Summary: Can't get a unescaped & sign
Key: MNG-6027
URL: https://issues.apache.org/jira/browse/MNG-6027
Project: Maven
Issue Type: Bug
Components: POM
Affects Versions: 3.3.3
Reporter: Zephyr Guo
maven version:
{code}
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06;
2015-04-22T19:57:37+08:00)
{code}
plugin version:
{code}
<maven.antrun.plugin.version>1.7</maven.antrun.plugin.version>
{code}
error message:
{code}
entity reference names can not start with character '1' (position: START_TAG
seen ...cho file="target/download.sh">\n\t\t\t\t if which wget >/dev/null
2>&1... @185:36) @ line 185, column 36
{code}
the Non-parseable part of pom:
{code}
<profile>
<id>download</id>
<activation>
<activeByDefault>true</activeByDefault>
<property><name>!skipTests</name></property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
<executions>
<execution>
<id>download</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo file="target/download.sh">
if which wget >/dev/null 2>&1; then
DOWNLOAD_CMD="wget
--no-check-certificate -nv -O"
elif which curl >/dev/null 2>&1; then
DOWNLOAD_CMD="curl -sS -o"
fi
echo $DOWNLOAD_CMD
</echo>
<exec executable="bash" dir="${basedir}" failonerror="true">
<arg line="target/download.sh"/>
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)