私はmavenを使っていくつかのJavaクラスをコンパイルしています。クラスの 1 つに annotation( @Override
) があるため、実行するmvn compile
とエラーが発生します。
annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
@Override
annotations are not supported in -source 1.3
(use -source 5 or higher to enable annotations)
@Override
私のシステムの Java バージョンは jdk 1.6.29 ですが、このエラーを理解できません。したがって、mavenが使用しているjdkバージョンを確認して、おそらく変更する方法があります。または、他の解決策はありますか?ありがとう。