mirkosertic/MogwaiERDesignerNG

How can I Compile this project?

Closed this issue · 8 comments

I Cann't Find :

<parent>
    <groupId>net.sourceforge.mogwai</groupId>
    <artifactId>mogwai-masterpom</artifactId>
    <version>1.1-SNAPSHOT</version>
</parent>

How Did you try to compile it? Which Maven Version did you use?
Here is a log of the latest working build on TracisCI: https://travis-ci.org/mirkosertic/MogwaiERDesignerNG/builds/607244681

I am following the .travis file
I am getting the same results as your latest travis builds
https://travis-ci.org/mirkosertic/MogwaiERDesignerNG/builds/626016302

https://github.com/mirkosertic/MogwaiERDesignerNG/blob/master/.travis.yml#L14

--2019-12-18 10:08:06--  https://download.java.net/java/early_access/jpackage/1/openjdk-14-jpackage+1-64_linux-x64_bin.tar.gz
Resolving download.java.net (download.java.net)... 23.33.228.115
Connecting to download.java.net (download.java.net)|23.33.228.115|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-12-18 10:08:08 ERROR 404: Not Found.

OS: Bionic
Steps I had to do:
Bionic comes with openjdk11 not 12, so when I downloaded the build from here I had the error about that it was compiled with 12 and I had 11.

So I decided to try compiling cloned the repository
and changed
@@ -62,8 +62,8 @@

                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.8.1</version>
                 <configuration>
-                    <source>12</source>
-                    <target>12</target>
+                    <source>11</source>
+                    <target>11</target>
                 </configuration>
             </plugin>

Didnt work.
(at this moment in time I got interested on how to compile Java)
when trying to download java compiler (so I think that I was doing)

sudo add-apt-repository ppa:linuxuprising/java

It does not have 12 anymore (and its commercial license now)
removed that ppa going to other instructions

sudo add-apt-repository ppa:openjdk-r/ppa

(had to install maven also)

Now, this line does not work
https://github.com/mirkosertic/MogwaiERDesignerNG/blob/master/.travis.yml#L14
Therefore there is nothing to unpack
Therefore export JPACKAGE_HOME=./jdk-14 that directory does not exist
So:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  12.219 s
[INFO] Finished at: 2019-12-18T10:28:29-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (jpackage-rpm) on project mogwai-erdesignerng: Command execution failed. Cannot run program "${env.JPACKAGE_HOME}/bin/jpackage" (in directory "/hom

Recap:
Bionic has java 11, travis/trusty you had to install java 12, but you are trying to build with java 14
Then that makes it very complicated to build. (even your travis builds are failing now)

First timer on trying to compile with java, but when I use travis I try not to install anything new from the machine that is being used to build

`

if you give me a hint of what is supposed to be on ./jdk-14
I can do a locate on my computer and export JPACKAGE_HOME to the installed java

jpackage is now part of the JDK-14 EA build, which can be downloaded here:
https://jdk.java.net/14/. I fixed the travis build script and it should compile now.
The ugly part is that Oracle changes the download links from time to time, breaking all builds.

I am the main developer of pgRouting and I want to make a small demo of a design of a postgreSQL/PostGIS/pgRouting database using a GUI.
So for the moment I am going to wait to try your software until I see 14 in this list:
https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa
So that I can do:

sudo apt-get install openjdk-14

Because I can not have a demo that changes because of instability of a company.

ERDesigner uses JPackage to build native installers. However, the software itself is based on OpenJDK12. If you need a working software for a demo, just use one of the published stable binaries available here:

https://github.com/mirkosertic/MogwaiERDesignerNG/releases/tag/3.1.1

to avoid to compile everything by yourself.

Thanks did that for testing, its running now.
just making sure that compilation question is still open.

Closed due to no further user feedback. It is now using OpenJDK14.