You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by dk...@apache.org on 2008/01/22 00:03:16 UTC
svn commit: r614039 -
/maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
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);
}
}
}