LoginSignup
2
0

More than 3 years have passed since last update.

AliViewをUbuntuでコンパイルする時のエラーメッセージを回避する

Last updated at Posted at 2021-04-30

AliViewという名前のfasta等の配列を閲覧できる素敵なソフトウェアがあります。

このソフトウェアをソースコードからコンパイルしようとすると、以下のメッセージが出ることがあります。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project AliView: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] エラー: ソース・オプション5は現在サポートされていません。6以降を使用してください。
[ERROR] エラー: ターゲット・オプション1.5は現在サポートされていません。1.6以降を使用してください。

このメッセージは、pom.xml の設定で、OpenJDKのバージョンを変更することで回避することができます。
具体的には、下記のように <source><target> を 1.6 以降に変更します。

--- a/pom.xml
+++ b/pom.xml
@@ -58,8 +58,8 @@
         <artifactId>maven-compiler-plugin</artifactId>
         <version>2.0.2</version>
         <configuration>
-          <source>1.5</source>
-          <target>1.5</target>
+          <source>1.6</source>
+          <target>1.6</target>
        </configuration>
      </plugin>
      <plugin>

これにより、無事に最後までコンパイルが成功します。

jdkのバージョンを1.6にするプルリクエストを出してみました。もしもそのプルリクエストがマージされたら、このページのtipsは要らなくなるかも知れません。

この記事は以上です。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0