Class PropertiesReleaseDescriptorStore
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore
- All Implemented Interfaces:
ReleaseDescriptorStore, org.codehaus.plexus.logging.LogEnabled
@Component(role=ReleaseDescriptorStore.class,
hint="properties")
public class PropertiesReleaseDescriptorStore
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ReleaseDescriptorStore
Read and write release configuration and state from a properties file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 TypeMethodDescriptionvoiddelete(ReleaseDescriptor config) Remove a configuration.private StringencryptAndDecorate(String passwd) private static FilegetDefaultReleasePropertiesFile(ReleaseDescriptor mergeDescriptor) private voidprocessResolvedDependencies(Properties prop, Map<String, ReleaseStageVersions> resolvedDependencies) read(ReleaseDescriptorBuilder mergeDescriptor) Read a configuration.read(ReleaseDescriptorBuilder mergeDescriptor, File file) voidwrite(ReleaseDescriptor config) Save a configuration.voidwrite(ReleaseDescriptorBuilder.BuilderReleaseDescriptor config, File file) Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
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.
-
-
Constructor Details
-
PropertiesReleaseDescriptorStore
public PropertiesReleaseDescriptorStore()
-
-
Method Details
-
read
- Throws:
ReleaseDescriptorStoreException
-
processResolvedDependencies
private void processResolvedDependencies(Properties prop, Map<String, ReleaseStageVersions> resolvedDependencies) -
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