Package org.bonitasoft.plugin
Class MavenSessionExecutor
java.lang.Object
org.bonitasoft.plugin.MavenSessionExecutor
- All Implemented Interfaces:
org.bonitasoft.bonita2bar.MavenExecutor
Executes maven requests with information from an active session.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(File pomFile, List<String> goals, Map<String, String> properties, List<String> activeProfiles, Supplier<String> errorMessageBase) static MavenSessionExecutorfromSession(org.apache.maven.execution.MavenSession session) Get the maven executor from the maven session
-
Method Details
-
execute
public void execute(File pomFile, List<String> goals, Map<String, String> properties, List<String> activeProfiles, Supplier<String> errorMessageBase) throws org.bonitasoft.bonita2bar.BuildBarException- Specified by:
executein interfaceorg.bonitasoft.bonita2bar.MavenExecutor- Throws:
org.bonitasoft.bonita2bar.BuildBarException
-
fromSession
Get the maven executor from the maven session- Parameters:
session- maven session- Returns:
- executor relying on the session
-