A required class was missing while executing com.thed.zapi:zapi-maven-plugin:0.1

Issue #6 resolved
Mario Milani created an issue

Hello executing the attached pom.xml, I receive the following error message:

[INFO] [INFO] >>> zapi-maven-plugin:0.1:zapi (default) > post-integration-test @ myWebApp >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ myWebApp --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ myWebApp --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ myWebApp --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ myWebApp --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ myWebApp --- [INFO] Skipping execution of surefire because it has already been run for this configuration [INFO] [INFO] --- maven-war-plugin:2.2:war (default-war) @ myWebApp --- [INFO] Packaging webapp [INFO] Assembling webapp [myWebApp] in [d:\ProgettiCVS\TEST\myWebAppZAPI\target\myWebApp] [INFO] Processing war project [INFO] Copying webapp resources [d:\ProgettiCVS\TEST\myWebAppZAPI\src\main\webapp] [INFO] Webapp assembled in [427 msecs] [INFO] Building war: d:\ProgettiCVS\TEST\myWebAppZAPI\target\myWebApp.war [INFO] WEB-INF\web.xml already added, skipping [INFO] [INFO] <<< zapi-maven-plugin:0.1:zapi (default) < post-integration-test @ myWebApp <<< [INFO] [INFO] --- zapi-maven-plugin:0.1:zapi (default) @ myWebApp --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.043 s [INFO] Finished at: 2015-04-14T14:27:02+02:00 [INFO] Final Memory: 14M/328M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.thed.zapi:zapi-maven-plugin:0.1:zapi (default) on project myWebApp: Execution default of goal com.thed.zapi:zapi-ma ven-plugin:0.1:zapi failed: A required class was missing while executing com.thed.zapi:zapi-maven-plugin:0.1:zapi: org/apache/maven/doxia/sink/SinkEve ntAttributes [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>com.thed.zapi:zapi-maven-plugin:0.1 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Users/aope036/.m2/repository/com/thed/zapi/zapi-maven-plugin/0.1/zapi-maven-plugin-0.1.jar [ERROR] urls[1] = file:/C:/Users/aope036/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar [ERROR] urls[2] = file:/C:/Users/aope036/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [ERROR] urls[3] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.jar [ERROR] urls[4] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar [ERROR] urls[5] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar [ERROR] urls[6] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.1/maven-reporting-impl-2.1.jar [ERROR] urls[7] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/doxia/doxia-core/1.1.2/doxia-core-1.1.2.jar [ERROR] urls[8] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1.2/doxia-logging-api-1.1.2.jar [ERROR] urls[9] = file:/C:/Users/aope036/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar [ERROR] urls[10] = file:/C:/Users/aope036/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar [ERROR] urls[11] = file:/C:/Users/aope036/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar [ERROR] urls[12] = file:/C:/Users/aope036/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar [ERROR] urls[13] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.1.2/doxia-site-renderer-1.1.2.jar [ERROR] urls[14] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.1.2/doxia-decoration-model-1.1.2.jar [ERROR] urls[15] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.1.2/doxia-module-xhtml-1.1.2.jar [ERROR] urls[16] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.1.2/doxia-module-fml-1.1.2.jar [ERROR] urls[17] = file:/C:/Users/aope036/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar [ERROR] urls[18] = file:/C:/Users/aope036/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar [ERROR] urls[19] = file:/C:/Users/aope036/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar [ERROR] urls[20] = file:/C:/Users/aope036/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar [ERROR] urls[21] = file:/C:/Users/aope036/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar [ERROR] urls[22] = file:/C:/Users/aope036/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar [ERROR] urls[23] = file:/C:/Users/aope036/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar [ERROR] urls[24] = file:/C:/Users/aope036/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar [ERROR] urls[25] = file:/C:/Users/aope036/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar [ERROR] urls[26] = file:/C:/Users/aope036/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar [ERROR] urls[27] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.5/maven-shared-utils-0.5.jar [ERROR] urls[28] = file:/C:/Users/aope036/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar [ERROR] urls[29] = file:/C:/Users/aope036/.m2/repository/org/apache/maven/surefire/surefire-report-parser/2.16/surefire-report-parser-2.16.jar [ERROR] urls[30] = file:/C:/Users/aope036/.m2/repository/com/sun/jersey/jersey-client/1.18/jersey-client-1.18.jar [ERROR] urls[31] = file:/C:/Users/aope036/.m2/repository/com/sun/jersey/jersey-core/1.18/jersey-core-1.18.jar [ERROR] urls[32] = file:/C:/Users/aope036/.m2/repository/com/google/guava/guava/14.0/guava-14.0.jar [ERROR] urls[33] = file:/C:/Users/aope036/.m2/repository/com/sun/jersey/jersey-json/1.17.1/jersey-json-1.17.1.jar [ERROR] urls[34] = file:/C:/Users/aope036/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar [ERROR] urls[35] = file:/C:/Users/aope036/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar [ERROR] urls[36] = file:/C:/Users/aope036/.m2/repository/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar [ERROR] urls[37] = file:/C:/Users/aope036/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar [ERROR] urls[38] = file:/C:/Users/aope036/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar [ERROR] urls[39] = file:/C:/Users/aope036/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.2/jackson-core-asl-1.9.2.jar [ERROR] urls[40] = file:/C:/Users/aope036/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.2/jackson-mapper-asl-1.9.2.jar [ERROR] urls[41] = file:/C:/Users/aope036/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.2/jackson-jaxrs-1.9.2.jar [ERROR] urls[42] = file:/C:/Users/aope036/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.2/jackson-xc-1.9.2.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] -----------------------------------------------------: org.apache.maven.doxia.sink.SinkEventAttributes [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

Is it a known problem? I'am evaluating ZAPI in our JIRA environement, please could you help me? Mario Milani Thanks

Comments (4)

  1. Fabrice Richard

    Hello All, I am getting the same issue: Failed to execute goal com.thed.zapi:zapi-maven-plugin:0.1:zapi (default) on project Demo: Execution default of goal com.thed.zapi:zapi-maven-plugin:0.1:zapi failed: A required class was missing while executing com.thed.zapi:zapi-maven-plugin:0.1:zapi: org/apache/maven/doxia/sink/SinkEventAttributes

    Here is my POM (I was not able to attach it, only images are allowed..):

    <?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>com.west.qa.automation</groupId>
    <artifactId>Demo</artifactId>
    <name>Demo app</name>
    <version>1.1-SNAPSHOT</version>
    <packaging>jar</packaging>
    
    <properties>
        <!-- AQwest Framework version -->
        <aqwest.framework.version>2.12.27</aqwest.framework.version>
    
        <!-- define encoding -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    
        <!-- code coverage -->
        <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
        <sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
        <sonar.language>java</sonar.language>
    
        <!-- sonar sandpit -->
        <sonar.jdbc.url>jdbc:h2:tcp://qacentos02mpl.us.intercall.com:9092/sonar</sonar.jdbc.url>
        <sonar.jdbc.username>sonar</sonar.jdbc.username>
        <sonar.jdbc.password>sonar</sonar.jdbc.password>
        <sonar.host.url>http://qacentos02mpl.us.intercall.com</sonar.host.url>
        <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
        <sonar.sonar.language>java</sonar.sonar.language>
    
        <!-- Zephyr/Zapi config -->
        <zapi.url>http://jira.dev.iconf.net/</zapi.url>
        <zapi.userName>jenkinsci</zapi.userName>
        <zapi.password>jenkinsci</zapi.password>
        <zapi.projectId>11622</zapi.projectId>
        <zapi.versionId>3.0</zapi.versionId>
    
    </properties>
    
    
    <build>
        <plugins>
    
            <!-- Define JDK -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <!-- Package sources during build -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.4</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!-- Manage resources during build -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.7</version>
            </plugin>
    
            <!-- test runner -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.18.1</version>
            </plugin>
    
            <!-- ZAPI plugin -->
            <plugin>
                <groupId>com.thed.zapi</groupId>
                <artifactId>zapi-maven-plugin</artifactId>
                <version>0.1</version>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>zapi</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    
    <dependencies>
    
        <!-- AQwest Framework -->
        <dependency>
            <groupId>com.west.qa.automation</groupId>
            <artifactId>Framework</artifactId>
            <version>${aqwest.framework.version}</version>
        </dependency>
    
    </dependencies>
    
    <!-- Intercall internal maven repository to retrieves dependencies -->
    <repositories>
        <repository>
            <id>swn01vqaqtp02</id>
            <name>swn01vqaqtp02-releases</name>
            <url>http://swn01vqaqtp02:8081/artifactory/ext-release-local</url>
        </repository>
        <repository>
            <id>qaautomation</id>
            <url>http://swn01vqaqtp02:8081/artifactory/libs-release-local</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>swn01vqaqtp02-snapshots</id>
            <name>swn01vqaqtp02-snapshots</name>
            <url>http://swn01vqaqtp02:8081/artifactory/libs-snapshot-local</url>
        </repository>
    </repositories>
    
    <pluginRepositories>
            <pluginRepository>
            <id>zapi-maven-repo</id>
            <name>Zapi Maven Bitbucket repository</name>
            <url>https://bitbucket.org/zfjdeveloper/zapi-maven-plugin/raw/releases</url>
        </pluginRepository>
    </pluginRepositories>
    
    
    <!-- Intercall internal repository to deploy this project -->
    <distributionManagement>
        <snapshotRepository>
            <id>qaautomation-snapshots</id>
            <name>QA Automation Repository Management Internal Snapshots</name>
            <url>http://swn01vqaqtp02:8081/artifactory/libs-snapshot-local</url>
        </snapshotRepository>
        <repository>
            <id>qaautomation</id>
            <name>QA Automation Repository Management</name>
            <url>http://swn01vqaqtp02:8081/artifactory/libs-release-local</url>
        </repository>
    </distributionManagement>
    

    </project>

    Thank you! Fabrice

  2. Fabrice Richard

    ok found the answer on the web, need to add <dependencies> <dependency> <groupId>org.apache.maven.doxia</groupId> <artifactId>doxia-sink-api</artifactId> <version>1.1.2</version> </dependency> </dependencies>

    inside plugin declaration..

  3. Log in to comment