The following comment has been added to this issue:

     Author: Oliver Noelle
    Created: Mon, 8 Sep 2003 11:51 AM
       Body:
> You understand that ant property doesn't change a variable if it's > already set, 
> right?

> > => How does maven handle properties that get set multiple times 
> > during one maven run.
> By using j:set, not ant:property

Okay, this explains it.

But then why does the deploy-plugin in beta 10 (sorry, haven't checked the HEAD 
version) use an ant:property for setting the resolvedDirectory like this:

<j:choose>
        <j:when test="${typeX != 'X'}">
          <ant:property
            name="resolvedDirectory"
            value="${siteDirectory}/${pom.artifactDirectory}/${type}"
          />
        </j:when>
        <j:otherwise>
          <ant:property 
            name="resolvedDirectory" 
            value="${siteDirectory}/${pom.artifactDirectory}"
          />
        </j:otherwise>
      </j:choose>


This also explains the wrong behaviour in beta 10, when two goals call the deploy 
plugin in one maven run (as for "maven jar:deploy dist:deploy").

Maybe it is fixed in HEAD, if not, please open this issue again as it is a rather 
annoying and superflous bug.


---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-636


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-636
    Summary: distributions get deployed in the "jars" directory
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: CANNOT REPRODUCE

 Time Spent: Unknown
  Remaining: 4 hours

    Project: maven
 Components: 
             plugin-dist
   Fix Fors:
             1.0-rc1

   Assignee: 
   Reporter: Oliver Noelle

    Created: Thu, 31 Jul 2003 7:38 AM
    Updated: Tue, 19 Aug 2003 6:26 PM
Environment: apparently appeared in beta-8, beta-9, beta-10

Description:
Calling maven with the following goals in that order

maven jar:deploy dist:deploy

results in the distribution files getting deployed in the "jars" directory of the 
project instead of the "distributions" directory.

Swapping the order seems to work as expected.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to