Package org.apache.maven.plugin.idea
Class IdeaWorkspaceMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugin.idea.AbstractIdeaMojo
-
- org.apache.maven.plugin.idea.IdeaWorkspaceMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public class IdeaWorkspaceMojo extends AbstractIdeaMojo
Creates the workspace file (*.iws) for IntelliJ IDEA.
-
-
Field Summary
-
Fields inherited from class org.apache.maven.plugin.idea.AbstractIdeaMojo
artifactFactory, artifactMetadataSource, artifactResolver, executedProject, localRepo, log, overwrite
-
-
Constructor Summary
Constructors Constructor Description IdeaWorkspaceMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Create IDEA workspace (.iws) file.protected java.lang.StringgetScmType()used to retrieve the SCM Typeprotected java.lang.StringgetScmType(java.lang.String connection)voidrewriteWorkspace()private voidsetProjectScmType(org.dom4j.Element content)Sets the SCM type of the projectprotected java.lang.StringtranslateScmType(java.lang.String scmType)Translate the SCM type from the SCM connection URL to the format used by IDEA as the value for ACTIVE_VCS_NAME.-
Methods inherited from class org.apache.maven.plugin.idea.AbstractIdeaMojo
convertDriveLetter, createElement, doDependencyResolution, findComponent, findElement, findElement, getLog, getPluginSetting, initParam, readXmlDocument, removeOldElements, toRelative, writeXmlDocument
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionCreate IDEA workspace (.iws) file.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
rewriteWorkspace
public void rewriteWorkspace() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setProjectScmType
private void setProjectScmType(org.dom4j.Element content)
Sets the SCM type of the project
-
getScmType
protected java.lang.String getScmType()
used to retrieve the SCM Type- Returns:
- the Scm Type string used to connect to the SCM
-
getScmType
protected java.lang.String getScmType(java.lang.String connection)
-
translateScmType
protected java.lang.String translateScmType(java.lang.String scmType)
Translate the SCM type from the SCM connection URL to the format used by IDEA as the value for ACTIVE_VCS_NAME.
-
-