Index: src/main/java/org/apache/maven/plugin/jar/AbstractJarMojo.java ===================================================================--- src/main/java/org/apache/maven/plugin/jar/AbstractJarMojo.java (revision 1232405) +++ src/main/java/org/apache/maven/plugin/jar/AbstractJarMojo.java (working copy)
@@ -119,7 +119,17 @@
*/
private boolean useDefaultManifestFile;
+
/**
+ * Set this to <code>Fasle</code> to disable the attach of the
<code>jar</code>.
+ *
+ * @parameter expression="${jar.attach}" default-value="true"
+ *
+ * @since 2.2
+ */
+ private boolean attach;
+
+ /**
* @component
*/
private MavenProjectHelper projectHelper;
@@ -235,11 +245,12 @@
File jarFile = createArchive();
String classifier = getClassifier();
- if ( classifier != null )
+ if ( classifier != null && attach)
{
projectHelper.attachArtifact( getProject(), getType(),
classifier, jarFile );
}
- else
+ else if(attach)
{
getProject().getArtifact().setFile( jarFile );
}
<<attachment: warren_crossing.vcf>>
smime.p7s
Description: S/MIME Cryptographic Signature
