Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-95

Inkonsistency in handling of properties in distributionManagement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.8
    • None
    • None
    • None
    • maven 2.0.7, current trunc version of antrun (2.0.8)

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              pgier Paul Gier
              gerhard6 Gerhard Langs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: