maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arami...@apache.org
Subject svn commit: r407769 - /maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java
Date Fri, 19 May 2006 10:55:00 GMT
Author: aramirez
Date: Fri May 19 03:54:59 2006
New Revision: 407769

URL: http://svn.apache.org/viewvc?rev=407769&view=rev
Log:
PR: MDEPLOY-31
Submitted by: Fabian Bauschulte

able to configure description in the generated pom

Modified:
    maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java

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=407769&r1=407768&r2=407769&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
Fri May 19 03:54:59 2006
@@ -23,14 +23,12 @@
 import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
 import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
-import org.apache.maven.execution.MavenSession;
 import org.apache.maven.model.Model;
 import org.apache.maven.model.Parent;
 import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
 import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.project.artifact.ProjectArtifactMetadata;
-import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
 import org.codehaus.plexus.util.IOUtil;
 import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 
@@ -81,6 +79,13 @@
     private String packaging;
 
     /**
+     * Description passed to a generated POM file (in case of generatePom=true)
+     *
+     * @parameter expression="${generatePom.description}"
+     */
+    private String description = "POM was created from deploy:deploy-file";
+
+    /**
      * File to be deployed.
      *
      * @parameter expression="${file}"
@@ -315,7 +320,7 @@
             model.setArtifactId( artifactId );
             model.setVersion( version );
             model.setPackaging( packaging );
-            model.setDescription( "POM was created from deploy:deploy-file" );
+            model.setDescription( description );
 
             fw = new FileWriter( tempFile );
             new MavenXpp3Writer().write( fw, model );



Mime
View raw message