Class 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.
    • Constructor Detail

      • IdeaWorkspaceMojo

        public IdeaWorkspaceMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Create 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.