Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails #1

Open
aleist opened this issue May 16, 2019 · 4 comments
Open

Docker build fails #1

aleist opened this issue May 16, 2019 · 4 comments

Comments

@aleist
Copy link

aleist commented May 16, 2019

I tried to build the Docker image, but it fails at

COPY $LOCAL_HOPE_DIR/target/dataturks-1.0-SNAPSHOT.jar $BASE_DIR/dataturks-1.0-SNAPSHOT.jar
because the file is not in the repository.

Looking at the README at the repository root, I saw that it can be built with mvn package -DskipTests. So I modified the Dockerfile to install maven, copy folder hope to the image and then run the mvn build command. Unfortunately, this fails with:

[ERROR] /home/dataturks/hope/src/main/java/dataturks/DataDownloadHandler.java:[17,27] package netscape.javascript does not exist

I haven't had time to look into this problem so far.

Thanks for making this tool open source and free to use, I'd love to give it a try!

@flocreate
Copy link

Hi there,
I got the same issue installing on a raspberry (for testing purpose).
I installed the way described in the main README.md

mvn --version

Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
Maven home: /opt/apache-maven-3.6.1
Java version: 1.8.0_65, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "4.14.79-v7+", arch: "arm", family: "unix"

mvn package -DskipTests

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project dataturks: Compilation failure
[ERROR] /home/pi/Documents/DataTurks-master/hope/src/main/java/dataturks/DataDownloadHandler.java:[17,27] package netscape.javascript does not exist

DataTurks pushed a commit that referenced this issue Jun 20, 2019
@hokreb
Copy link

hokreb commented Jun 20, 2019

I had the same problem like you, I just commented out the import of the netscape package in the DataDownloadHandler.java, then the compiling works :-)

@tommydino93
Copy link

I had the same problem while running the local installation. Following this thread, I managed to solve with:

>> mvn install:install-file -Dfile=/home/newuser/Downloads/openjfx-78-backport-compat-1.8.0.1.jar -DgroupId=net.java.openjfx.backport -DartifactId=openjfx-78-backport-compat -Dversion=1.8.0.1 -Dpackaging=jar

and then adding the dependency to the POM

@Danble
Copy link

Danble commented Oct 20, 2020

I had the same problem while running the local installation. Following this thread, I managed to solve with:

>> mvn install:install-file -Dfile=/home/newuser/Downloads/openjfx-78-backport-compat-1.8.0.1.jar -DgroupId=net.java.openjfx.backport -DartifactId=openjfx-78-backport-compat -Dversion=1.8.0.1 -Dpackaging=jar

and then adding the dependency to the POM

Hello @tommydino93. How do you add the dependency to the pom.xml file? What version do you indicate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants