Git Product home page Git Product logo

Comments (4)

lanwen avatar lanwen commented on May 20, 2024

it will be nice to ignore this with warning, and dont fail site build

[INFO] Generating "Allure" report    --- allure-maven-plugin:1.3.2
Error on line 34 column 106 of 72fae53f-bb73-4ab1-b1ba-24b9d04f8969-testsuite.xml:
  SXXP0003: Error reported by XML parser: An invalid XML character (Unicode: 0x17) was found
  in the element content of the document.
Recoverable error on line 23 
  FODC0002: org.xml.sax.SAXParseException; systemId:
  file:/53300f3fe4b00fcb84262ae7/target/site/allure-maven-plugin/72fae53f-bb73-4ab1-b1ba-24b9d04f8969-testsuite.xml; lineNumber: 34; columnNumber: 106; An invalid XML character (Unicode: 0x17) was found in the element content of the document.
Error on line 72 column 106 of 9ff222fd-8def-4419-bca8-1237e9976ef8-testsuite.xml:
  SXXP0003: Error reported by XML parser: An invalid XML character (Unicode: 0x17) was found
  in the element content of the document.
Recoverable error on line 23 
  FODC0002: org.xml.sax.SAXParseException; systemId:
  file:/53300f3fe4b00fcb84262ae7/target/site/allure-maven-plugin/9ff222fd-8def-4419-bca8-1237e9976ef8-testsuite.xml; lineNumber: 72; columnNumber: 106; An invalid XML character (Unicode: 0x17) was found in the element content of the document.

from allure1.

baev avatar baev commented on May 20, 2024

надо заюзать JTidy перед построением отчета. Сделаю в ближайшей версии

from allure1.

lanwen avatar lanwen commented on May 20, 2024

Quick workaround:


    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.15</version>
                <configuration>
                    <argLine>
                        -javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
                    </argLine>
                    <properties>
                        <property>
                            <name>listener</name>
                            <value>ru.yandex.qatools.allure.junit.AllureRunListener</value>
                        </property>
                    </properties>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.aspectj</groupId>
                        <artifactId>aspectjweaver</artifactId>
                        <version>${aspectj.version}</version>
                    </dependency>
                </dependencies>
            </plugin>



            <plugin>
                <groupId>net.sourceforge.docbook-utils.maven-plugin</groupId>
                <artifactId>maven-tidy-plugin</artifactId>
                <version>1.0.0.beta-1</version>
                <executions>
                    <execution>
                        <id>clean-report-files</id>
                        <phase>pre-site</phase>
                        <goals>
                            <goal>tidy</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <sourceDir>${project.build.directory}/site/allure-maven-plugin</sourceDir>
                    <jtidyConfiguration>
                        <property>
                            <name>input-xml</name>
                            <value>true</value>
                        </property>
                        <property>
                            <name>output-xml</name>
                            <value>true</value>
                        </property>
                        <property>
                            <name>input-encoding</name>
                            <value>UTF-8</value>
                        </property>
                        <property>
                            <name>output-encoding</name>
                            <value>UTF-8</value>
                        </property>
                        <property>
                            <name>indent</name>
                            <value>true</value>
                        </property>
                    </jtidyConfiguration>
                </configuration>
            </plugin>

        </plugins>
    </build>



    <reporting>
        <plugins>
            <plugin>
                <groupId>ru.yandex.qatools.allure</groupId>
                <artifactId>allure-maven-plugin</artifactId>
                <version>${allure.version}</version>
                <configuration>
                    <allureResultsDirectory>${project.build.directory}/tidy/</allureResultsDirectory>
                    <outputDirectory>${project.build.directory}/site/allure-maven-plugin</outputDirectory>
                </configuration>
            </plugin>

        </plugins>
    </reporting>

from allure1.

baev avatar baev commented on May 20, 2024

see #190

from allure1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.