Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Atlassian SDK - newly created plugin won't build?

Gleb Kartashov
Contributor
April 2, 2020

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?

image.png

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

1 answer

0 votes
Sven Laanela
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 6, 2020

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events