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.PlexusCipher
private org.codehaus.plexus.logging.Logger
private org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher
When 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 TypeMethodDescriptionvoid
enableLogging
(org.codehaus.plexus.logging.Logger logger) private String
encryptAndDecorate
(String passwd) protected org.apache.maven.settings.Settings
encryptSettings
(org.apache.maven.settings.Settings settings) void
executeGoals
(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) Execute goals using Maven.protected abstract void
executeGoals
(File workingDirectory, List<String> goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult result) protected final org.codehaus.plexus.logging.Logger
protected org.apache.maven.settings.io.xpp3.SettingsXpp3Writer
private boolean
isEncryptedString
(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:
enableLogging
in 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:
IllegalStateException
org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException
org.sonatype.plexus.components.cipher.PlexusCipherException
-
isEncryptedString
-
getSettingsWriter
protected org.apache.maven.settings.io.xpp3.SettingsXpp3Writer getSettingsWriter()