Freeplane development using Eclipse, IntelliJ and Netbeans

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Freeplane development using Eclipse, IntelliJ and Netbeans

Dimitry Polivaev
Administrator
Hello,

from now on Freeplane can be developed using  Eclipse, IntelliJ and Netbeans. All necessary changes have been pushed to branch 1.7.x . They include changes in gradle build scripts, source code and placement of resource directories.

META-INF/MANIFEST.MF files needed earlier should be manually deleted, they are not required any more.

You can find short instructions at https://www.freeplane.org/wiki/index.php/IDE_setup

Regards,
Dimitry
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

nnako
Hello Dimitry,

I'd like to setup my development environment in order to be able to contribute to Freeplane, again. Some months ago, Felix helped me doing it, but recently, especially the gradle process seems to have changed. When I try to prepare the sources as explained in the Post-Checkout-Preparations of the Git HowTo article within the Freeplane Wiki, I get the following error message (tried it using DOS-SHELL and GIT BASH):

...> gradle clean build cleanEclipse eclipse

Download https://plugins.gradle.org/m2/com/netflix/nebula/gradle-ospackage-plugin/4.4.0/gradle-ospackage-plugin-4.4.0.pom
Download https://plugins.gradle.org/m2/com/bmuschko/gradle-docker-plugin/3.0.1/gradle-docker-plugin-3.0.1.pom

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'freeplane_root'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve org.apache.commons:commons-lang3:3.1.
     Required by:
         :freeplane_root:unspecified > com.netflix.nebula:gradle-ospackage-plugin:4.4.0
      > Could not resolve org.apache.commons:commons-lang3:3.1.
         > Could not get resource 'https://plugins.gradle.org/m2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.pom'.
            > Could not GET 'https://plugins.gradle.org/m2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.pom'.
               > peer not authenticated
   > Could not resolve org.redline-rpm:redline:1.2.5.
     Required by:
         :freeplane_root:unspecified > com.netflix.nebula:gradle-ospackage-plugin:4.4.0
      > Could not resolve org.redline-rpm:redline:1.2.5.
         > Could not get resource 'https://plugins.gradle.org/m2/org/redline-rpm/redline/1.2.5/redline-1.2.5.pom'.
            > Could not GET 'https://plugins.gradle.org/m2/org/redline-rpm/redline/1.2.5/redline-1.2.5.pom'.
               > peer not authenticated
   > Could not resolve org.vafer:jdeb:1.4.
     Required by:
         :freeplane_root:unspecified > com.netflix.nebula:gradle-ospackage-plugin:4.4.0
      > Could not resolve org.vafer:jdeb:1.4.
         > Could not get resource 'https://plugins.gradle.org/m2/org/vafer/jdeb/1.4/jdeb-1.4.pom'.
            > Could not GET 'https://plugins.gradle.org/m2/org/vafer/jdeb/1.4/jdeb-1.4.pom'.
               > peer not authenticated

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

BUILD FAILED

Total time: 21.652 secs


(1) Is there a way to get the source code preparation right using gradle?


My 2nd question circles around the obligation to use the mentioned IDEs (Eclipse, IntelliJ and Netbeans). As I have become a COMMAND LINE and VIM user during the past years, I would rather prefer to use the simple text-based editor VIM. So, I would be happy if I knew what to do when NOT USING the mentioned IDEs but just the DOS or BASH command line and the VIM text editor for text edit, compilation and build. So,

(2) Does anybody know how to compile and build the Freeplane EXECUTABLE without using Eclipse or the other IDEs?


Thanks.
Nnako

Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

nnako
PS: I checked out branch 1.7.x before trying the gradle command.
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

Dimitry Polivaev
Administrator
Hi,

try to pull and run gradle build again.
If it does not work try to upgrade gradle to 4.10

Regards,
Dimitry
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

nnako
Hi, thanks for the support so far.

Unfortunately, BUILD still FAILS.


#
# after pull of branch 1.7.x and gradle execution it says:
#

$ gradle clean build cleanEclipse eclipse

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'freeplane_root'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve org.apache.commons:commons-lang3:3.1.
     Required by:
         :freeplane_root:unspecified > com.netflix.nebula:gradle-ospackage-plugin:4.4.0
      > Could not resolve org.apache.commons:commons-lang3:3.1.
         > Could not get resource 'https://plugins.gradle.org/m2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.pom'.
            > Could not GET 'https://plugins.gradle.org/m2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.pom'.
               > peer not authenticated
   > Could not resolve org.redline-rpm:redline:1.2.5.
     Required by:
         :freeplane_root:unspecified > com.netflix.nebula:gradle-ospackage-plugin:4.4.0
      > Could not resolve org.redline-rpm:redline:1.2.5.
         > Could not get resource 'https://plugins.gradle.org/m2/org/redline-rpm/redline/1.2.5/redline-1.2.5.pom'.
            > Could not GET 'https://plugins.gradle.org/m2/org/redline-rpm/redline/1.2.5/redline-1.2.5.pom'.
               > peer not authenticated
   > Could not resolve org.vafer:jdeb:1.4.
     Required by:
         :freeplane_root:unspecified > com.netflix.nebula:gradle-ospackage-plugin:4.4.0
      > Could not resolve org.vafer:jdeb:1.4.
         > Could not get resource 'https://plugins.gradle.org/m2/org/vafer/jdeb/1.4/jdeb-1.4.pom'.
            > Could not GET 'https://plugins.gradle.org/m2/org/vafer/jdeb/1.4/jdeb-1.4.pom'.
               > peer not authenticated

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

BUILD FAILED

Total time: 7.164 secs


#
# after install of gradle v2.10 it says:
#

$ gradle -v

Welcome to Gradle 4.10.2!

Here are the highlights of this release:
 - Incremental Java compilation by default
 - Periodic Gradle caches cleanup
 - Gradle Kotlin DSL 1.0-RC6
 - Nested included builds
 - SNAPSHOT plugin versions in the `plugins {}` block

For more details see https://docs.gradle.org/4.10.2/release-notes.html


------------------------------------------------------------
Gradle 4.10.2
------------------------------------------------------------

Build time:   2018-09-19 18:10:15 UTC
Revision:     b4d8d5d170bb4ba516e88d7fe5647e2323d791dd

Kotlin DSL:   1.0-rc-6
Kotlin:       1.2.61
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.7.0_17 (Oracle Corporation 23.7-b01)
OS:           Windows 7 6.1 amd64


#
# after gradle command execution it takes some time, but says:
#

$ gradle clean build cleanEclipse eclipse
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Nnamdi\01 - PROJEKTE\Freeplane\_source\freeplane\freeplane\build.gradle' line: 50

* What went wrong:
A problem occurred evaluating project ':freeplane'.
> Could not resolve all files for configuration ':freeplane:runtime'.
   > Could not resolve org.knopflerfish.kf6:framework:8.0.4.
     Required by:
         project :freeplane
      > Could not resolve org.knopflerfish.kf6:framework:8.0.4.
         > Could not get resource 'http://www.knopflerfish.org/releases/6.1.0/maven2/org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom'.
            > Could not GET 'http://www.knopflerfish.org/releases/6.1.0/maven2/org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      > Could not resolve org.knopflerfish.kf6:framework:8.0.4.
         > Could not get resource 'https://oss.jfrog.org/artifactory/oss-snapshot-local/org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom'.
            > Could not GET 'https://oss.jfrog.org/artifactory/oss-snapshot-local/org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom'. Received status code 409 from server:

* 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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 37s


Any further hints?
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

Dimitry Polivaev
Administrator
I am sorry, but I have no idea why your gradle can not download components from standard repository. 

Dimitry
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

Felix Natter
In reply to this post by nnako
"nnako [via Freeplane Developer]" <[hidden email]>
writes:

> Hi, thanks for the support so far.

hi Nnamdi,

this works for me:
$ git clone https://github.com/freeplane/freeplane
$ cd freeplane
$ gradle clean build

$ gradle --version

------------------------------------------------------------
Gradle 3.2.1
------------------------------------------------------------

Build time:   2012-12-21 00:00:00 UTC
Revision:     none

Groovy:       2.4.8
Ant:          Apache Ant(TM) version 1.9.9 compiled on July 22 2018
JVM:          1.8.0_181 (Oracle Corporation 25.181-b13)
OS:           Linux 4.9.0-8-amd64 amd64

Could you please try with a fresh checkout?

Cheers and Best Regards,
--
Felix Natter

Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

nnako
Hi Felix,

thanks for your try.

Even after removing my local repo and cloning it fresh (branch 1.7.x was activated), there seems to be no way for me to build the code base:

$ gradle clean build
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Nnamdi\01 - PROJEKTE\Freeplane\_source\freeplane\freeplane\build.gradle' line: 50

* What went wrong:
A problem occurred evaluating project ':freeplane'.
> Could not resolve all files for configuration ':freeplane:runtime'.
   > Could not resolve org.knopflerfish.kf6:framework:8.0.4.
     Required by:
         project :freeplane
      > Could not resolve org.knopflerfish.kf6:framework:8.0.4.
         > Could not get resource 'http://www.knopflerfish.org/releases/6.1.0/maven2/org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom'.
            > Could not GET 'http://www.knopflerfish.org/releases/6.1.0/maven2/org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      > Could not resolve org.knopflerfish.kf6:framework:8.0.4.
         > Could not get resource 'https://oss.jfrog.org/artifactory/oss-snapshot-local/org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom'.
            > Could not GET 'https://oss.jfrog.org/artifactory/oss-snapshot-local/org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom'. Received status code 409 from server:

* 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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 33s


When I insert the link
https://oss.jfrog.org/artifactory/oss-snapshot-local/org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom
by hand into my browser, I get this JSON answer, which corresponds to gradle's error message:

errors	
0	
status	409
message	"The repository 'oss-snapshot-local' rejected the resolution of an artifact 'oss-snapshot-local:org/knopflerfish/kf6/framework/8.0.4/framework-8.0.4.pom' due to conflict in the snapshot release handling policy."


Any other suggestions? any fallback solution to building with gradle?
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

Dimitry Polivaev
Administrator
For me it looks like wrong computer configuration: global gradle settings or firewall or something else.
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

nnako
Hi again,

I still didn't manage to solve the error. Spent hours on trying to read and understand various possibly related issues. But no success.

Any further hints, where to look in order to find a solution?
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

Felix Natter
hi Nnako,

shall me meet (hangout?) to try to fix this?
I have got hikes this weekend, how about Wednesday?

Cheers and Best Regards,
Felix
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

nnako
Yes, great. Let us meet. You don't use Skype anymore, right? If "hangout" is a messenger, I will install it until Wednesday evening to be able to meet virtually. Thanks

Felix Natter wrote
shall me meet (hangout?) to try to fix this?
I have got hikes this weekend, how about Wednesday?
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

Felix Natter
hi Nnako,

I will try to fix skype, but currently it does not start.
Setting up hangout is simple, just create a google[mail] account, and navigate to https://hangouts.google.com/

Cheers and Best Regards,
Felix
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

Felix Natter
In reply to this post by nnako
hello Nnamdi,

I just reinstalled skype and contacted you.

Cheers and Best Regards,
Felix
Reply | Threaded
Open this post in threaded view
|

Re: Freeplane development using Eclipse, IntelliJ and Netbeans

nnako
Hi Felix,

thank you for your support. Here comes a summary:

The problem seems to have been the BLOCKING OF A RELEVANT site gradle wanted to access by the locally installed firewall / security. For the future, in these cases, users should check any list of blocked addresses accross possibly various security-providing services (Avira,...).

So, the problem disappeared after de-installation of an old JAVA version and installing JAVA v1.8 SDK, which triggered a permission / blocking question again. But now answered properly.

Nnako