4

アリュールを自分のテストに固定しようとします。ドキュメントが言うように始めます(https://github.com/allure-framework/allure-core/wiki#getting-started)しかし、対処できないエラーがあります:mvnサイト

[INFO] --- maven-site-plugin:3.0:site (default-site) @ oiakProject ---
[INFO] configuring report plugin ru.yandex.qatools.allure:allure-maven-      plugin:1.4.14
Downloading:     http://repo.maven.apache.org/maven2/ru/yandex/qatools/allure/allure
-maven-plugin/1.4.14/allure-maven-plugin-1.4.14.pom
[WARNING] The POM for ru.yandex.qatools.allure:allure-maven-  plugin:jar:1.4.14 is
missing, no dependency information available
[INFO] --------------------------------------------------------------------- ---
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site- plugin:3.0:si
te (default-site) on project oiakProject: failed to get report for   ru.yandex.qat
ools.allure:allure-maven-plugin: Plugin ru.yandex.qatools.allure:allure-maven-pl
ugin:1.4.14 or one of its dependencies could not be resolved: Failed to read art
ifact descriptor for ru.yandex.qatools.allure:allure-maven-plugin:jar:1.4.14: Co
uld not find artifact ru.yandex.qatools.allure:allure-maven-plugin:pom:1.4.14 in
central (http://repo.maven.apache.org/maven2) -> [Help 1]

ここに私のpom.xmlがあります:

 <properties>
   <allure.version>1.4.14</allure.version>
   <aspectj.version>1.8.5</aspectj.version>
</properties>

  <dependencies> 
     <dependency>
        <groupId>ru.yandex.qatools.allure</groupId>
        <artifactId>allure-junit-adaptor</artifactId>
        <version>${allure.version}</version>
     </dependency>
  </dependencies>

<build>
  <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-compiler-plugin</artifactId>
       <version>3.3</version>
       <configuration>
         <source>1.8</source>
         <target>1.8</target>
       </configuration>
    </plugin>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.18.1</version>
        <configuration>
            <testFailureIgnore>false</testFailureIgnore>
            <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>org.eclipse.jetty</groupId>
           <artifactId>jetty-maven-plugin</artifactId>
           <version>9.2.10.v20150310</version>
           <configuration>
                <webAppSourceDirectory>${project.build.directory}/site/allure-maven-plugin</webAppSourceDirectory>
                <stopKey>stop</stopKey>
                <stopPort>1234</stopPort>
           </configuration>
    </plugin>
</plugins>
</build>

  <reporting>
        <excludeDefaults>true</excludeDefaults>
        <plugins>
        <plugin>
            <groupId>ru.yandex.qatools.allure</groupId>
            <artifactId>allure-maven-plugin</artifactId>
            <version>2.2</version>
        </plugin>
    </plugins>
</reporting>

4

1 に答える 1