Re: Use of ${version_num} in dependency?

2004-11-20 Thread Jason van Zyl
On Fri, 2004-11-19 at 19:47, Barry Kaplan wrote: Jason van Zyl wrote: ... will serve as model builds for best practices wrt Maven usage. Any chance you can post a summary of what you intend to do. I intend to once I get closer to the final solution. There is a tag I want to add, and a

RE: Use of ${version_num} in dependency?

2004-11-19 Thread STRAYER, JON \(SBCSI\)
It seems that using SNAPSHOT in an override doesn't work. Is that a bug or a feature? :-) you will need to put it into project.properties for that to work. However, there is a built in mechanism for that: jar overrides. in project.properties: maven.jar.override=on

Use of ${version_num} in dependency?

2004-11-18 Thread Barry Kaplan
If I did in maven.xml: ant:property file=version-info.properties/ And then in project.xml: dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version${commons_logging_version}/version /dependency Should this work? The dependency

Re: Use of ${version_num} in dependency?

2004-11-18 Thread Brett Porter
you will need to put it into project.properties for that to work. However, there is a built in mechanism for that: jar overrides. in project.properties: maven.jar.override=on maven.jar.commons-logging=1.0.4 Cheers, Brett On Thu, 18 Nov 2004 18:27:55 -0500, Barry Kaplan [EMAIL PROTECTED] wrote:

Re: Use of ${version_num} in dependency?

2004-11-18 Thread Barry Kaplan
Brett Porter wrote: you will need to put it into project.properties for that to work. Seems that project.properties is not inherited to multiprojects (no?). So this approach will not work for sharing version numbers across all the subprojects. -- barry kaplan [EMAIL PROTECTED]

Re: Use of ${version_num} in dependency?

2004-11-18 Thread Barry Kaplan
Brett Porter wrote: It is inherited wherever project.xml is. I copied the project.properties (container the version numbers) down to the subproject. The ${..} were still not used in downloading the jar. The attempt to download looked something like: Attempting to download commons-logging-.jar.

Re: Use of ${version_num} in dependency?

2004-11-18 Thread Brett Porter
I'd highly recommend using the JAR override mechanism I mentioned as it is properly supported by more plugins. Regards, Brett On Thu, 18 Nov 2004 22:37:57 -0500, Barry Kaplan [EMAIL PROTECTED] wrote: Brett Porter wrote: It is inherited wherever project.xml is. I copied the

Re: Use of ${version_num} in dependency?

2004-11-18 Thread Barry Kaplan
Brett Porter wrote: It is inherited wherever project.xml is. Yes, of course you are correct. What is not inherited is 'project.propeties' :-) Thanks Brett! All works great now. -- barry kaplan [EMAIL PROTECTED] - To unsubscribe,

Re: Use of ${version_num} in dependency?

2004-11-18 Thread Brett Porter
I'm not sure what you mean: project.properties IS inherited as long as project.xml is. What version of Maven are you using? - Brett On Thu, 18 Nov 2004 22:49:20 -0500, Barry Kaplan [EMAIL PROTECTED] wrote: Brett Porter wrote: It is inherited wherever project.xml is. Yes, of course you are

Re: Use of ${version_num} in dependency?

2004-11-18 Thread Barry Kaplan
Brett Porter wrote: I'm not sure what you mean: project.properties IS inherited as long as project.xml is. 'project.propeties' :-) project.properties I had a typo. I just switched to the jar overrides, and its perfect. I'll let the activemq and geronimo guys know. They were using entities for