How to increase socket read timeout on cuba?

Project build is failing because of read time out error. When i checked maven metatdata.xml is taking around 2 minutes to load. How can we increase the read timeout time?

Download http://xxx/nexus/xx/cuba-group/com/haulmont/addon/emailtemplates/yet-web/1.0.0/yet-web-1.0.0.pom
Download http:xxx/nexus/xxx/cuba-group/com/haulmont/addon/grapesjs/grapesjs-web/0.1.7/grapesjs-web-0.1.7.pom
-web:buildScssThemes FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:project-web:buildScssThemes’.

Could not resolve all dependencies for configuration ‘:project-web:compile’.
Could not resolve com.haulmont.cuba:cuba-client:6.10.9.
Required by:
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-gui:6.10.9
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-rest-api:6.10.9
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-idp:6.10.9
Skipped due to earlier error
Could not resolve com.fasterxml.jackson.core:jackson-databind:2.9.8.
Required by:
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-rest-api:6.10.9
Skipped due to earlier error
Could not resolve com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8.
Required by:
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-rest-api:6.10.9
Skipped due to earlier error
Could not resolve org.springframework.security:spring-security-core:4.2.7.RELEASE.
Required by:
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-rest-api:6.10.9
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-idp:6.10.9
Skipped due to earlier error
Could not resolve org.springframework.security:spring-security-web:4.2.7.RELEASE.
Required by:
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-rest-api:6.10.9
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-idp:6.10.9
Skipped due to earlier error
Could not resolve org.springframework.security:spring-security-config:4.2.7.RELEASE.
Required by:
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-rest-api:6.10.9
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-idp:6.10.9
Skipped due to earlier error
Could not resolve org.springframework.security.oauth:spring-security-oauth2:2.1.2.RELEASE.
Required by:
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-rest-api:6.10.9
Skipped due to earlier error
Could not resolve io.swagger:swagger-models:1.5.21.
Required by:
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.haulmont.cuba:cuba-rest-api:6.10.9
Skipped due to earlier error
Could not resolve com.vaadin.external.slf4j:vaadin-slf4j-jdk14:1.6.1.
Required by:
project :project-web > com.haulmont.cuba:cuba-web:6.10.9 > com.vaadin.external.atmosphere:atmosphere-runtime:2.2.13.vaadin1.cuba1
Skipped due to earlier error
Could not resolve org.webjars.npm:underscore:[1.9.1,2).
Required by:
project :project-web > com.haulmont.addon.grapesjs:grapesjs-web:0.1.7 > org.webjars.npm:grapesjs:0.14.50
Could not resolve org.webjars.npm:underscore:[1.9.1,2).
Failed to list versions for org.webjars.npm:underscore.
Unable to load Maven meta-data from http://xxxx/nexus/content/groups/cuba-group/org/webjars/npm/underscore/maven-metadata.xml.
Could not get resource ‘http://xxxx/nexus/xxx/webjars/npm/underscore/maven-metadata.xml’.
Could not GET ‘http://xxx/nexus/xxx/webjars/npm/underscore/maven-metadata.xml’.
Read timed out
Could not resolve org.webjars.npm:backbone:[1.3.3,2).
Required by:
project :project-web > com.haulmont.addon.grapesjs:grapesjs-web:0.1.7 > org.webjars.npm:grapesjs:0.14.50
Skipped due to earlier error
Could not resolve org.webjars.npm:codemirror-formatting:[1.0.0,2).
Required by:

image

not able to resolve the following

grapejs.web, yet-web, cuba-web-themes, grapejs-web-themes, yet-web-themes

Hi,
Unless you are intentionally using very slow internet connection, I suppose that the problem is the “read timeout” itself, not lack of the way to increase it. 2 minute response time is impossible to work with.

As you are masking the repository host name, I understand you are using non-standard artifact repository.
I would:

  1. check internet connection and availability of the artifact repository from your address.
  2. check that artifact repository’s health is OK