You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ca...@apache.org on 2008/03/19 00:24:40 UTC
svn commit: r638635 -
/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java
Author: carlos
Date: Tue Mar 18 16:24:40 2008
New Revision: 638635
URL: http://svn.apache.org/viewvc?rev=638635&view=rev
Log:
[MECLIPSE-405] Allow configuration of stripQualifier
Submitted by: Apaar Trivedi
Modified:
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java
Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java?rev=638635&r1=638634&r2=638635&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java Tue Mar 18 16:24:40 2008
@@ -140,6 +140,17 @@
* @component
*/
protected InputHandler inputHandler;
+
+ /**
+ * Strip qualifier (fourth token) from the plugin version. Qualifiers are for eclipse plugin the equivalent of
+ * timestamped snapshot versions for Maven, but the date is maintained also for released version (e.g. a jar for the
+ * release <code>3.2</code> can be named <code>org.eclipse.core.filesystem_1.0.0.v20060603.jar</code>. It's
+ * usually handy to not to include this qualifier when generating maven artifacts for major releases, while it's
+ * needed when working with eclipse integration/nightly builds.
+ *
+ * @parameter expression="${stripQualifier}" default-value="false"
+ */
+ private boolean stripQualifier;
/**
* Specifies a remote repository to which generated artifacts should be deployed to. If this property is specified,
@@ -476,7 +487,7 @@
protected String osgiVersionToMavenVersion( String version )
{
- return osgiVersionToMavenVersion( version, null, false );
+ return osgiVersionToMavenVersion( version, null, stripQualifier );
}
/**