public abstract class AbstractPOMGenMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
File |
artifactLocation |
String |
groupId |
File |
moduleProject |
File |
outputLocation |
org.apache.maven.project.MavenProject |
project |
org.apache.maven.project.MavenProjectHelper |
projectHelper |
String |
typeList |
| Constructor and Description |
|---|
AbstractPOMGenMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDependencies(org.apache.maven.project.MavenProject artifactMavenProject,
Artifact artifact,
File projectLocation) |
protected void |
addMavenDependencies(org.apache.maven.project.MavenProject artifactMavenProject,
Artifact artifact,
List<Artifact> artifacts) |
protected void |
addMavenDependency(org.apache.maven.project.MavenProject artifactMavenProject,
String dGroupId,
String dArtifactId,
String dVersion,
String scope,
String type) |
protected abstract void |
addPlugins(org.apache.maven.project.MavenProject artifactMavenProject,
Artifact artifact) |
protected abstract void |
copyResources(org.apache.maven.project.MavenProject project,
File projectLocation,
Artifact artifact) |
protected org.apache.maven.project.MavenProject |
createMavenProjectForCappArtifact(Artifact artifact,
List<Artifact> artifacts,
File projectLocation) |
void |
execute() |
File |
getArtifactLocation() |
protected abstract String |
getArtifactType() |
protected String |
getExtensionOfDependency(List<Artifact> artifacts,
ArtifactDependency dependency) |
String |
getGroupId() |
File |
getModuleProject() |
File |
getOutputLocation() |
org.apache.maven.project.MavenProject |
getProject() |
File |
getProjectLocation() |
Map<String,String> |
getTypeList() |
protected void |
processArtifacts(List<Artifact> artifacts) |
protected File |
processTokenReplacement(Artifact artifact)
Filter and replace maven placeholders in artifacts with respective property values
|
protected File |
processTokenReplacement(File file)
Filter and replace maven placeholders in artifacts with respective property values
|
String |
replaceTokens(String content,
Properties mavenProperties)
Replace artifact tokens with maven properties.
|
void |
setArtifactLocation(File artifactLocation) |
void |
setGroupId(String groupId) |
void |
setModuleProject(File moduleProject) |
void |
setOutputLocation(File outputLocation) |
void |
setProject(org.apache.maven.project.MavenProject project) |
void |
setProjectLocation(File projectLocation) |
void |
setTypeList(String typeList) |
public org.apache.maven.project.MavenProject project
public org.apache.maven.project.MavenProjectHelper projectHelper
public File outputLocation
public File artifactLocation
public File moduleProject
public String groupId
public String typeList
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract String getArtifactType()
protected void processArtifacts(List<Artifact> artifacts) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract void copyResources(org.apache.maven.project.MavenProject project,
File projectLocation,
Artifact artifact)
throws IOException
IOExceptionprotected org.apache.maven.project.MavenProject createMavenProjectForCappArtifact(Artifact artifact, List<Artifact> artifacts, File projectLocation) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void addMavenDependencies(org.apache.maven.project.MavenProject artifactMavenProject,
Artifact artifact,
List<Artifact> artifacts)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void addMavenDependency(org.apache.maven.project.MavenProject artifactMavenProject,
String dGroupId,
String dArtifactId,
String dVersion,
String scope,
String type)
protected void addDependencies(org.apache.maven.project.MavenProject artifactMavenProject,
Artifact artifact,
File projectLocation)
protected String getExtensionOfDependency(List<Artifact> artifacts, ArtifactDependency dependency)
protected abstract void addPlugins(org.apache.maven.project.MavenProject artifactMavenProject,
Artifact artifact)
public void setGroupId(String groupId)
public String getGroupId() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void setModuleProject(File moduleProject)
public File getModuleProject()
public void setArtifactLocation(File artifactLocation)
public File getArtifactLocation()
public void setOutputLocation(File outputLocation)
public File getOutputLocation()
public void setProject(org.apache.maven.project.MavenProject project)
public org.apache.maven.project.MavenProject getProject()
public void setTypeList(String typeList)
public void setProjectLocation(File projectLocation)
public File getProjectLocation()
protected File processTokenReplacement(Artifact artifact) throws IOException
artifact - IOExceptionprotected File processTokenReplacement(File file) throws IOException
file - IOExceptionpublic String replaceTokens(String content, Properties mavenProperties)
content - mavenProperties - Copyright © 2024 WSO2. All rights reserved.