Author: bentmann
Date: Thu Mar 19 21:53:13 2009
New Revision: 756227
URL: http://svn.apache.org/viewvc?rev=756227&view=rev
Log:
[MDEPLOY-52] deploy-file doesn't support updateReleaseInfo
Modified:
maven/plugins/trunk/maven-deploy-plugin/src/it/external-release-jar/test.properties
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
Modified:
maven/plugins/trunk/maven-deploy-plugin/src/it/external-release-jar/test.properties
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/it/external-release-jar/test.properties?rev=756227&r1=756226&r2=756227&view=diff
==============================================================================
---
maven/plugins/trunk/maven-deploy-plugin/src/it/external-release-jar/test.properties
(original)
+++
maven/plugins/trunk/maven-deploy-plugin/src/it/external-release-jar/test.properties
Thu Mar 19 21:53:13 2009
@@ -1,3 +1,4 @@
file = test-0.1.jar
pomFile = test-0.1.pom
url = file:///${basedir}/target/repo
+updateReleaseInfo = true
Modified:
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java?rev=756227&r1=756226&r2=756227&view=diff
==============================================================================
---
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
(original)
+++
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
Thu Mar 19 21:53:13 2009
@@ -23,8 +23,6 @@
import org.apache.maven.artifact.factory.ArtifactFactory;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
/**
* @version $Id$
@@ -50,10 +48,14 @@
* @readonly
*/
private ArtifactRepository localRepository;
-
- public abstract void execute()
- throws MojoExecutionException, MojoFailureException;
-
+
+ /**
+ * Parameter used to update the metadata to make the artifact as release.
+ *
+ * @parameter expression="${updateReleaseInfo}" default-value="false"
+ */
+ protected boolean updateReleaseInfo;
+
/* Setters and Getters */
public ArtifactDeployer getDeployer()
Modified:
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java?rev=756227&r1=756226&r2=756227&view=diff
==============================================================================
---
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java
(original)
+++
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java
Thu Mar 19 21:53:13 2009
@@ -249,6 +249,11 @@
}
}
+ if ( updateReleaseInfo )
+ {
+ artifact.setRelease( true );
+ }
+
try
{
getDeployer().deploy( file, artifact, deploymentRepository,
getLocalRepository() );
Modified:
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java?rev=756227&r1=756226&r2=756227&view=diff
==============================================================================
---
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
(original)
+++
maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
Thu Mar 19 21:53:13 2009
@@ -102,13 +102,6 @@
private List attachedArtifacts;
/**
- * Parameter used to update the metadata to make the artifact as release.
- *
- * @parameter expression="${updateReleaseInfo}" default-value="false"
- */
- private boolean updateReleaseInfo;
-
- /**
* Contextualized.
*/
private PlexusContainer container;