Failed to execute goal

I have Macos 14, Intel CPU macbook,

java -version
openjdk version "21.0.1" 2023-10-17 LTS
OpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.1+12 (build 21.0.1+12-LTS, mixed mode)
atlas-mvn -version
Executing: /Applications/Atlassian/atlassian-plugin-sdk-8.2.7/apache-maven-3.5.4/bin/mvn  -gs /Applications/Atlassian/atlassian-plugin-sdk-8.2.7/apache-maven-3.5.4/conf/settings.xml -version
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T21:33:14+03:00)
Maven home: /Applications/Atlassian/atlassian-plugin-sdk-8.2.7/apache-maven-3.5.4
Java version: 21.0.1, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "14.1.1", arch: "x86_64", family: "mac"

And have errors.
[WARNING] CP Don’t override file /Users/admin/Documents/testplugin/fPolls/src/main/resources/META-INF
[WARNING] CP Don’t override file /Users/admin/Documents/testplugin/fPolls/src/main/resources/META-INF/spring
Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:8.1.2:create (default-cli) on project standalone-pom: Unable to execute mojo: Execution null of goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate: java.lang.ExceptionInInitializerError: null

Okay. It was my mistake. It was about JDK version is too new. We should use is marasmatic old version

1 Like