deploy or
@@ -88,18 +85,6 @@ public class PerformReleaseMojo
@Parameter( defaultValue = "false", property = "localCheckout" )
private boolean localCheckout;
- /**
- * The SCM username to use.
- */
- @Parameter( property = "username" )
- private String username;
-
- /**
- * The SCM password to use.
- */
- @Parameter( property = "password" )
- private String password;
-
/**
* When cloning a repository if it should be a shallow clone or a full clone.
*/
@@ -125,23 +110,6 @@ public class PerformReleaseMojo
@Parameter( defaultValue = "false", property = "dryRun" )
private boolean dryRun;
- /**
- * Add a new or overwrite the default implementation per provider.
- * The key is the scm prefix and the value is the role hint of the
- * {@link org.apache.maven.scm.provider.ScmProvider}.
- *
- * @since 2.5.3
- * @see ScmManager#setScmProviderImplementation(String, String)
- */
- @Parameter
- private MapStub for a MavenProject with a flat structure.
- * + * *TODO: shouldn't need to do this, but the "stub" in the harness just throws away values you set. * Just overriding the ones I need for this plugin.
* @@ -40,7 +40,7 @@ */ public class FlatMultiModuleMavenProjectStub extends org.apache.maven.plugin.testing.stubs.MavenProjectStub -{ +{ public void setDistributionManagement( DistributionManagement distributionManagement ) { getModel().setDistributionManagement( distributionManagement ); @@ -57,46 +57,57 @@ public Model getModel() return model; } + @Override + public Model getOriginalModel() { + Model originalModel = super.getOriginalModel(); + if ( originalModel == null ) + { + originalModel = new Model(); + setOriginalModel( originalModel ); + } + return originalModel; + } + public DistributionManagement getDistributionManagement() { return getModel().getDistributionManagement(); } - + public List