Maven 2.x Plugin Testing

Support intra-project dependencies when preparing plugins for testing

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: plugin-testing-tools
  • Labels:
    None
  • Number of attachments :
    0

Description

Consider testing a plugin in the following multi-module project structure:

project
+- api
+- maven-plugin (dependencies: api)

PluginTestTool.preparePluginForUnitTestingWithMavenBuilds will only install a test version of the plugin into the test repository with dependency to the current version of the api module. We really need a test version of the api module to also be installed into the test repository and the plugin dependency version updated accordingly.

For example, if the above project's version is 1.0-SNAPSHOT, we currently get the following test repository:

project:maven-plugin:testVersion (dependencies: project:api:1.0-SNAPSHOT)
project:api:1.0-SNAPSHOT

Whereas we want:

project:maven-plugin:testVersion (dependencies: project:api:testVersion)
project:api:testVersion

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: