渲染maven报告时出错:无法生成诱惑报告数据

时间:2017-11-23 04:11:02

标签: maven protractor

在cmd提示符下运行'“mvn site -Dallure.results_pattern = allure-results”时,我发现构建失败:

无法执行目标org.apache.maven.plugins:maven-site-plugin:3.3:si ault-site)关于项目protractor-allure-plugin-generate-html:错误durin 生成:渲染Maven报告时出错:无法生成诱惑报告da a.lang.reflect.InvocationTargetException:Guice provision errors:

1)注入构造函数时出错,java.lang.NoClassDefFoundError:javax / xm ValidationEventLocator    在ru.yandex.qatools.allure.data.converters.DefaultTestCaseConverter。< 知名来源)    找到ru.yandex.qatools.allure.data.converters.DefaultTestCas 之三    找到ru.yandex.qatools.allure.data.converters.TestCaseConver

 for field at ru.yandex.qatools.allure.data.AllureReportGenerator.con

未知来源)

下面是我的pom.xml文件

<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>ru.yandex.allure</groupId>
<artifactId>protractor-allure-plugin-generate-html</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
    <allure.version>1.4.15</allure.version>
    <allure.maven.version>2.2</allure.maven.version>
    <!-- Relative to the dir you're running from -->
    <allure.results_pattern>allure-results</allure.results_pattern>
</properties>
<dependencies>
    <dependency>
        <groupId>ru.yandex.qatools.allure</groupId>
        <artifactId>allure-report-face</artifactId>
        <version>${allure.version}</version>
        <type>war</type>
    </dependency>
</dependencies>
<build>
    <plugins>
        <plugin>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>9.2.10.v20150310</version>
            <configuration>
                <webAppSourceDirectory>target/site/allure-maven-plugin</webAppSourceDirectory>
                <stopKey>stop</stopKey>
                <stopPort>2299</stopPort>
            </configuration>
        </plugin>
    </plugins>
</build>
<reporting>
    <excludeDefaults>true</excludeDefaults>
    <plugins>
        <plugin>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-maven-plugin</artifactId>
            <version>${allure.maven.version}</version>
            <configuration>
                <resultsPattern>${allure.results_pattern}</resultsPattern>
                <!--<reportVersion>1.4.15</reportVersion>-->
            </configuration>
        </plugin>
    </plugins>
</reporting>

0 个答案:

没有答案