Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-512

${version} property not recognized in poms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha-1
    • 2.0.0-alpha-2
    • Core
    • None

    Description

      I have the following bit of ivy.xml file, with cargo.version=0.9

      <dependency org="org.codehaus.cargo"
      name="cargo-core-container-geronimo"
      rev="${cargo.version}"
      conf="redist->default"/>
      <dependency org="org.codehaus.cargo"
      name="cargo-core-container-jboss"
      rev="${cargo.version}"
      conf="redist->default"/>
      <dependency org="org.codehaus.cargo"
      name="cargo-core-container-jetty"
      rev="${cargo.version}"
      conf="redist->default"/>
      <dependency org="org.codehaus.cargo"
      name="cargo-core-container-tomcat"
      rev="${cargo.version}"
      conf="redist->default"/>
      <dependency org="org.codehaus.cargo"
      name="cargo-core-container-weblogic"
      rev="${cargo.version}"
      conf="redist->default"/>

      the pom files use ${version} to pass version info around (annoying, I know), and it is causing resolution to fail:

      [ivy:resolve] local: no ivy file nor artifact found for [ org.codehaus.cargo | cargo-core-api-generic | 0.9 ]
      [ivy:resolve] tried ${root.dir}/antbuild/repository/org.codehaus.cargo/cargo-core-api-generic/0.9/cargo-core-api-generic-0.9.xml
      [ivy:resolve] tried ${root.dir}/antbuild/repository/org.codehaus.cargo/cargo-core-api-generic/0.9/cargo-core-api-generic-0.9.jar
      [ivy:resolve] team: no ivy file nor artifact found for [ org.codehaus.cargo | cargo-core-api-generic | 0.9 ]
      [ivy:resolve] tried http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-generic/0.9/cargo-core-api-generic-0.9.pom
      [ivy:resolve] maven2: found md file for [ org.codehaus.cargo | cargo-core-api-generic | 0.9 ]
      [ivy:resolve] => http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-generic/0.9/cargo-core-api-generic-0.9.pom (0.9)
      [ivy:resolve] maven2: downloading http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-generic/0.9/cargo-core-api-generic-0.9.pom
      [ivy:resolve] maven2: downloading http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-generic/0.9/cargo-core-api-generic-0.9.pom.sha1
      [ivy:resolve] sha1 OK for http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-generic/0.9/cargo-core-api-generic-0.9.pom
      [ivy:resolve] found [ org.codehaus.cargo | cargo-core-api-generic | 0.9 ] in maven2
      [ivy:resolve] tried /home/slo/.ivy/local/org.codehaus.cargo/cargo-core-api-container/${version}/ivys/ivy.xml
      [ivy:resolve] tried /home/slo/.ivy/local/org.codehaus.cargo/cargo-core-api-container/${version}/jars/cargo-core-api-container.jar
      [ivy:resolve] local: no ivy file nor artifact found for [ org.codehaus.cargo | cargo-core-api-container | ${version} ]
      [ivy:resolve] tried ${root.dir}/antbuild/repository/org.codehaus.cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.xml
      [ivy:resolve] tried ${root.dir}/antbuild/repository/org.codehaus.cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.jar
      [ivy:resolve] team: no ivy file nor artifact found for [ org.codehaus.cargo | cargo-core-api-container | ${version} ]
      [ivy:resolve] tried http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.pom
      [ivy:resolve] CLIENT ERROR: Not Found url=http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.pom
      [ivy:resolve] tried http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.jar
      [ivy:resolve] CLIENT ERROR: Not Found url=http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.jar
      [ivy:resolve] maven2: no ivy file nor artifact found for [ org.codehaus.cargo | cargo-core-api-container | ${version} ]
      [ivy:resolve] WARN: module not found: [ org.codehaus.cargo | cargo-core-api-container | ${version} ]
      [ivy:resolve] WARN: ==== local: tried
      [ivy:resolve] WARN: /home/slo/.ivy/local/org.codehaus.cargo/cargo-core-api-container/${version}/ivys/ivy.xml
      [ivy:resolve] WARN: – artifact [ org.codehaus.cargo | cargo-core-api-container | ${version} ]/cargo-core-api-container.jar[jar]:
      [ivy:resolve] WARN: /home/slo/.ivy/local/org.codehaus.cargo/cargo-core-api-container/${version}/jars/cargo-core-api-container.jar
      [ivy:resolve] WARN: ==== team: tried
      [ivy:resolve] WARN: ${root.dir}/antbuild/repository/org.codehaus.cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.xml
      [ivy:resolve] WARN: – artifact [ org.codehaus.cargo | cargo-core-api-container | ${version} ]/cargo-core-api-container.jar[jar]:
      [ivy:resolve] WARN: ${root.dir}/antbuild/repository/org.codehaus.cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.jar
      [ivy:resolve] WARN: ==== maven2: tried
      [ivy:resolve] WARN: http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.pom
      [ivy:resolve] WARN: – artifact [ org.codehaus.cargo | cargo-core-api-container | ${version} ]/cargo-core-api-container.jar[jar]:
      [ivy:resolve] WARN: http://www.ibiblio.org/maven2/org/codehaus/cargo/cargo-core-api-container/${version}/cargo-core-api-container-${version}.jar

      Attachments

        Activity

          People

            maartenc Maarten Coene
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: