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.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.voidmvnSiteAssembly(String strSiteName, String strTagName, String strMavenProfile, SvnUser user, CommandResult commandResult) Mvn site assembly.
-
Method Details
-
getService
Gets the service.- Returns:
- the service
-
init
public void init()Inits the.- Specified by:
initin interfaceIMavenService
-
mvnSiteAssembly
public void mvnSiteAssembly(String strSiteName, String strTagName, String strMavenProfile, SvnUser user, CommandResult commandResult) Mvn site assembly.- Specified by:
mvnSiteAssemblyin interfaceIMavenService- Parameters:
strSiteName- the str site namestrTagName- the str tag namestrMavenProfile- the str maven profileuser- the usercommandResult- the command result
-
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
-
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
-