maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r614039 - /maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
Date Mon, 21 Jan 2008 23:03:16 GMT
Author: dkulp
Date: Mon Jan 21 15:03:14 2008
New Revision: 614039

URL: http://svn.apache.org/viewvc?rev=614039&view=rev
Log:
Fix source jar creation

Modified:
    maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java

Modified: maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java?rev=614039&r1=614038&r2=614039&view=diff
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
(original)
+++ maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
Mon Jan 21 15:03:14 2008
@@ -265,7 +265,7 @@
             File file = shadedSourcesArtifactFile();
             if ( file.exists() )
             {
-                artifacts.add( file );
+                sourceArtifacts.add( file );
             }
         }
 
@@ -285,7 +285,7 @@
 
             if (createSourcesJar)
             {
-                shader.shade( artifacts, outputJar, filters, relocators, resourceTransformers
);
+                shader.shade( sourceArtifacts, sourcesJar, filters, relocators, resourceTransformers
);
             }
 
             if ( shadedArtifactAttached )
@@ -386,7 +386,7 @@
                 }
                 catch (IOException ex)
                 {
-                    throw new MojoExecutionException( "Could not replace original artifact
with shaded artifact!" );
+                    throw new MojoExecutionException( "Could not replace original artifact
with shaded artifact!", ex);
                 }
             }
         }



Mime
View raw message