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 2020/12/08 20:01:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17246121#comment-17246121 ] 

Michael Osipov commented on MNG-6457:
-------------------------------------

Please see MNG-7046.

> 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
>             Fix For: wontfix-candidate
>
>
> 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.3.4#803005)