qcastel / github-actions-maven-release

Release your Java application and publish artifacts
129 stars 38 forks source link

Set JAVA_HOME default to /usr/lib/jvm/java-1.8-openjdk/ ? #29

Closed marwin1991 closed 3 years ago

marwin1991 commented 3 years ago

Using this plugin cause a error:

Error: 1,565 [INFO] 13:25:11,563 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.2.0:jar (attach-javadocs) on project keep-changelog-maven-plugin: MavenReportException: Error while generating Javadoc: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set. -> [Help 1]
Error: 1,567 [INFO] 13:25:11,566 [ERROR] 

Maybe default JAVA_HOME should be set, to lower erros and entry level (connected with #28 - high entry level for this action)

qcastel commented 3 years ago

I am not sure to follow you @marwin1991 , are you using this option and it's still not working? https://github.com/qcastel/github-actions-maven-release#sample-repository

marwin1991 commented 3 years ago

No, when I have added it everything wokred fine, but i thougth there is some default

qcastel commented 3 years ago

Currently Java 11 is the default version as it's the current LTS version.

Glad to here that it is now working for you!