OHDSI Home | Forums | Wiki | Github

MAVEN Failed to execute goal on project WebAPI

Hello,

I just start my Odyssey by trying to install WebAPI but I am stuck during the Maven build.
I have the following error:

Failed to execute goal on project WebAPI: Could not resolve dependencies for project org.odsi:WebAPI:war:1.0.0-SNAPSHOT: Failed to collect dependencies at org.ohdsi.sql:SqlRender:jar:1.0.0-SNAPSHOT: Failed to read artifact description for org.ohdsi.sql:SqlRender:jar:1.0.0-Snapshot: Could not transfer artifact org.ohdsi.sql:SqlRender:pom:1.0.0-SNAPSHOT from/to ohdsi (http://repo.ohdsi.org:8085/nexus/content/repositories/releases): Software caused connection abort: recv failed

Can anyone help me on this topic ?

Thanks in advance !
Erwan

Ok, I think I have figure out the problem, my server don’t allow me to access to the repo: http://repo.ohdsi.org:8085/nexus/content/repositories/releases

I am not used to MAVEN so would it be possible to manually download the repo and configure maven to use the local file downloaded ?

Regards,
Erwan

Are you attempting to run maven from the command line or are you using an IDE?

I run it from the command line as desccribed in the WebAPI installation guide. Do you recommand using an IDE ?

You should be fine running from the command line and I’m not sure why you are unable to pull the library from the repository. Can you access the following URL from your environment?

http://repo.ohdsi.org:8085/nexus/content/repositories/releases/org/ohdsi/sql/SqlRender/1.0/

I managed to solve my problem.

The thing was that from my environment, I couldn’t access to : http://repo.ohdsi.org:8085/nexus/content/repositories/releases/org/ohdsi/sql/SqlRender/1.0/
Probably because of the firewall.

But I was able from my personal PC so I downloaded the files, put them on my environment and modified the pom.xlm to look for the files locally.

Great, glad to hear you were able to resolve the issue.

t