org.apache.maven.plugin.idea
public abstract class AbstractIdeaMojo extends AbstractMojo
Field Summary | |
---|---|
protected ArtifactFactory | artifactFactory |
protected ArtifactMetadataSource | artifactMetadataSource |
protected ArtifactResolver | artifactResolver |
protected MavenProject | executedProject
The Maven Project.
|
protected ArtifactRepository | localRepo |
protected Log | log |
protected boolean | overwrite
Whether to update the existing project files or overwrite them.
|
Method Summary | |
---|---|
protected Element | createElement(Element module, String name)
Creates an Xpp3Dom element.
|
protected void | doDependencyResolution(MavenProject project, ArtifactRepository localRepo) |
protected Element | findComponent(Element module, String name)
Finds element from the module element.
|
protected Element | findElement(Element element, String elementName, String attributeName) |
protected Element | findElement(Element component, String name) |
Log | getLog() |
void | initParam(MavenProject project, ArtifactFactory artifactFactory, ArtifactRepository localRepo, ArtifactResolver artifactResolver, ArtifactMetadataSource artifactMetadataSource, Log log, boolean overwrite) |
protected Document | readXmlDocument(File file, String altFilename) |
protected void | removeOldElements(Element content, String name)
Remove elements from content (Xpp3Dom).
|
protected String | toRelative(File basedir, String absolutePath)
Translate the absolutePath into its relative path.
|
protected void | writeXmlDocument(File file, Document document) |
UNKNOWN: expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}"
UNKNOWN: role="org.apache.maven.artifact.metadata.ArtifactMetadataSource" hint="maven"
UNKNOWN: expression="${component.org.apache.maven.artifact.resolver.ArtifactResolver}"
UNKNOWN: expression="${executedProject}"
UNKNOWN: expression="${localRepository}"
UNKNOWN: expression="${overwrite}" default-value="false"
Parameters: module Xpp3Dom element name Name of the element
Returns: component Xpp3Dom element
Parameters: module Xpp3Dom element name Name attribute to find
Returns: component Returns the Xpp3Dom element found.
Parameters: content Xpp3Dom element name Name of the element to be removed
Parameters: basedir The basedir of the project. absolutePath The absolute path that must be translated to relative path.
Returns: relative Relative path of the parameter absolute path.