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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IMavenServicegetService()Gets the service.voidinit()Inits the.StringmvnReleasePerform(String strPathPom, String strUsername, String strPassword, CommandResult commandResult, boolean bPrivateRepository)Mvn release perform.StringmvnReleasePrepare(String strPathPom, String strReleaseVersion, String strTag, String strDevelopmentVersion, String strUsername, String strPassword, CommandResult commandResult)mvnReleasePrepare.voidmvnSiteAssembly(String strSiteName, String strTagName, String strMavenProfile, SvnUser user, CommandResult commandResult)Mvn site assembly.
-
-
-
Method Detail
-
getService
public static IMavenService 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)
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)
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
-
-