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

Gary D. Gregory edited comment on MNG-6042 at 9/20/21, 5:12 PM:
----------------------------------------------------------------

In my case the problem happens when the parent POM is sought:
{noformat}
13:03:18.83 C:\d3vsrc\git\rocket\access-and-connectivity-agent>mvn -U -V clean 
install assembly:single -V
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Java\apache-maven-3.6.3\bin\..
Java version: 1.8.0_302, vendor: Temurin, runtime: C:\Program Files\Eclipse 
Foundation\jdk-8.0.302.8-hotspot\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
[INFO] Scanning for projects...
Downloading from central: 
https://repo.maven.apache.org/maven2/com/rs/seagull/com.rs.seagull.master/1.0.4/com.rs.seagull.master-1.0.4.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for 
com.rs.seagull.centipede:http-monitor:10.1.2-SNAPSHOT: Could not transfer 
artifact com.rs.seagull:com.rs.seagull.master:pom:1.0.4 from/to 
artifactory-release (${rs.repo}/rocket-maven-release-local): Cannot access 
${rs.repo}/rocket-maven-release-local with type default using the available 
connector factories: BasicRepositoryConnectorFactory and 'parent.relativePath' 
points at wrong local POM @ line 16, column 11
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.rs.seagull.centipede:http-monitor:10.1.2-SNAPSHOT 
(C:\d3vsrc\git\rocket\access-and-connectivity-agent\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for 
com.rs.seagull.centipede:http-monitor:10.1.2-SNAPSHOT: Could not transfer 
artifact com.rs.seagull:com.rs.seagull.master:pom:1.0.4 from/to 
artifactory-release (${rs.repo}/rocket-maven-release-local): Cannot access 
${rs.repo}/rocket-maven-release-local with type default using the available 
connector factories: BasicRepositoryConnectorFactory and 'parent.relativePath' 
points at wrong local POM @ line 16, column 11: Cannot access 
${rs.repo}/rocket-maven-release-local using the registered transporter 
factories: WagonTransporterFactory: Unsupported transport protocol -> [Help 2]
[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 full debug logging.
[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/ProjectBuildingException
[ERROR] [Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
{noformat}
So this might be restricted to resolving the parent POM only. Our company's 
parent POM of course will not be in [https://repo.maven.apache.org/maven2]. We 
have three custom repos listed first in our POM before the Apache Snapshot repo 
like the one in error above: ${rs.repo}/rocket-maven-release-local

(I don't have karma to reopen this ticket)


was (Author: garydgregory):
In my case the problem happens when the parent POM is sought:
{noformat}
13:03:18.83 C:\d3vsrc\git\rocket\access-and-connectivity-agent>mvn -U -V clean 
install assembly:single -V
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\Java\apache-maven-3.6.3\bin\..
Java version: 1.8.0_302, vendor: Temurin, runtime: C:\Program Files\Eclipse 
Foundation\jdk-8.0.302.8-hotspot\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
[INFO] Scanning for projects...
Downloading from central: 
https://repo.maven.apache.org/maven2/com/rs/seagull/com.rs.seagull.master/1.0.4/com.rs.seagull.master-1.0.4.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for 
com.rs.seagull.centipede:http-monitor:10.1.2-SNAPSHOT: Could not transfer 
artifact com.rs.seagull:com.rs.seagull.master:pom:1.0.4 from/to 
artifactory-release (${rs.repo}/rocket-maven-release-local): Cannot access 
${rs.repo}/rocket-maven-release-local with type default using the available 
connector factories: BasicRepositoryConnectorFactory and 'parent.relativePath' 
points at wrong local POM @ line 16, column 11
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.rs.seagull.centipede:http-monitor:10.1.2-SNAPSHOT 
(C:\d3vsrc\git\rocket\access-and-connectivity-agent\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for 
com.rs.seagull.centipede:http-monitor:10.1.2-SNAPSHOT: Could not transfer 
artifact com.rs.seagull:com.rs.seagull.master:pom:1.0.4 from/to 
artifactory-release (${rs.repo}/rocket-maven-release-local): Cannot access 
${rs.repo}/rocket-maven-release-local with type default using the available 
connector factories: BasicRepositoryConnectorFactory and 'parent.relativePath' 
points at wrong local POM @ line 16, column 11: Cannot access 
${rs.repo}/rocket-maven-release-local using the registered transporter 
factories: WagonTransporterFactory: Unsupported transport protocol -> [Help 2]
[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 full debug logging.
[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/ProjectBuildingException
[ERROR] [Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
{noformat}
So this might be restricted to resolving the parent POM only. Our company's 
parent POM of course will not be in https://repo.maven.apache.org/maven2. We 
have three custom repos listed first in our POM before the Apache Snapshot repo 
like the one in error above: ${rs.repo}/rocket-maven-release-local


> Properties defined in POM>properties are not resolved in POM 
> repositories>repository>url
> ----------------------------------------------------------------------------------------
>
>                 Key: MNG-6042
>                 URL: https://issues.apache.org/jira/browse/MNG-6042
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.3.9, 3.6.3
>         Environment: Apache Maven 3.3.9 
> (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
> Maven home: E:\Java\apache-maven-3.3.9
> Java version: 1.7.0_79, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_79\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary D. Gregory
>            Priority: Major
>
> Properties defined in POM>properties are not resolved in POM 
> repositories>repository>url.
> For example:
> {code:xml}
>   ...
>   <properties>
>     ...
>     <rs.repo>http://example.com/artifactory</rs.repo>
>   </properties>
>   <repositories>
>     <repository>
>       <id>artifactory-libs</id>
>       <url>${rs.repo}/libs-release-local</url>
>     </repository>
>    ...
>   </repositories>
>   ...
> {code}
> This will give me errors showing {{$\{rs.repo\}/libs-release-local}} instead 
> of the resolved property.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to