search cancel

Warning messages for some Nexus repositories

book

Article ID: 253140

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio) CA Release Automation Connector

Issue/Introduction

Following warnings appear in the logs :

INFO: Deploying web application directory /opt/CA/ReleaseAutomationServer/webapps/execution
2022-10-05 11:11:52,791+0200 WARN  [ar-4-thread-3] *TASK org.sonatype.nexus.proxy.maven.routing.internal.RemoteContentDiscovererImpl - Remote strategy prefix-file error on M2Repository(id=codehaus-snapshots): java.net.UnknownHostException: nexus.codehaus.org: Name or service not known
2022-10-05 11:12:13,517+0200 WARN  [ar-4-thread-2] *TASK org.sonatype.nexus.proxy.maven.routing.internal.RemoteContentDiscovererImpl - Remote strategy prefix-file error on M2Repository(id=central): org.apache.http.conn.ConnectTimeoutException: Connect to repo1.maven.org:443 [repo1.maven.org/151.101.132.209] failed: connect timed out
2022-10-05 11:12:13,518+0200 WARN  [ar-4-thread-4] *TASK org.sonatype.nexus.proxy.maven.routing.internal.RemoteContentDiscovererImpl - Remote strategy prefix-file error on M2Repository(id=apache-snapshots): org.apache.http.conn.HttpHostConnectException: Connect to repository.apache.org:443 [repository.apache.org/136.243.146.148, repository.apache.org/2a01:4f8:171:1513:0:0:0:2] failed: Network is unreachable (connect failed)

What these repositories are used for?

Environment

Release Automation 6.6, 6.7

Resolution

Following repository are Nexus repositories located on remote storage (used internally by Release Automation for artifact repositories)

codehaus-snapshots  - https://nexus.codehaus.org/snapshots/
Central             - https://repo1.maven.org/maven2/
Apache Snapshots    - https://repository.apache.org/snapshots/

 

codehaus.org has been effectively shut down as an artifact repository since May 2015. It could be removed from Nexus configuration file.

Using following url the configured Nexus repositories could be seen with their contents 
http://localhost:8080/nexus/#view-repositories

 

https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=HDV26d9eOdNINgq7dIJCCg==

 

 


It is possible to remove codehaus-snapshots from nexus.xml
 
1- Edit the file 
ReleaseAutomationServer\sonatype-workexus\confexus.xml
 
2- Remove the repository section for codehaus-snapshots
 
    <repository>
      <id>codehaus-snapshots</id>
   ...
    </repository>
 
3- Restart Nolio service