Hi All,
I am trying to build a Spring Boot application that depends on SqlRender (version 1.19.4) using the OHDSI Maven repository.
The build works fine on my local machine, but it consistently fails when running inside GitHub Actions with a connection timeout error. It seems like the OHDSI Nexus repository might be blocking requests from GitHub’s runner IP addresses.
The Error:
PlaintextError: Failed to execute goal on project Eos: Could not collect dependencies for project org.bih:Eos:jar:0.0.1-SNAPSHOT Error: Failed to read artifact descriptor for org.ohdsi.sql:SqlRender:jar:1.19.4 Error: Caused by: The following artifacts could not be resolved: org.ohdsi.sql:SqlRender:pom:1.19.4 (absent): Could not transfer artifact org.ohdsi.sql:SqlRender:pom:1.19.4 from/to ohdsi (https://repo.ohdsi.org/nexus/content/repositories/releases): Connect to repo.ohdsi.org:443 [repo.ohdsi.org/52.1.141.8] failed: Connect timed out
My Configuration: I have the repository configured in my pom.xml as follows:
<dependency> <groupId>org.ohdsi.sql</groupId> <artifactId>SqlRender</artifactId> <version>1.19.4</version> </dependency>
<repositories> <repository> <id>ohdsi</id> <name>repo.ohdsi.org</name> <url>https://repo.ohdsi.org/nexus/content/repositories/releases</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories>
What I have tried so far:
- Validated that the URL is accessible via browser and local curl.
- Verified that
SqlRender1.19.4 exists in the repository. - The error specifically says
Connect timed outrather than404 Not Found, suggesting a network/firewall issue rather than a configuration error.
Has anyone else experienced a similar issue when building using OHDSI tools on GitHub Actions? Is there a recommended workaround or mirror to use for CI/CD pipelines?
Thanks in advance for any help!