exKAZUu/AIChallenge2018AtCodeFestival

Build Failure

Closed this issue · 2 comments

Battle2048/how-to-develop.mdの通りmavenを実行しましたがエラーが発生します

環境

  • Ubuntu 18.04 on Windows Subsystem Linux
  • openjdk 10.0.2 2018-07-17
  • maven 3.6.0

$ mvn exec:java
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< net.exkazuu:Battle2048 >-----------------------
[INFO] Building Battle2048 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:java (default-cli) @ Battle2048 ---
[WARNING]
java.lang.ClassNotFoundException: net.exkazuu.battle2048.Main
at java.net.URLClassLoader.findClass (URLClassLoader.java:466)
at java.lang.ClassLoader.loadClass (ClassLoader.java:566)
at java.lang.ClassLoader.loadClass (ClassLoader.java:499)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:270)
at java.lang.Thread.run (Thread.java:844)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.316 s
[INFO] Finished at: 2018-11-10T11:11:22Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project Battle2048: An exception occured while executing the Java class. net.exkazuu.battle2048.Main -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

@primenumber すみません、ドキュメントに誤りがありました 🙇 正しくは以下のコマンドの実行が必要です。

mvn compile
mvn exec:java

その他、多少加筆修正をしましたので、 https://github.com/exKAZUu/AIChallenge2018AtCodeFestival/blob/master/Battle2048/how-to-develop.md を改めて御覧ください。

ありがとうございます。
ビルド成功しました。