public class DependencyCalculator extends Object
| Constructor and Description |
|---|
DependencyCalculator(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
org.apache.maven.artifact.resolver.ArtifactResolver resolver,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.apache.maven.project.MavenProject mavenProject,
org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder,
org.apache.maven.artifact.installer.ArtifactInstaller installer,
org.codehaus.plexus.PlexusContainer container)
Saves all attributes.
|
| Modifier and Type | Method and Description |
|---|---|
Set<File> |
execute()
Execute the dependency calculator.
|
protected void |
fixModelAndSaveInRepository(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.model.Model pomFile)
Fix model and save in repository.
|
protected void |
fixupProjectArtifact()
Fixup the project artifact.
|
protected void |
fixupRepositoryArtifact(org.apache.maven.artifact.Artifact artifact)
Fixup an artifact.
|
public DependencyCalculator(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
org.apache.maven.artifact.resolver.ArtifactResolver resolver,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
org.apache.maven.project.MavenProject mavenProject,
org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder,
org.apache.maven.artifact.installer.ArtifactInstaller installer,
org.codehaus.plexus.PlexusContainer container)
artifactFactory - Artifact factory.resolver - Artifact resolver.localRepository - Artifact repository.remoteRepositories - Remote repositories.mavenProject - Maven2 project.mavenProjectBuilder - Maven2 project builder.installer - Artifact installer.container - Plexus container.public Set<File> execute() throws Exception
Exception - If anything goes wrong.protected void fixupProjectArtifact()
throws Exception
Exception - If anything goes wrong.protected void fixupRepositoryArtifact(org.apache.maven.artifact.Artifact artifact)
throws Exception
artifact - Artifact to fixup.Exception - If anything goes wrong.protected void fixModelAndSaveInRepository(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.model.Model pomFile)
throws Exception
artifact - Artifact.pomFile - Maven2 model file.Exception - If anything goes wrong.Copyright © 2004–2016 Github. All rights reserved.