Class MavenProjectParser
- java.lang.Object
-
- com.atlassian.bamboo.plugins.maven.dependencies.MavenProjectParser
-
public class MavenProjectParser extends Object
-
-
Constructor Summary
Constructors Constructor Description MavenProjectParser(@NotNull MavenEmbedderService mavenEmbedderService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.maven.artifact.Artifact
getArtifact()
String
getArtifactId()
Set<org.apache.maven.artifact.Artifact>
getArtifacts()
Set<org.apache.maven.model.Dependency>
getDependencies()
String
getGroupId()
List<String>
getModules()
String
getVersion()
void
parse(File file)
protected Set<org.apache.maven.artifact.Artifact>
parseProjectArtifacts(List<org.apache.maven.project.ProjectBuildingResult> resultList)
protected Set<org.apache.maven.model.Dependency>
parseProjectDependencies(List<org.apache.maven.project.ProjectBuildingResult> resultList)
void
setAltGlobalSettingsXmlLocation(String altGlobalSettingsXmlLocation)
void
setAltUserSettingsXmlLocation(String altUserSettingsXmlLocation)
void
setLocalRepositoryDirectory(File localRepositoryDirectory)
-
-
-
Constructor Detail
-
MavenProjectParser
public MavenProjectParser(@NotNull @NotNull MavenEmbedderService mavenEmbedderService)
-
-
Method Detail
-
setLocalRepositoryDirectory
public void setLocalRepositoryDirectory(File localRepositoryDirectory)
-
setAltGlobalSettingsXmlLocation
public void setAltGlobalSettingsXmlLocation(String altGlobalSettingsXmlLocation)
-
setAltUserSettingsXmlLocation
public void setAltUserSettingsXmlLocation(String altUserSettingsXmlLocation)
-
parse
public void parse(File file) throws MavenEmbedderException, org.apache.maven.project.ProjectBuildingException
- Throws:
MavenEmbedderException
org.apache.maven.project.ProjectBuildingException
-
parseProjectArtifacts
protected Set<org.apache.maven.artifact.Artifact> parseProjectArtifacts(List<org.apache.maven.project.ProjectBuildingResult> resultList)
-
parseProjectDependencies
protected Set<org.apache.maven.model.Dependency> parseProjectDependencies(List<org.apache.maven.project.ProjectBuildingResult> resultList)
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()
-
getGroupId
public String getGroupId()
-
getArtifactId
public String getArtifactId()
-
getVersion
public String getVersion()
-
getArtifacts
public Set<org.apache.maven.artifact.Artifact> getArtifacts()
-
getDependencies
public Set<org.apache.maven.model.Dependency> getDependencies()
-
-