Closed dfrankow closed 5 years ago
This is a known issue with open jdk (https://bugs.openjdk.java.net/browse/JDK-8212233). Looks like you are using openjdk instead of Oracle's java. You can either build the project using jdk 1.8 (instead of 12) or download from complied package from maven central repository: https://search.maven.org/search?q=a:mltk
Right you are!
I ended up having to do this I think:
brew install caskroom/version/java8
brew cask install homebrew/cask-versions/adoptopenjdk8
brew install gpg
I can get the jar, but I want to know how to build it, in case anything has to be fixed.
glad to see everything works!
For my own records: mvn install
actually still didn't work, but for a different reason.
gpg: no default secret key: No secret key
gpg: signing failed: No secret key
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.816 s
[INFO] Finished at: 2019-04-24T13:03:01-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.5:sign (sign-artifacts) on project mltk: Exit code: 2 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
However, I was able to build the jars with mvn test
.
The java world seems to have become somewhat fragile.
Anyway, thanks for your help.
It occurs to me that one way to be more precise about this is to have a Dockerfile that builds the jar. That would very definitely specify the actual dependencies needed and end up with a jar.
I'm not saying you have to do it, just thinking out loud.
I can't repeat your problem. I'm using a clean docker image and build from scratch. gpg
is not installed.
I appreciate you trying.
I am installing on OS X, so I didn't currently try on docker. Just post your Dockerfile here for reference, and don't worry about it unless I come back for more. :)
I'm trying to build on OS X 10.14.4.
brew install cask java
brew install maven
mvn clean package
as directed here.I get this error:
Might just be docs?