Thanks, Peter. If I set maven.final.name in project.properties, how do
I selectively override it? My example left out the conditional logic
in an attempt to illustrate my problem, but what I'm trying to do is
this:

  o Developers use jar:install-snapshot to install new snapshots in
    their local repository. This will create jars with the usual
    timestamp-based name.

  o Our official, automated build uses a goal in maven.xml that
    changes the final jar name to one that is based on a build number,
    then invokes jar:deploy-snapshot to deploy the build to our
    company repository. 

So I only want to change maven.final.name for a specific goal. What's
confusing me is that when I do change the property in maven.xml, it
looks OK in the pre and post goals, but not the main jar:jar goal
itself.

Is there a better way to accomplish what I'm trying to do?

  Jeff

On Mon, 8 Dec 2003, at 07:32:23 [GMT +0000] [EMAIL PROTECTED] wrote:

> Hi Jeff,

> On Sun, Dec 07, 2003 at 10:51:14PM -0600, Jefferson K. French wrote:
>> When I set the value of maven.final.name in a jar:jar preGoal, it has
>> the correct value there and in the jar:jar postGoal. But for some
>> reason it contains an earlier value in the jar:jar goal.
>> 
>> I've put echo tags in a few pre/post goals, as well as a couple in the
>> jar plugin's plugin.jelly file to show the value of maven.final.name
>> at various points. I set the property in maven.xml like this:
>> 
>>   <preGoal name="jar:jar">
>>     <j:set var="maven.final.name" value="${pom.artifactId}-${mdbRelease}"/>
>>     <echo>jar:jar preGoal: maven.final.name=${maven.final.name}</echo>
>>   </preGoal>
>> 
>> Any idea what I could be doing wrong?

> You need to set maven.final.name in the project.properties file (as you know, at the 
> same directory level as your current project.xml).

> Peter

-- 
mailto:[EMAIL PROTECTED]



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

Reply via email to