NetKernel Getting Starting - Could not resolve urn.org.netkernel:gradle.plugin

Poster Content
nk4um User
Posts: 69
January 25, 2019 22:15

In order to have NetKernel working correctly from behind a corporate firewall, you need to set appropriate values in the

[install]/etc/kernel.properties
for the properties:

http.proxyHost=...

http.proxyPort=...

Please note that, by default, the properties above are blank.

Like · Post Reply
nk4um User
Posts: 69
January 25, 2019 06:12

Disconnected the VPN. Back into the green again.

Wondering how to make it work from behind a corporate firewall.

wkstncontrols-MacBook-Pro-4:urn.org.netkernel.helloworld s7265323$ gradle installNK deployModuleNK startNK

> Configure project : MODULE TARGET urn.org.netkernel.helloworld-1.1.1 Finished configuring srcStructure

            • Added Official NetKernel Repo********

Adding repo: http://maven.netkernel.org/netkernel-maven Cleaning /Users/s7265323/netkernel/getting-started/module/NKSE-6.2.1/etc/modules.d REMOVING COMPILATION DEPENDENCIES FROM POM for install task .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... ....................................................

> Task :download DOWNLOAD DESTINATION /Users/s7265323/.gradle/netkernel/download/1060-NetKernel-SE-6.2.1.jar Downloading http://apposite.netkernel.org/dist/1060-NetKernel-SE/1060-NetKernel-SE-6.2.1.jar to /Users/s7265323/.gradle/netkernel/download/1060-NetKernel-SE-6.2.1.jar parsing buildfile jar:file:/usr/local/Cellar/gradle/5.1.1/libexec/lib/ant-1.9.13.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/local/Cellar/gradle/5.1.1/libexec/lib/ant-1.9.13.jar!/org/apache/tools/ant/antlib.xml from a zip file Getting: http://apposite.netkernel.org/dist/1060-NetKernel-SE/1060-NetKernel-SE-6.2.1.jar To: /Users/s7265323/.gradle/netkernel/download/1060-NetKernel-SE-6.2.1.jar

.................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... .................................................... ............................... last modified = Fri Aug 03 10:21:52 EDT 2018

> Task :installNK Process to be Executed: -jar, /Users/s7265323/.gradle/netkernel/download/1060-NetKernel-SE-6.2.1.jar .........-----> 25% EXECUTING 15s > Task :startNK Process to be Executed: /Users/s7265323/netkernel/getting-started/module/NKSE-6.2.1/bin/netkernel.sh Waiting for NetKernel to start... ........ BUILD SUCCESSFUL in 26s 4 actionable tasks: 4 executed wkstncontrols-MacBook-Pro-4:urn.org.netkernel.helloworld s7265323$

Like · Post Reply
nk4um User
Posts: 69
January 25, 2019 06:08

Again, behind the corporate firewall via VPN. Another failure this time for the command:

gradle installNK deployModuleNK startNK

wkstncontrols-MacBook-Pro-4:urn.org.netkernel.helloworld s7265323$ gradle installNK deployModuleNK startNK

> Configure project : MODULE TARGET urn.org.netkernel.helloworld-1.1.1 Finished configuring srcStructure

            • Added Official NetKernel Repo********

Adding repo: http://maven.netkernel.org/netkernel-maven Cleaning /Users/s7265323/netkernel/getting-started/module/NKSE-6.2.1/etc/modules.d REMOVING COMPILATION DEPENDENCIES FROM POM for install task

> Task :download DOWNLOAD DESTINATION /Users/s7265323/.gradle/netkernel/download/1060-NetKernel-SE-6.2.1.jar Downloading http://apposite.netkernel.org/dist/1060-NetKernel-SE/1060-NetKernel-SE-6.2.1.jar to /Users/s7265323/.gradle/netkernel/download/1060-NetKernel-SE-6.2.1.jar parsing buildfile jar:file:/usr/local/Cellar/gradle/5.1.1/libexec/lib/ant-1.9.13.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/local/Cellar/gradle/5.1.1/libexec/lib/ant-1.9.13.jar!/org/apache/tools/ant/antlib.xml from a zip file Getting: http://apposite.netkernel.org/dist/1060-NetKernel-SE/1060-NetKernel-SE-6.2.1.jar To: /Users/s7265323/.gradle/netkernel/download/1060-NetKernel-SE-6.2.1.jar Error getting http://apposite.netkernel.org/dist/1060-NetKernel-SE/1060-NetKernel-SE-6.2.1.jar to /Users/s7265323/.gradle/netkernel/download/1060-NetKernel-SE-6.2.1.jar

> Task :download FAILED

FAILURE: Build failed with an exception.

  • What went wrong:

Execution failed for task ':download'. > java.net.ConnectException: Operation timed out (Connection timed out)

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 1m 16s 1 actionable task: 1 executed wkstncontrols-MacBook-Pro-4:urn.org.netkernel.helloworld s7265323$

Like · Post Reply
nk4um User
Posts: 69
January 25, 2019 06:03

Yep, I connected my corporate VPN and I could successfully build the getting started project.

Like · Post Reply
nk4um User
Posts: 69
January 25, 2019 06:01

I've run same gradle build command from same MacOS laptop, now not being behind a corporate firewall. It built successfully.

wkstncontrols-MacBook-Pro-4:urn.org.netkernel.helloworld s7265323$ gradle build

> Configure project : MODULE TARGET urn.org.netkernel.helloworld-1.1.1 Finished configuring srcStructure

            • Added Official NetKernel Repo********

Adding repo: http://maven.netkernel.org/netkernel-maven Cleaning /Users/s7265323/netkernel/getting-started/module/NKSE-6.2.1/etc/modules.d REMOVING COMPILATION DEPENDENCIES FROM POM for install task

> Task :moduleResources JAVA/GROOVY CLASSPATH AT BUILD MODULE urn.org.netkernel.helloworld-1.1.1 IS BUILT

BUILD SUCCESSFUL in 15s 4 actionable tasks: 4 executed wkstncontrols-MacBook-Pro-4:urn.org.netkernel.helloworld s7265323$

Now that I have the netkernel gradle plugin installed in my local I expect my subsequent builds from behind corporate firewall to be successful.

Like · Post Reply
nk4um User
Posts: 69

Hi,

I followed the instructions at http://1060research.com/resources/ Getting Started section. Ensured I have Java 1.8+ and Gradle installed in my system.

I cloned the project https://github.com/1060NetKernel/getting-started and tried to build it.

> gradle build

I got following build error trace:

wkstncontrols-MacBook-Pro-4:urn.org.netkernel.helloworld s7265323$ gradle build

FAILURE: Build failed with an exception.

  • What went wrong:

A problem occurred configuring root project 'urn.org.netkernel.helloworld'. > Could not resolve all artifacts for configuration ':classpath'.

  > Could not resolve urn.org.netkernel:gradle.plugin:[1.1.26,).
    Required by:
        project :
     > Failed to list versions for urn.org.netkernel:gradle.plugin.
        > Unable to load Maven meta-data from http://maven.netkernel.org/netkernel-maven/urn/org/netkernel/gradle.plugin/maven-metadata.xml.
           > Could not get resource 'http://maven.netkernel.org/netkernel-maven/urn/org/netkernel/gradle.plugin/maven-metadata.xml'.
              > Could not GET 'http://maven.netkernel.org/netkernel-maven/urn/org/netkernel/gradle.plugin/maven-metadata.xml'.
                 > Connect to maven.netkernel.org:80 maven.netkernel.org/188.166.140.76 failed: Connection refused (Connection refused)
  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 3s wkstncontrols-MacBook-Pro-4:urn.org.netkernel.helloworld s7265323$

Please note that I'm behind company's firewall. Wondering if that might contribute to the root cause. I will replay same scenario from home to see what happens.

Please note that I installed Gradle using "brew install gradle" on a MacOS High Sierra.

Thanks,

mircea

Like · Post Reply