Hi!
I'm not sure if this question belongs here but I recently installed Atlassian SDK and found this guide on creating a test plugin: https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-helloworld-plugin-project/
But for some reason it won't build?
Error reads "no compiler" but in the next CLI line you can see Java compiler version, meaning it exists and is installed correctly.
Software used:
Windows Server 2012 6.3 build 9600
OpenJDK8U-jdk_x64_windows_hotspot_8u242b08
Atlassian SDK 8.0.16
Jira SD Server 4.7.1
Hi Gleb,
Thanks so much for your question.
Can you please verify if your JAVA_HOME environment variable points to a JDK rather than a JRE? Maven uses the java version from the JAVA_HOME variable instead of the one from your PATH. You can see which java version is used by maven by running mvn -version on the command line. See this StackOverflow post for more info: https://stackoverflow.com/questions/15279586/java-home-in-maven
If you would prefer to keep the JAVA_HOME as is, then you can also update the maven-compiler-plugin configuration in the plugin pom.xml file to use the JDK by following instructions here: https://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html
Thank you,
Sven
Jira Service Desk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.