@Deprecated @Component(role=RepositoryTool.class) public class RepositoryTool extends Object implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
WARNING: Currently, the createLocalRepositoryFromPlugin
method 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 |
---|---|
static String |
ROLE
Deprecated.
Plexus role
|
Constructor and Description |
---|
RepositoryTool()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
contextualize(org.codehaus.plexus.context.Context context)
Deprecated.
Retrieve the PlexusContainer instance used to instantiate this component.
|
ArtifactRepository |
createLocalArtifactRepositoryInstance()
Deprecated.
Construct an ArtifactRepository instance that refers to the normal Maven local repository.
|
ArtifactRepository |
createLocalArtifactRepositoryInstance(File localRepositoryDirectory)
Deprecated.
Construct an ArtifactRepository instance that refers to the test-time Maven local repository.
|
void |
createLocalRepositoryFromComponentProject(MavenProject project,
File realPomFile,
File targetLocalRepoBasedir)
Deprecated.
Install a test version of a plugin - along with its POM, and as many ancestor POMs as can be
reached using the <relativePath/> element - to a clean local repository directory for
use in test builds.
|
File |
findLocalRepositoryDirectory()
Deprecated.
Lookup and return the location of the normal Maven local repository.
|
public static final String ROLE
public File findLocalRepositoryDirectory() throws TestToolsException
TestToolsException
- if anypublic ArtifactRepository createLocalArtifactRepositoryInstance() throws TestToolsException
TestToolsException
- if anypublic ArtifactRepository createLocalArtifactRepositoryInstance(File localRepositoryDirectory) throws TestToolsException
localRepositoryDirectory
- The location of the local repository to be used for test builds.TestToolsException
- if anypublic void createLocalRepositoryFromComponentProject(MavenProject project, File realPomFile, File targetLocalRepoBasedir) throws TestToolsException
WARNING: Currently, this method 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.
project
- realPomFile
- targetLocalRepoBasedir
- TestToolsException
- if anypublic void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
org.codehaus.plexus.context.ContextException
Contextualizable.contextualize(org.codehaus.plexus.context.Context)
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.