ContainerStopMojo is missing "@requiresDependencyResolution compile"

Description

The class is missing:

@requiresDependencyResolution compile

which means that dependency resolution for container dependencies always fails when doing mvn cargo:stop

The error message is: Artifact [<groupId>:<artifactId>:<type>] is not a dependency of the project, even though it clearly is, and it does work for cargo:start.

Example:

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-version}</version>
<scope>provided</scope>
</dependency>

<plugins>
...
<configuration>
<container>
...
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
</container>
...

blackberry$ mvn cargo:stop
...
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ [INFO] Artifact [mysql:mysql-connector-java:jar] is not a dependency of the project.
0

Status

Assignee

Matt Wringe

Reporter

Martin Algesten

Components

Fix versions

Affects versions

0.3.1-maven2

Priority

Critical