Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7752

can't download transitive dependencies if there is an expression in the pom

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 4.0.0-alpha-5
    • None
    • None
    • None

    Description

      The released pom has pom.version it in. Works in 3.9.1 and everything 3.x as far as I can tell.

      command to run
      mvn -V org.apache.maven.plugins:maven-dependency-plugin:3.5.0:get -Dartifact=org.apache.tiles:tiles-jsp:2.2.2
      
      log
      [INFO] Scanning for projects...
      [INFO]
      [INFO] -------------------------------------------< org.apache.maven:standalone-pom >--------------------------------------------
      [INFO] Building Maven Stub Project (No POM) 1
      [INFO] ---------------------------------------------------------[ pom ]----------------------------------------------------------
      [INFO]
      [INFO] --- dependency:3.5.0:get (default-cli) @ standalone-pom ---
      [INFO] Resolving org.apache.tiles:tiles-jsp:jar:2.2.2 with transitive dependencies
      [WARNING] The POM for org.apache.tiles:tiles-servlet:jar:${pom.version} is missing, no dependency information available
      [WARNING] The POM for org.apache.tiles:tiles-template:jar:${pom.version} is missing, no dependency information available
      [INFO] --------------------------------------------------------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] --------------------------------------------------------------------------------------------------------------------------
      [INFO] Total time:  10.993 s
      [INFO] Finished at: 2023-03-29T15:07:34-04:00
      [INFO] --------------------------------------------------------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.5.0:get (default-cli) on project standalone-pom: Couldn't download artifact: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.apache.tiles:tiles-servlet:jar:${pom.version} (absent), org.apache.tiles:tiles-template:jar:${pom.version} (absent): org.apache.tiles:tiles-servlet:jar:${pom.version} was not found in https://example.com/maven-proxy/content/groups/all-released during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of asb-repository has elapsed or updates are forced -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
      [ERROR] Re-run Maven using the '-X' switch to enable verbose output
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sellersj Jim Sellers
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: