You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/12/29 21:53:00 UTC
[jira] [Closed] (MNG-6457) Resolving repository with an environment variable substitution fails when a parent pom needs to be looked up
[ https://issues.apache.org/jira/browse/MNG-6457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MNG-6457.
-------------------------------
Fix Version/s: (was: wontfix-candidate)
Resolution: Won't Fix
MNG-7046 has been implemented and this won't be addressed on purpose.
> Resolving repository with an environment variable substitution fails when a parent pom needs to be looked up
> ------------------------------------------------------------------------------------------------------------
>
> Key: MNG-6457
> URL: https://issues.apache.org/jira/browse/MNG-6457
> Project: Maven
> Issue Type: Bug
> Components: Artifacts and Repositories
> Affects Versions: 3.3.3, 3.5.2
> Environment: ubuntu 18.04, also with windows 10
> Reporter: Martin Knoller Stocker
> Priority: Major
>
> Having a repository entry with a environment variable substitution like
>
> {code:java}
> <repositories>
> <repository>
> <id>company-java-libs</id>
> <url>https://packagecloud.io/priv/${env.PACKAGECLOUD_JAVA_LIBS_READ_TOKEN}/company/java-libs/maven2</url>
> <releases>
> <enabled>true</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> </repositories>
> {code}
> and a parent entry that is not present in your local repository
> {code:java}
> <parent>
> <groupId>company</groupId>
> <artifactId>a-parent-module</artifactId>
> <version>1.0.0</version>
> <relativePath/> <!-- lookup parent from repository -->
> </parent>
> {code}
> produces a parsing error when running maven commands:
> {code:java}
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [ERROR] Non-resolvable parent POM for __current_project_version__: Could not transfer artifact company:a-parent-module:pom:1.0.0 in company-java-libs from/to company-java-libs (https://packagecloud.io/priv/${env.PACKAGECLOUD_JAVA_LIBS_READ_TOKEN}/company/java-libs/maven2): Illegal character in path at index 30: https://packagecloud.io/priv/${env.PACKAGECLOUD_JAVA_LIBS_READ_TOKEN}/company/java-libs/maven2/__path__
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)