You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jim Sellers (Jira)" <ji...@apache.org> on 2023/03/30 23:35:00 UTC

[jira] [Comment Edited] (MNG-7752) can't download transitive dependencies if there is an expression in the pom

    [ https://issues.apache.org/jira/browse/MNG-7752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17707069#comment-17707069 ] 

Jim Sellers edited comment on MNG-7752 at 3/30/23 11:34 PM:
------------------------------------------------------------

Understandable about staying on 3.x for old dependencies. Have quite a few projects stuck on JEE 6 and the vendor has support until 2030. Been trying to move those off for years. :-(

No warning for 3.9.1 or anything before that that I saw. [~michael-o]

{code}
 mvn -V org.apache.maven.plugins:maven-dependency-plugin:3.5.0:get -Dartifact=org.apache.tiles:tiles-jsp:2.2.2
Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
Maven home: /usr/local/Cellar/maven/3.9.1/libexec
Java version: 19.0.2, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/19.0.2/libexec/openjdk.jdk/Contents/Home
Default locale: en_CA, platform encoding: UTF-8
OS name: "mac os x", version: "11.7.4", arch: "x86_64", family: "mac"
[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
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.119 s
[INFO] Finished at: 2023-03-30T19:30:45-04:00
[INFO] ------------------------------------------------------------------------
{code}


was (Author: sellersj):
Understandable about staying on 3.x for old dependencies. Have quite a few projects stuck on JEE 6 and the vendor has support until 2030. Been trying to move those off for years. :-(

No warning for 3.9.1 or anything before that that I saw.

{code}
 mvn -V org.apache.maven.plugins:maven-dependency-plugin:3.5.0:get -Dartifact=org.apache.tiles:tiles-jsp:2.2.2
Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
Maven home: /usr/local/Cellar/maven/3.9.1/libexec
Java version: 19.0.2, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/19.0.2/libexec/openjdk.jdk/Contents/Home
Default locale: en_CA, platform encoding: UTF-8
OS name: "mac os x", version: "11.7.4", arch: "x86_64", family: "mac"
[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
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.119 s
[INFO] Finished at: 2023-03-30T19:30:45-04:00
[INFO] ------------------------------------------------------------------------
{code}

> can't download transitive dependencies if there is an expression in the pom
> ---------------------------------------------------------------------------
>
>                 Key: MNG-7752
>                 URL: https://issues.apache.org/jira/browse/MNG-7752
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 4.0.0-alpha-5
>         Environment: Apache Maven 4.0.0-alpha-5 (26d10a4bf9a2df75feef60da01d8706f2bf77a47)
> Maven home: /mnt/c/users/sellersj/Downloads/apache-maven-4.0.0-alpha-5
> Java version: 17.0.6, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64
> Default locale: en, platform encoding: UTF-8
> OS name: "linux", version: "5.10.16.3-microsoft-standard-wsl2", arch: "amd64", family: "unix"
>            Reporter: Jim Sellers
>            Priority: Major
>
> The released pom has {{pom.version}} it in. Works in 3.9.1 and everything 3.x as far as I can tell.
> {code:title=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
> {code}
> {code:title=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
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)