I'm trying to deploy my project with Jenkins, but I'm getting the following error always:
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
I have tried a lot of solutions, but I can't solve this problem.
- My xml file has an UTF-8 encoding.
- I have read my xml file with a hex editor and it has no spaces at the beginning of the document.
- I have tried to create a new text file and copy the content of the xml file into the new document and change the extension from 'txt' to 'xml'.
My xml document starts this way:
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>...</artifactId>
<groupId>...</groupId>
<version>...</version>
</parent>
<groupId>...</groupId>
<artifactId>...</artifactId>
<version>...</version>
<description>...</description>
<packaging>...</packaging>
<name>...</name>
Could you help me?