備忘録

物忘れが酷いので

slim3でmavenを使うときのエラー

[ERROR] Failed to execute goal org.codehaus.mojo:apt-maven-plugin:1.0-alpha-3:process (default) on project mavensample1:
 Execution default of goal org.codehaus.mojo:apt-maven-plugin:1.0-alpha-3:process failed: An API incompatibility was enc
ountered while executing org.codehaus.mojo:apt-maven-plugin:1.0-alpha-3:process: java.lang.VerifyError: Expecting a stac
kmap frame at branch target 17

このようなエラーが発生します。
そこで、pom.xmlのapt-maven-pluginのバージョンを変更します

前
<version>1.0-alpha-3</version>
後
<version>1.0-alpha-5</version>

Google AppEngineが対応していないのであまり関係ありませんがjava8ではtoolsのaptが削除されているためmaven(3.2.3現在)は使えないようです。