Class MavenService

java.lang.Object
fr.paris.lutece.plugins.releaser.service.MavenService
All Implemented Interfaces:
IMavenService

public class MavenService extends Object implements IMavenService
MavenService : provides maven command launcher.
  • Method Details

    • getService

      public static IMavenService getService()
      Gets the service.
      Returns:
      the service
    • init

      public void init()
      Inits the.
      Specified by:
      init in interface IMavenService
    • mvnSiteAssembly

      public void mvnSiteAssembly(String strSiteName, String strTagName, String strMavenProfile, SvnUser user, CommandResult commandResult)
      Mvn site assembly.
      Specified by:
      mvnSiteAssembly in interface IMavenService
      Parameters:
      strSiteName - the str site name
      strTagName - the str tag name
      strMavenProfile - the str maven profile
      user - the user
      commandResult - the command result
    • mvnReleasePerform

      public String mvnReleasePerform(String strPathPom, String strUsername, String strPassword, CommandResult commandResult, boolean bPrivateRepository, String strTargetJdkVersion)
      Mvn release perform.
      Specified by:
      mvnReleasePerform in interface IMavenService
      Parameters:
      strPathPom - the str path pom
      strUsername - the str username
      strPassword - the str password
      commandResult - the command result
      bPrivateRepository - true if the perform must be push in private repository
      Returns:
      the string
    • mvnReleasePrepare

      public String mvnReleasePrepare(String strPathPom, String strReleaseVersion, String strTag, String strDevelopmentVersion, String strUsername, String strPassword, CommandResult commandResult, String strTargetJdkVersion)
      mvnReleasePrepare.
      Specified by:
      mvnReleasePrepare in interface IMavenService
      Parameters:
      strPathPom - the str path pom
      strReleaseVersion - la version a release
      strTag - le nom du tag
      strDevelopmentVersion - la prochaine version de developpement (avec -SNAPSHOT)
      strUsername - the str username
      strPassword - the str password
      commandResult - the command result
      Returns:
      le thread
    • mvnDeploy

      public String mvnDeploy(String strPathPom, CommandResult commandResult, String strTargetJdkVersion)
      Description copied from interface: IMavenService
      Run "mvn clean deploy" against the given pom. Used by the "release from tag" workflow to publish artifacts to Nexus directly, since release:perform cannot be used from a detached HEAD without release.properties.
      Specified by:
      mvnDeploy in interface IMavenService
      Parameters:
      strPathPom - the path to the pom
      commandResult - the command result
      strTargetJdkVersion - the target JDK toolchain version (may be null)
      Returns:
      the string
    • mvnGenerateEffectivePom

      public String mvnGenerateEffectivePom(String strPathPom, String strEffectivePomPath, CommandResult commandResult)
      Description copied from interface: IMavenService
      Mvn generate effective pom.
      Specified by:
      mvnGenerateEffectivePom in interface IMavenService
      Parameters:
      strPathPom - the str path pom
      strEffectivePomPath - the str effective pom path
      commandResult - the command result
      Returns:
      the string