How to use apache commons.net library?

Hello, I’m trying to use the apache library “commons.net” in the project properties -> Advanced -> core module -> here with the selected compile option click: commons-net: commons-net:3.5, to reconstruct Gradle I see download the library but when trying to use it from Idea with an import. import org.apache.commons.net * not getting it. I’m forgetting ?. I have also noticed Idea displays the following message:
Unindexed remote maven repositories found. Disable …
The following repositories used in your projects Gradle Were not indexed yet:
https://repo.cuba-platform.com/content/groups/work
If you want to use dependency completion These repositories for artifacts,
Open Repositories List, select required repositories and press “Update” button (show balloon).
But when you click update continue to show error.
Greetings and thanks.

Hello,
I have tried to do the following steps with the latest release of Studio. Everything works well - ‘Import’ succeeds.

  1. Create a new project or open existent.
  2. Open “project properties” on the “advanced” tab.
  3. Add new “commons-net:commons-net:3.5”(without spaces!) to dependencies of the core module
  4. Apply changes. After that Studio should start “Clean Assemble Idea” tasks automatically
  5. Wait until tasks completed
  6. Open the project in Idea
  7. Import the org.apache.common.net.* to some classes in the core - module.

Rostislav thanks, I followed your steps one by one but still does not recognize the library in IDEA, these are the messages in Cuba Studio:
[12: 19: 57,066] Cleaning, building and creating / updating IDE project files
[12: 19: 57,367] Changes have been saved
: Connectoctopus-core: clean
: Connectoctopus-Global: clean
: Connectoctopus-gui: clean
: Connectoctopus-web: clean
: Connectoctopus-core: assembleDbScripts
: Connectoctopus-core: dbScriptsArchive
: Connectoctopus-Global: compileJavaNote: Some input files use unchecked or unsafe operations.
Note: Recompile With -Xlint: unchecked for details.
: Connectoctopus-Global: Enhance
: Connectoctopus-Global: processResources
: Connectoctopus-Global: classes
: Connectoctopus-Global: jar
: Connectoctopus-core: compileJava UP-TO-DATE
: Connectoctopus-core: processResources
: Connectoctopus-core: classes
: Connectoctopus-core: jar
: Connectoctopus-core: sourceJar
: Connectoctopus-core: assemble
: Connectoctopus-Global: sourceJar
: Connectoctopus-Global: assemble
: Connectoctopus-gui: compileJava UP-TO-DATE
: Connectoctopus-gui: processResources
: Connectoctopus-gui: classes
: Connectoctopus-gui: jar
: Connectoctopus-gui: sourceJar
: Connectoctopus-gui: assemble
: Connectoctopus-web: compileJava
: Connectoctopus-web: processResources
: Connectoctopus-web: classes
: Connectoctopus-web: jar
: Connectoctopus-web: sourceJar
: Connectoctopus-web: WebArchive
: Connectoctopus-web: assemble
: ideaModule
: ideaProject
: ideaWorkspace
:idea
: Connectoctopus-core: ideaModule
: Connectoctopus-core: Idea
: Connectoctopus-Global: ideaModule
: Connectoctopus-Global: Idea
: Connectoctopus-gui: ideaModule
: Connectoctopus-gui: Idea
: Connectoctopus-web: ideaModule
: Connectoctopus-web: Idea
BUILD SUCCESSFUL
Total time: 6.452 secs
[12: 25: 55,452] Changes have been saved

And also:
05/19/2016 12: 16: 07.085 DEBUG [org.gradle.tooling.GradleConnector] Connecting from consumer version 2.6 API tooling
19/05/2016 12: 16: 11,304 DEBUG [org.gradle.tooling.GradleConnector] Connecting from consumer version 2.6 API tooling
05/19/2016 12: 16: 27.918 INFO [com.haulmont.studio.backend.w] Closing Project {name = ‘ConnectOctopus’}
19/05/2016 12: 16: 27,920 INFO [com.haulmont.studio.backend.q.a] Sending usage statistics
19/05/2016 12: 16: 28,092 INFO [hsqldb.db.HSQLDB545348A456.ENGINE] Database closed
19/05/2016 12: 17: 08.544 INFO [com.haulmont.studio.server.a] CUBA Studio v.2.1.2 built on 12/04/2016 15:47:31
19/05/2016 12: 17: 10,280 WARN [com.haulmont.studio.server.launcher.AppStartWindow] javaHomeTextField TextField = [id = javaHomeTextField, styleClass = text-input text-field]
05/19/2016 12: 17: 10,280 WARN [com.haulmont.studio.server.launcher.AppStartWindow] main=com.haulmont.studio.server.a@4204a670
05/19/2016 12: 17: 10,280 WARN [com.haulmont.studio.server.launcher.AppStartWindow] main.getConfig () = com.haulmont.studio.server.m@49a0f837
19/05/2016 12: 17: 21.418 DEBUG [org.gradle.tooling.GradleConnector] Connecting from consumer version 2.6 API tooling
05/19/2016 12: 17: 21.934 DEBUG [org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader] Using Gradle distribution from tooling provider 'https://services.gradle.org/distributions/gradle-2.6-bin .zip '
05/19/2016 12: 17: 21,935 DEBUG [org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader] Using tooling provider classpath: [/Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/ant-1.9.3.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/ant-launcher-1.9.3.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/asm-all-5.0.3.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/commons-collections-3.2.1.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/commons-io-1.4.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/commons-lang-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/dom4j-1.6.1.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-base-services-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-base-services-groovy-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-cli-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-core-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-docs-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-launcher-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-messaging-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-model-core-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-model-groovy-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-native-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-open-api-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-resources-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-tooling-api-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-ui-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/gradle-wrapper-2.6.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/groovy-all-2.3.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/guava-jdk5-17.0.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/jansi-1.2.1.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/jarjar-1.3.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/javax.inject-1.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/jaxen-1.1.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/jcip-annotations-1.0.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/jcl-over-slf4j-1.7.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/jna-3.2.7.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/jul-to-slf4j-1.7.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/kryo-2.20.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/log4j-over-slf4j-1.7.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/minlog-1.2.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/native-platform-0.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/native-platform-freebsd-amd64-0.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/native-platform-freebsd-i386-0.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/native-platform-linux-amd64-0.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/native-platform-linux-i386-0.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/native-platform-osx-amd64-0.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/native-platform-osx-i386-0.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/native-platform-windows-amd64-0.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/native-platform-windows-i386-0.10.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/objenesis-1.2.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/reflectasm-1.07-shaded.jar, /Users/Alberto/.gradle/wrapper/dists/gradle-2.6-bin/7og9jkn1p1nxjafu1htp0hhvc/gradle-2.6/lib/slf4j-api-1.7.10.jar]
05/19/2016 12: 17: 24.959 INFO [java.lang.Class] plugins folder not found
05/19/2016 12: 17: 25,080 INFO [org.atmosphere.util.IOUtils] META-INF / services / org.atmosphere.cpr.AtmosphereFramework not found in class loader
05/19/2016 12: 17: 25.164 INFO [org.atmosphere.util.IOUtils] META-INF / services / org.atmosphere.cpr.AtmosphereFramework not found in class loader
05/19/2016 12: 18: 01.113 WARN [com.haulmont.studio.backend.m.q] Unable to find CLOSABLE_BLOCK task for jelasticDeployWar
05/19/2016 12: 18: 01.113 WARN [com.haulmont.studio.backend.m.q] Unable to find CLOSABLE_BLOCK task for jelasticBuildWar
19/05/2016 12: 18: 01.191 INFO [com.haulmont.studio.backend.q.a] Sending usage statistics
19/05/2016 12: 18: 01.212 INFO [com.haulmont.studio.backend.w] Project Opening {name = ‘ConnectOctopus’}
19/05/2016 12: 18: 01.464 INFO [com.haulmont.studio.backend.d.b.e] There is no oracle.jdbc.OracleDriver Oracle driver on CLASSPATH
05/19/2016 12: 18: 01.464 INFO [com.haulmont.studio.backend.d.b.e] There is no MySQL driver on CLASSPATH com.mysql.jdbc.Driver
19/05/2016 12: 18: 05.084 DEBUG [org.gradle.tooling.GradleConnector] Connecting from consumer version 2.6 API tooling
19/05/2016 12: 18: 05.803 DEBUG [org.gradle.tooling.GradleConnector] Connecting from consumer version 2.6 API tooling
19/05/2016 12: 19: 57.374 DEBUG [org.gradle.tooling.GradleConnector] Connecting from consumer version 2.6 API tooling
05/19/2016 12: 31: 06.439 ERROR [org.atmosphere.container.Jetty9WebSocketHandler] {}
java.net.SocketTimeoutException: Timeout on Read
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:541)
at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed (AbstractConnection.java:173)
at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:506)
org.eclipse.jetty.io.AbstractConnection at $ ReadCallback $ 1.run (AbstractConnection.java:582)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:635)
org.eclipse.jetty.util.thread.QueuedThreadPool at $ 3.run (QueuedThreadPool.java:555)
at java.lang.Thread.run (Thread.java:745)

Thanks.