Elliotte Rusty Harold opened MPLUGINTESTING-70 and commented
I'm attaching a sample project based on work by Ian Lavallee. Briefly it demos that one can only use AbstractMojoTestCase if the pom.xml also adds a dependency on org.apache.maven:maven-compat and org.apache.maven:maven-plugin-api. The former at least seems like it should not be required.
Furthermore if either of these are required they should probably be at least runtime dependencies of maven-plugin-testing rather than requiring client projects to ad these dependencies explicitly.
Both of these are only required to run tests, not to compile the project.
Attachments:
Issue Links:
Remote Links:
Backported to: 3.4.0
0 votes, 5 watchers
Elliotte Rusty Harold opened MPLUGINTESTING-70 and commented
I'm attaching a sample project based on work by Ian Lavallee. Briefly it demos that one can only use AbstractMojoTestCase if the pom.xml also adds a dependency on org.apache.maven:maven-compat and org.apache.maven:maven-plugin-api. The former at least seems like it should not be required.
Furthermore if either of these are required they should probably be at least runtime dependencies of maven-plugin-testing rather than requiring client projects to ad these dependencies explicitly.
Both of these are only required to run tests, not to compile the project.
Attachments:
Issue Links:
Remote Links:
Backported to: 3.4.0
0 votes, 5 watchers