0
Answered

Not able to build ICE project

Vasanth Jaisingh 10 years ago in OpenICE updated 10 years ago 4
I get the following error while running gradlew command.

Please help..

Where:
uild file 'D:\OpenICE\mdpnp-code\data-types\x73-idl-rti-dds\build.gradle' line:
72

What went wrong:
problem occurred evaluating project ':data-types:x73-idl-rti-dds'.
Could not resolve all dependencies for configuration ':data-types:x73-idl-rti-
ds:rtiddsgen'.
> Could not resolve com.rti.dds:rtiddsgen-resource:5.1.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/com/
ti/dds/rtiddsgen-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/com/r
i/dds/rtiddsgen-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/com/r
i/dds/rtiddsgen-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/com/rti/dds/rtiddsgen
resource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/com/rti/dds/rtidd
gen-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/com/rti/dds/rtidds
en-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/com/rti/dds/rtiddsgen-resource/5
1/rtiddsgen-resource-5.1.pom'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/com/rti/dds/rtiddsgen-re
ource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/com/rti/dds/rtiddsgen-resou
ce/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to http://repo1.maven.org refused
> Could not resolve com.rti.dds:rtiddsgen:5.1.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/com/
ti/dds/rtiddsgen/5.1/rtiddsgen-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/com/r
i/dds/rtiddsgen/5.1/rtiddsgen-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/com/r
i/dds/rtiddsgen/5.1/rtiddsgen-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/com/rti/dds/rtiddsgen
5.1/rtiddsgen-5.1.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/com/rti/dds/rtidd
gen/5.1/rtiddsgen-5.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/com/rti/dds/rtidds
en/5.1/rtiddsgen-5.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/com/rti/dds/rtiddsgen/5.1/rtidds
en-5.1.pom'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/com/rti/dds/rtiddsgen/5.
/rtiddsgen-5.1.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/com/rti/dds/rtiddsgen/5.1/r
iddsgen-5.1.pom'.
> Connection to http://repo1.maven.org refused
> Could not resolve org.anarres:cpp-bin:1.2.8-SNAPSHOT.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Unable to load Maven meta-data from https://build.openice.info/artifacto
y/libs-snapshot/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/o
g/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to https://build.openice.info refused
> Unable to load Maven meta-data from https://build.openice.info/artifacto
y/libs-release/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://build.openice.info/artifactory/libs-release/or
/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to https://build.openice.info refused
> Unable to load Maven meta-data from https://build.openice.info/artifacto
y/remote-repos/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://build.openice.info/artifactory/remote-repos/or
/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to https://build.openice.info refused
> Unable to load Maven meta-data from http://www.sparetimelabs.com/maven2/
rg/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://www.sparetimelabs.com/maven2/org/anarres/cpp-bi
/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to http://www.sparetimelabs.com refused
> Unable to load Maven meta-data from http://maven2.javacv.googlecode.com/
it/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://maven2.javacv.googlecode.com/git/org/anarres/cp
-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Network is unreachable: connect
> Unable to load Maven meta-data from http://www.jogamp.org/deployment/mav
n/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://www.jogamp.org/deployment/maven/org/anarres/cpp
bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Network is unreachable: connect
> Unable to load Maven meta-data from http://maven.restlet.org/org/anarres
cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://maven.restlet.org/org/anarres/cpp-bin/1.2.8-SNA
SHOT/maven-metadata.xml'.
> Connection to http://maven.restlet.org refused
> Unable to load Maven meta-data from http://download.java.net/maven/2/org
anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://download.java.net/maven/2/org/anarres/cpp-bin/1
2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to http://download.java.net refused
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/an
rres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/anarres/cpp-bin/1.2.
-SNAPSHOT/maven-metadata.xml'.
> Connection to http://repo1.maven.org refused
> Could not resolve xalan:xalan:2.7.1.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/xala
/xalan/2.7.1/xalan-2.7.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/xalan
xalan/2.7.1/xalan-2.7.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/xalan
xalan/2.7.1/xalan-2.7.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/xalan/xalan/2.7.1/xal
n-2.7.1.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/xalan/xalan/2.7.1
xalan-2.7.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/xalan/xalan/2.7.1/
alan-2.7.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/xalan/xalan/2.7.1/xalan-2.7.1.po
'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/xalan/xalan/2.7.1/xalan-
.7.1.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/xalan/xalan/2.7.1/xalan-2.7
1.pom'.
> Connection to http://repo1.maven.org refused
> Could not resolve org.antlr:antlr:3.5.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/org/
ntlr/antlr/3.5/antlr-3.5.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/org/a
tlr/antlr/3.5/antlr-3.5.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/org/a
tlr/antlr/3.5/antlr-3.5.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/org/antlr/antlr/3.5/a
tlr-3.5.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/org/antlr/antlr/3
5/antlr-3.5.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/org/antlr/antlr/3.
/antlr-3.5.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/org/antlr/antlr/3.5/antlr-3.5.po
'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/org/antlr/antlr/3.5/antl
-3.5.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/org/antlr/antlr/3.5/antlr-3
5.pom'.
> Connection to http://repo1.maven.org refused
> Could not resolve org.aspectj:aspectjrt:1.7.2.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/org/
spectj/aspectjrt/1.7.2/aspectjrt-1.7.2.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/org/a
pectj/aspectjrt/1.7.2/aspectjrt-1.7.2.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/org/a
pectj/aspectjrt/1.7.2/aspectjrt-1.7.2.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/org/aspectj/aspectjrt
1.7.2/aspectjrt-1.7.2.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/org/aspectj/aspec
jrt/1.7.2/aspectjrt-1.7.2.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/org/aspectj/aspect
rt/1.7.2/aspectjrt-1.7.2.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/org/aspectj/aspectjrt/1.7.2/aspe
tjrt-1.7.2.pom'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/org/aspectj/aspectjrt/1.
.2/aspectjrt-1.7.2.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/org/aspectj/aspectjrt/1.7.2
aspectjrt-1.7.2.pom'.
> Connection to http://repo1.maven.org refused

Try:
un with --stacktrace option to get the stack trace. Run with --info or --debug
ption to get more log output.

UILD FAILED

otal time: 21 mins 33.581 secs

Answer

Answer
Answered
Hi Vasanth,

You can create a gradle.properties in your home directory that specifies your HTTP proxy information.  More information is available at this link: https://gradle.org/docs/current/userguide/build_environment.html#sec:accessing_the_web_via_a_proxy

Please let us know if that information helps you to build successfully.

Cheers
Jeff Plourde
Under review
Hi Vasanth Jaisingh,

Thanks for your interest in the project.  Did you have access to the internet when you attempted the build?  There are numerous dependencies that gradle necessarily acquires as part of the build.  They get cached locally for subsequent builds but the first time you build they need to be retrieved from the internet.  Can you try the build with internet connectivity?  Specifically the build host in question must be able to connect at least to https://build.openice.info/artifactory.

Thank you
Jeff Plourde
Hi Jeff,

Thanks for your swift response.
I do have internet connectivity in my build machine.
I am able to access the URL mentioned above using my browser from the build machine but not sure why I am not able to connect through gradle.

I access Internet through a proxy server. Does that cause an issue?

Regards
Vasanth
Answer
Answered
Hi Vasanth,

You can create a gradle.properties in your home directory that specifies your HTTP proxy information.  More information is available at this link: https://gradle.org/docs/current/userguide/build_environment.html#sec:accessing_the_web_via_a_proxy

Please let us know if that information helps you to build successfully.

Cheers
Jeff Plourde
Hi Jeff,

Setting the proxy information worked.
Thanks !

Vasanth