Inkonsistency in handling of properties in distributionManagement
-----------------------------------------------------------------

                 Key: MANTTASKS-96
                 URL: http://jira.codehaus.org/browse/MANTTASKS-96
             Project: Maven 2.x Ant Tasks
          Issue Type: Improvement
    Affects Versions: 2.0.8
         Environment: maven 2.0.7, current trunc version of antrun (2.0.8)
            Reporter: Gerhard Langs


Hello 

I have a  parent pom which defines distributionManagement as follows:

<distributionManagement>
                <snapshotRepository>
                        <uniqueVersion>true</uniqueVersion>
                        <id>${snapshotRepositoryId}</id>
                        <url>${snapshotRepositoryUrl}</url>
                </snapshotRepository>

Note that I use ${xxx} syntax for the values, these values are defined in a 
profile, which is active, and defined in the global settings.xml file:

                <profile>
                        <id>build-linz</id>
                        <properties>
                                <repositoryId>internal</repositoryId>
                                <repositoryUrl>
                                        
dav:http://mpabuild1:12000/px-webapp/dav/internal
                                </repositoryUrl>

this profile is  turned on as an "activeProfile" in my personal settings.xml 
file.

In "normal" maven, these values are correctly resolved.
however, the "deploy" ant task does not, the output during deploy is as follows:

                  [deploy] Deploying to ${snapshotRepositoryUrl}
                [INFO] Retrieving previous build number from 
${snapshotRepositoryId}
                    Class org.apache.maven.wagon.providers.file.FileWagon 
loaded from parent loader (parentFirst)
                      Class org.apache.maven.wagon.providers.file.FileWagon 
loaded from parent loader (parentFirst)
                   Uploading: 
at/co/systema/tests.maven.dir2/3.10-SNAPSHOT/tests.maven.dir2-3.10-20071112.102937-3.jar
                      Uploaded 1K



(came across this issue, when I tried the latests changes, that are related to 
MANTTASKS-80 and 82) - synced the latest trunc-version of antrun.

Thanks, Gerhard


-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to