5. 問題 - hikarizhen/research-swagger GitHub Wiki
[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.3.27.v20190418:run (default-cli) on project imf-api-server: Execution default-cli of goal org.eclipse.jetty:jetty-maven-plugin:9.3.27.v20190418:run failed: Unable to load the mojo ‘run’ in the plugin ‘org.eclipse.jetty:jetty-maven-plugin:9.3.27.v20190418’ due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/eclipse/jetty/maven/plugin/JettyRunMojo : Unsupported major.minor version 52.0
生成したJarxソースに対して下記のコマンドを実行する。
mvn clean package jetty:run
Jettyを走らせるため、「Java 1.8」の環境は必要です。
java -version
java version “1.7.0_60”
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
Java1.8の環境に切り替えて、無事に解決した。