I agree with Jason's comments below. We need to be careful when upgrading the Maven prerequisite for plugins.

As far as I have seen, the number one reason for bumping the prerequisite to Maven 2.0.6 is so that a version of plexus-utils > 1.1 can be used. There can be two reasons for this. Either to get around bugs in plexus-utils 1.1 or to take advantage of new classes. One of these new classes that seems to be used in many places is org.codehaus.plexus.xml.XmlStreamReader.

Would it be at all possible to get a special plexus-utils-extra jar, which is the latest plexus release minus all the classes that came in plexus-utils 1.1? This jar could then be used as a dependency, together with plexus-utils-1.1, for plugins or other components that are only interested in the added classes - not the bug fixes. That way we can stay compatible with older Maven releases.


Jason van Zyl wrote:
That's probably not a good idea as it's a plugin in the default lifecycle which means now that anyone using anything before 2.0.6 is going to get cut off from any improvements.

It's really a policy decision but I think it would be a good idea to try and keep the default lifecycle plugins working as far back to 2.0 as we can. We just have to live with the cruft in this case.

On 22-Feb-08, at 2:25 PM, [EMAIL PROTECTED] wrote:

Author: olamy
Date: Fri Feb 22 14:25:07 2008
New Revision: 630338

URL: http://svn.apache.org/viewvc?rev=630338&view=rev
Log:
upgrade to p-u 1.5
remove duplicated classes from p-u


Removed:
   maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/codehaus/
Modified:
   maven/plugins/trunk/maven-deploy-plugin/pom.xml

Modified: maven/plugins/trunk/maven-deploy-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/pom.xml?rev=630338&r1=630337&r2=630338&view=diff ==============================================================================
--- maven/plugins/trunk/maven-deploy-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-deploy-plugin/pom.xml Fri Feb 22 14:25:07 2008
@@ -30,7 +30,7 @@
  <version>2.4-SNAPSHOT</version>
  <inceptionYear>2004</inceptionYear>
  <prerequisites>
-    <maven>2.0</maven>
+    <maven>2.0.6</maven>
  </prerequisites>
  <issueManagement>
    <system>JIRA</system>
@@ -68,6 +68,11 @@
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-artifact</artifactId>
      <version>2.0.6</version>
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+      <version>1.5</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>



Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

We know what we are, but know not what we may be.

-- Shakespeare



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to