I'm having problems using the M2 plugin (both the latest and prior versions)
when my pom has reference to both the jar and the test-jar for an artifact.
e.g.
<project>
...
<dependencies>
<dependency>
<groupId>com.thecompany</groupId>
<artifactId>my-project</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>com.thecompany</groupId>
<artifactId>my-project</artifactId>
<version>2.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
...
</project>
Maven itself behaves just fine. But the plugin only includes one of the two
plugins, because it's checking that the artifactId and groupId are the same,
but ignoring the fact that the type is different. This occurs both on the
latest plugin as well as in prior versions. Is anyone else having this
problem? I haven't checked Jira yet (but will), but before I submit any
issues on it, I want to confirm this exists for others too.
Thanks,
Doug