Class MavenService
java.lang.Object
fr.paris.lutece.plugins.releaser.service.MavenService
- All Implemented Interfaces:
IMavenService
MavenService : provides maven command launcher.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IMavenServiceGets the service.voidinit()Inits the.mvnDeploy(String strPathPom, CommandResult commandResult, String strTargetJdkVersion) Run "mvn clean deploy" against the given pom.mvnGenerateEffectivePom(String strPathPom, String strEffectivePomPath, CommandResult commandResult) Mvn generate effective pom.mvnReleasePerform(String strPathPom, String strUsername, String strPassword, CommandResult commandResult, boolean bPrivateRepository, String strTargetJdkVersion) Mvn release perform.mvnReleasePrepare(String strPathPom, String strReleaseVersion, String strTag, String strDevelopmentVersion, String strUsername, String strPassword, CommandResult commandResult, String strTargetJdkVersion) mvnReleasePrepare.
-
Method Details
-
getService
Gets the service.- Returns:
- the service
-
init
public void init()Inits the.- Specified by:
initin interfaceIMavenService
-
mvnReleasePerform
public String mvnReleasePerform(String strPathPom, String strUsername, String strPassword, CommandResult commandResult, boolean bPrivateRepository, String strTargetJdkVersion) Mvn release perform.- Specified by:
mvnReleasePerformin interfaceIMavenService- Parameters:
strPathPom- the str path pomstrUsername- the str usernamestrPassword- the str passwordcommandResult- the command resultbPrivateRepository- 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:
mvnReleasePreparein interfaceIMavenService- Parameters:
strPathPom- the str path pomstrReleaseVersion- la version a releasestrTag- le nom du tagstrDevelopmentVersion- la prochaine version de developpement (avec -SNAPSHOT)strUsername- the str usernamestrPassword- the str passwordcommandResult- the command result- Returns:
- le thread
-
mvnDeploy
Description copied from interface:IMavenServiceRun "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:
mvnDeployin interfaceIMavenService- Parameters:
strPathPom- the path to the pomcommandResult- the command resultstrTargetJdkVersion- 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:IMavenServiceMvn generate effective pom.- Specified by:
mvnGenerateEffectivePomin interfaceIMavenService- Parameters:
strPathPom- the str path pomstrEffectivePomPath- the str effective pom pathcommandResult- the command result- Returns:
- the string
-