Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6027

Can't get a unescaped & sign

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: POM
    • Labels:
      None

      Description

      maven version:

      Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T19:57:37+08:00)
      

      plugin version:

      <maven.antrun.plugin.version>1.7</maven.antrun.plugin.version>
      

      error message:

      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
      

      the Non-parseable part of pom:

         <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>
      

      I can't find any way to get a unescaped &.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                khmarbaise Karl Heinz Marbaise
                Reporter:
                gzh1992n Zephyr Guo
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: