public class MavenProjectParser extends Object
Constructor and Description |
---|
MavenProjectParser(MavenEmbedderService mavenEmbedderService) |
Modifier and Type | Method and 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) |
public MavenProjectParser(@NotNull MavenEmbedderService mavenEmbedderService)
public void setLocalRepositoryDirectory(File localRepositoryDirectory)
public void setAltGlobalSettingsXmlLocation(String altGlobalSettingsXmlLocation)
public void setAltUserSettingsXmlLocation(String altUserSettingsXmlLocation)
public void parse(File file) throws MavenEmbedderException, org.apache.maven.project.ProjectBuildingException
MavenEmbedderException
org.apache.maven.project.ProjectBuildingException
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)
public org.apache.maven.artifact.Artifact getArtifact()
public String getGroupId()
public String getArtifactId()
public String getVersion()
public Set<org.apache.maven.artifact.Artifact> getArtifacts()
public Set<org.apache.maven.model.Dependency> getDependencies()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.