@Deprecated @Component(role=PluginTestTool.class) public class PluginTestTool extends java.lang.Object
WARNING: Currently, the RepositoryTool
will not
resolve parent POMs that exist only in your normal local repository, and are not reachable
using the relativePath element. This may result in failed test builds, as one or more of the
plugin's ancestor POMs cannot be resolved.
Modifier and Type | Field and Description |
---|---|
private ProjectTool |
projectTool
Deprecated.
|
private RepositoryTool |
repositoryTool
Deprecated.
|
static java.lang.String |
ROLE
Deprecated.
Plexus role
|
Constructor and Description |
---|
PluginTestTool()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private java.io.File |
prepareForTesting(java.io.File pomFile,
java.lang.String testVersion,
boolean skipUnitTests,
java.io.File localRepositoryDir)
Deprecated.
|
java.io.File |
preparePluginForIntegrationTesting(java.io.File pomFile,
java.lang.String testVersion)
Deprecated.
Stage the plugin, using a stable version, into a temporary local-repository directory that is
generated by this method.
|
java.io.File |
preparePluginForIntegrationTesting(java.io.File pomFile,
java.lang.String testVersion,
java.io.File localRepositoryDir)
Deprecated.
Stage the plugin, using a stable version, into the specified local-repository directory.
|
java.io.File |
preparePluginForUnitTestingWithMavenBuilds(java.io.File pomFile,
java.lang.String testVersion)
Deprecated.
Stage the plugin, using a stable version, into a temporary local-repository directory that is
generated by this method.
|
java.io.File |
preparePluginForUnitTestingWithMavenBuilds(java.io.File pomFile,
java.lang.String testVersion,
java.io.File localRepositoryDir)
Deprecated.
Stage the plugin, using a stable version, into the specified local-repository directory.
|
public static final java.lang.String ROLE
@Requirement private ProjectTool projectTool
@Requirement private RepositoryTool repositoryTool
public java.io.File preparePluginForIntegrationTesting(java.io.File pomFile, java.lang.String testVersion) throws TestToolsException
pomFile
- current POM filetestVersion
- The test version for the plugin, used for reference in test-build POMs and
fully-qualified goalsTestToolsException
- if anypublic java.io.File preparePluginForUnitTestingWithMavenBuilds(java.io.File pomFile, java.lang.String testVersion) throws TestToolsException
pomFile
- current POM filetestVersion
- The test version for the plugin, used for reference in test-build POMs and
fully-qualified goalsTestToolsException
- if anypublic java.io.File preparePluginForIntegrationTesting(java.io.File pomFile, java.lang.String testVersion, java.io.File localRepositoryDir) throws TestToolsException
pomFile
- current POM filetestVersion
- The test version for the plugin, used for reference in test-build POMs and
fully-qualified goalslocalRepositoryDir
- The base-directory location of the test local repository, into which
the plugin's test version should be staged.TestToolsException
- if anypublic java.io.File preparePluginForUnitTestingWithMavenBuilds(java.io.File pomFile, java.lang.String testVersion, java.io.File localRepositoryDir) throws TestToolsException
pomFile
- current POM filetestVersion
- The test version for the plugin, used for reference in test-build POMs and
fully-qualified goalslocalRepositoryDir
- The base-directory location of the test local repository, into which
the plugin's test version should be staged.TestToolsException
- if anyprivate java.io.File prepareForTesting(java.io.File pomFile, java.lang.String testVersion, boolean skipUnitTests, java.io.File localRepositoryDir) throws TestToolsException
TestToolsException