You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/05/25 19:39:12 UTC

[jira] [Commented] (MNG-6027) Can't get a unescaped & sign

    [ https://issues.apache.org/jira/browse/MNG-6027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15300712#comment-15300712 ] 

Michael Osipov commented on MNG-6027:
-------------------------------------

It is as simple as {{&amp;}}. Otherwise, create a minimal project depicting your problem.

> 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}
> I can't  find any way to get a unescaped &.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)