Herokuは触ったことがない初心者です。
###やりたいこと
自分のGitHubにあるJava(Servlet/JSP)のリポジトリをHerokuで動かすことができれば、最新のコミットの動作をスマホでも簡単に確認できていいなと思って、Herokuに手を出してみました。
###やったこと とぶつかった問題
0. Deployment methodは「GitHub」を選んで、
0. リポジトリを選んで、
0. masterで「Deploy Branch」を押しました。
初回は「Javaだと分かりませんでした。pom.xmlを入れてください」的なエラーが来たので
0. 試しに空のpom.xmlをルートに追加して再度「Deploy Branch」を押したら、
今度は、「pom.xmlの中身が空です」的なエラーが帰ってきたので、
###今解決したいこと
pom.xmlの中にdependenciesを書かなければならないと思うのですが、
これを自動的に書いてくれるツールはありますか?
###Build Log
念のためにBuild Logを載せておきます:
-----> Java app detected -----> Installing OpenJDK 1.8... done -----> Installing Maven 3.3.9... done -----> Executing: mvn -DskipTests clean dependency:list install [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-readable POM /tmp/build_cf5aa5c3574d17684754707f4e60e9d4/hmmrjn-unipo-e707e03/pom.xml: input contained no data @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project (/tmp/build_cf5aa5c3574d17684754707f4e60e9d4/hmmrjn-unipo-e707e03/pom.xml) has 1 error [ERROR] Non-readable POM /tmp/build_cf5aa5c3574d17684754707f4e60e9d4/hmmrjn-unipo-e707e03/pom.xml: input contained no data [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/ProjectBuildingException ! ERROR: Failed to build app with Maven We're sorry this build is failing! If you can't find the issue in application code, please submit a ticket so we can help: https://help.heroku.com/ ! Push rejected, failed to compile Java app. ! Push failed
あなたの回答
tips
プレビュー