org.apache.maven.shared.release.phase
Class CheckDependencySnapshotsPhase

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.shared.release.phase.AbstractReleasePhase
          extended by org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase
All Implemented Interfaces:
ReleasePhase, org.codehaus.plexus.logging.LogEnabled

public class CheckDependencySnapshotsPhase
extends AbstractReleasePhase

Check the dependencies of all projects being released to see if there are any unreleased snapshots.

Author:
Brett Porter
Plexus component:
role:
"org.apache.maven.shared.release.phase.ReleasePhase"
role-hint:
"check-dependency-snapshots"

Field Summary
static String RESOLVE_SNAPSHOT_MESSAGE
           
static String RESOLVE_SNAPSHOT_PROMPT
           
static String RESOLVE_SNAPSHOT_TYPE_MESSAGE
           
static String RESOLVE_SNAPSHOT_TYPE_PROMPT
           
 
Fields inherited from interface org.apache.maven.shared.release.phase.ReleasePhase
ROLE
 
Constructor Summary
CheckDependencySnapshotsPhase()
           
 
Method Summary
 ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<MavenProject> reactorProjects)
          Execute the phase.
 void setPrompter(org.codehaus.plexus.components.interactivity.Prompter prompter)
           
 ReleaseResult simulate(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<MavenProject> reactorProjects)
          Simulate the phase, but don't make any changes to the project.
 
Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleasePhase
clean, execute, getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn, simulate
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOLVE_SNAPSHOT_MESSAGE

public static final String RESOLVE_SNAPSHOT_MESSAGE
See Also:
Constant Field Values

RESOLVE_SNAPSHOT_PROMPT

public static final String RESOLVE_SNAPSHOT_PROMPT
See Also:
Constant Field Values

RESOLVE_SNAPSHOT_TYPE_MESSAGE

public static final String RESOLVE_SNAPSHOT_TYPE_MESSAGE
See Also:
Constant Field Values

RESOLVE_SNAPSHOT_TYPE_PROMPT

public static final String RESOLVE_SNAPSHOT_TYPE_PROMPT
See Also:
Constant Field Values
Constructor Detail

CheckDependencySnapshotsPhase

public CheckDependencySnapshotsPhase()
Method Detail

execute

public ReleaseResult execute(ReleaseDescriptor releaseDescriptor,
                             ReleaseEnvironment releaseEnvironment,
                             List<MavenProject> reactorProjects)
                      throws ReleaseExecutionException,
                             ReleaseFailureException
Description copied from interface: ReleasePhase
Execute the phase.

Parameters:
releaseDescriptor - the configuration to use
releaseEnvironment - the environmental configuration, such as Maven settings, Maven home, etc.
reactorProjects - the reactor projects
Returns:
the release result
Throws:
ReleaseExecutionException - an exception during the execution of the phase
ReleaseFailureException - a failure during the execution of the phase

simulate

public ReleaseResult simulate(ReleaseDescriptor releaseDescriptor,
                              ReleaseEnvironment releaseEnvironment,
                              List<MavenProject> reactorProjects)
                       throws ReleaseExecutionException,
                              ReleaseFailureException
Description copied from interface: ReleasePhase
Simulate the phase, but don't make any changes to the project.

Parameters:
releaseDescriptor - the configuration to use
releaseEnvironment - the environmental configuration, such as Maven settings, Maven home, etc.
reactorProjects - the reactor projects
Returns:
the release result
Throws:
ReleaseExecutionException - an exception during the execution of the phase
ReleaseFailureException - a failure during the execution of the phase

setPrompter

public void setPrompter(org.codehaus.plexus.components.interactivity.Prompter prompter)


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.