Doxia-sink dependency is obsolete

Issue #2 new
Eric TOURNIER created an issue

The plugin cannot be used because its execution fails with the following :

$ mvn clean test
[INFO] Scanning for projects...
(...)
[INFO] <<< zapi-maven-plugin:0.1:zapi (default) @ ra-core <<<
[INFO]
[INFO] --- zapi-maven-plugin:0.1:zapi (default) @ ra-core ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.581s
[INFO] Finished at: Wed Mar 26 17:50:41 CET 2014
[INFO] Final Memory: 43M/323M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.thed.zapi:zapi-maven-plugin:0.1:zapi (default) on project XXX:
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
[ERROR] -----------------------------------------------------

The stacktrace shows that the version of doxia-core-api dependency is not good :

[ERROR] urls[5] = file:/.../org/apache/maven/doxia/doxia-sink-api/1.0/doxia-sink-api-1.0.jar

The version should be at least 1.1.2.

In order to bypass this issue, the plugin declaration in the pom.xml should be modified :

<build>
    <plugins>
        <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>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.doxia</groupId>
                        <artifactId>doxia-sink-api</artifactId>
                        <version>1.1.2</version>
                    </dependency>
                </dependencies>
        </plugin>
    </plugins>
</build>

Dependency management must be updated.

Comments (0)

  1. Log in to comment