Class AbstractMavenExecutor
java.lang.Object
org.apache.maven.shared.release.exec.AbstractMavenExecutor
- All Implemented Interfaces:
MavenExecutor,org.codehaus.plexus.logging.LogEnabled
- Direct Known Subclasses:
ForkedMavenExecutor,InvokerMavenExecutor
public abstract class AbstractMavenExecutor
extends Object
implements MavenExecutor, org.codehaus.plexus.logging.LogEnabled
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.sonatype.plexus.components.cipher.PlexusCipherprivate org.codehaus.plexus.logging.Loggerprivate org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcherWhen this plugin requires Maven 3.0 as minimum, this component can be removed and o.a.m.s.c.SettingsDecrypter be used instead. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenableLogging(org.codehaus.plexus.logging.Logger logger) private StringencryptAndDecorate(String passwd) protected org.apache.maven.settings.SettingsencryptSettings(org.apache.maven.settings.Settings settings) voidexecuteGoals(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) Execute goals using Maven.protected abstract voidexecuteGoals(File workingDirectory, List<String> goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) protected final org.codehaus.plexus.logging.Loggerprotected org.apache.maven.settings.io.xpp3.SettingsXpp3Writerprivate booleanisEncryptedString(String str)
-
Field Details
-
logger
private org.codehaus.plexus.logging.Logger logger -
secDispatcher
@Requirement(role=org.sonatype.plexus.components.sec.dispatcher.SecDispatcher.class, hint="mng-4384") private org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher secDispatcherWhen this plugin requires Maven 3.0 as minimum, this component can be removed and o.a.m.s.c.SettingsDecrypter be used instead. -
cipher
@Requirement private org.sonatype.plexus.components.cipher.PlexusCipher cipher
-
-
Constructor Details
-
AbstractMavenExecutor
protected AbstractMavenExecutor()
-
-
Method Details
-
getLogger
protected final org.codehaus.plexus.logging.Logger getLogger() -
enableLogging
public void enableLogging(org.codehaus.plexus.logging.Logger logger) - Specified by:
enableLoggingin interfaceorg.codehaus.plexus.logging.LogEnabled
-
encryptSettings
protected org.apache.maven.settings.Settings encryptSettings(org.apache.maven.settings.Settings settings) -
encryptAndDecorate
private String encryptAndDecorate(String passwd) throws IllegalStateException, org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException, org.sonatype.plexus.components.cipher.PlexusCipherException - Throws:
IllegalStateExceptionorg.sonatype.plexus.components.sec.dispatcher.SecDispatcherExceptionorg.sonatype.plexus.components.cipher.PlexusCipherException
-
isEncryptedString
-
getSettingsWriter
protected org.apache.maven.settings.io.xpp3.SettingsXpp3Writer getSettingsWriter()