I was under the impression that this would work for a *project* within my
build, where that project's artifact might be included in generated jar
classpaths, bundled into ears, etc., of other projects.  

But here I'm talking about a *plugin* that participates in the building of
those other projects themselves.  It's not that those other project's
classes, etc., are dependant on the new version of the plugin, but rather
the build process itself is dependent on the new version of the plugin.

Can I still use the SNAPSHOT approach in this case?

Thanks in advance!

..Russ Jubenville

-----Original Message-----
From: Haile, Mussie [mailto:[EMAIL PROTECTED] 
Sent: January 25, 2005 11:21
To: Maven Users List
Subject: RE: Plugin version dependencies?


Why don't you use SNAPSHOT for your Dev and the correct version for your
production? This way, your developers would get the least version of the
build as a SNAPSHOT.

L8r.

-M-




-----Original Message-----
From: Russ Jubenville [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 10:37 AM
To: [email protected]
Subject: Plugin version dependencies?


Is there a way to declare a project's dependency on a specific version of a
Maven (or custom, for that matter) plugin?

For example, assume that I felt the need to modify the jar plugin, which is
currently at version 1.6 in my local repository, so I create a version
1.6.1.  I want developers on the team to automatically get my new version,
but I want the production build to still use the old version.

I envision a declared dependency in my top project's project.xml file,
indicating maven-jar-plugin version 1.6.1, the effect of which would be to
automatically download the new version to developers' machines and use that
version in their builds.  Meanwhile, the old version would remain in the
repository, and since the production build's project.xml would still show
version 1.6, it would continue to use that version for its build.

Any help is greatly appreciated!

..Russ Jubenville

#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal
#####################################################################################

Reply via email to