プロジェクト再生フレームワーク2.5.4をmaven設定で設定したいと思います。
同時に、私はmavenを使ってwarファイルを生成したいので、 を設定してください。再生フレームワークでMavenを設定する方法2.5.4?
私のプロジェクトをコンパイルしている間、私はそれが
[warn] module not found: com.github.play2war#play2-war-plugin;2.5.4
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/com.github.play2war/play2-war-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.github.play2war/play2-war-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[warn] ==== local: tried
[warn] C:\Users\sarathb\.ivy2\local\com.github.play2war\play2-war-plugin\scala_2.10\sbt_0.13\2.5.4\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/github/play2war/play2-war-plugin_2.10_0.13/2.5.4/play2-war-plugin-2.5.4.pom
[warn] ==== activator-launcher-local: tried
[warn] C:\activator-1.3.10-minimal\repository\com.github.play2war\play2-war-plugin\scala_2.10\sbt_0.13\2.5.4\ivys\ivy.xml
[warn] ==== activator-local: tried
[warn] C:\activator-dist-1.3.10\repository\com.github.play2war\play2-war-plugin\scala_2.10\sbt_0.13\2.5.4\ivys\ivy.xml
[warn] ==== typesafe-releases: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/github/play2war/play2-war-plugin_2.10_0.13/2.5.4/play2-war-plugin-2.5.4.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] http://repo.typesafe.com/typesafe/ivy-releases/com.github.play2war/play2-war-plugin/scala_2.10/sbt_0.13/2.5.4/ivys/ivy.xml
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.github.play2war#play2-war-plugin;2.5.4: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.github.play2war:play2-war-plugin:2.5.4 (scalaVersion=2.10, sbtVersion=0.13)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.github.play2war:play2-war-plugin:2.5.4 (scalaVersion=2.10, sbtVersion=0.13) (C:\play\project\plugins.sbt#L24-25)
[warn] +- default:play-build:0.1-SNAPSHOT (scalaVersion=2.10, sbtVersion=0.13)
とするとき、私のような問題点を示しplugin.sbt
addSbtPlugin("com.github.play2war" % "play2-war-plugin" % "2.5.4")
とbulid.sbt
Play2WarPlugin.play2WarSettings
Play2WarKeys.servletVersion := "3.1"
中にプラグインを追加しましたEclipseでMavenビルドを実行:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/play/app/controllers/UserController.java:[3,20] package javax.inject does not exist
[ERROR] /C:/play/app/controllers/UserController.java:[5,31] package org.apache.commons.mail does not exist
[ERROR] /C:/play/app/controllers/UserController.java:[7,16] package play.mvc does not exist
[ERROR] /C:/play/app/controllers/UserController.java:[8,16] package play.mvc does not exist
[ERROR] /C:/play/app/controllers/UserController.java:[11,37] cannot find symbol
symbol: class Controller
[ERROR] /C:/play/app/services/MailController.java:[3,31] package org.apache.commons.mail does not exist
[ERROR] /C:/play/app/services/MailController.java:[4,31] package org.apache.commons.mail does not exist
[ERROR] /C:/play/app/services/MailController.java:[5,31] package org.apache.commons.mail does not exist
[ERROR] /C:/play/app/services/MailController.java:[7,16] package play.mvc does not exist
[ERROR] /C:/play/app/services/MailController.java:[8,16] package play.mvc does not exist
[ERROR] /C:/play/app/services/MailController.java:[10,37] cannot find symbol
symbol: class Controller
[ERROR] /C:/play/app/controllers/UserController.java:[21,16] cannot find symbol
symbol: class Result
location: class controllers.UserController
[ERROR] /C:/play/app/controllers/UserController.java:[21,38] cannot find symbol
symbol: class EmailException
location: class controllers.UserController
[ERROR] /C:/play/app/services/MailController.java:[13,10] cannot find symbol
symbol: class Result
location: class services.MailController
[ERROR] /C:/play/app/services/MailController.java:[13,36] cannot find symbol
symbol: class EmailException
location: class services.MailController
[ERROR] /C:/play/app/Filters.java:[1,1] package javax.inject does not exist
[ERROR] /C:/play/app/Filters.java:[2,1] package play does not exist
[ERROR] /C:/play/app/Filters.java:[3,16] package play.mvc does not exist
[ERROR] /C:/play/app/Filters.java:[4,17] package play.http does not exist
[ERROR] /C:/play/app/Filters.java:[5,1] package play.mvc does not exist
[ERROR] /C:/play/app/Filters.java:[7,15] cannot access filters.ExampleFilter
bad source file: C:\play\app\filters\ExampleFilter.java
file does not contain class filters.ExampleFilter
Please remove or make sure it appears in the correct subdirectory of the sourcepath.
[ERROR] /C:/play/app/controllers/UserController.java:[15,10] cannot find symbol
symbol: class Inject
location: class controllers.UserController
[INFO] 22 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.981 s
[INFO] Finished at: 2016-06-23T11:27:32+05:30
[INFO] Final Memory: 14M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project play: Compilation failure: Compilation failure:
[ERROR] /C:/play/app/controllers/UserController.java:[3,20] package javax.inject does not exist
[ERROR] /C:/play/app/controllers/UserController.java:[5,31] package org.apache.commons.mail does not exist
[ERROR] /C:/play/app/controllers/UserController.java:[7,16] package play.mvc does not exist
[ERROR] /C:/play/app/controllers/UserController.java:[8,16] package play.mvc does not exist
[ERROR] /C:/play/app/controllers/UserController.java:[11,37] cannot find symbol
[ERROR] symbol: class Controller
[ERROR] /C:/play/app/services/MailController.java:[3,31] package org.apache.commons.mail does not exist
[ERROR] /C:/play/app/services/MailController.java:[4,31] package org.apache.commons.mail does not exist
[ERROR] /C:/play/app/services/MailController.java:[5,31] package org.apache.commons.mail does not exist
[ERROR] /C:/play/app/services/MailController.java:[7,16] package play.mvc does not exist
[ERROR] /C:/play/app/services/MailController.java:[8,16] package play.mvc does not exist
[ERROR] /C:/play/app/services/MailController.java:[10,37] cannot find symbol
[ERROR] symbol: class Controller
[ERROR] /C:/play/app/controllers/UserController.java:[21,16] cannot find symbol
[ERROR] symbol: class Result
[ERROR] location: class controllers.UserController
[ERROR] /C:/play/app/controllers/UserController.java:[21,38] cannot find symbol
[ERROR] symbol: class EmailException
[ERROR] location: class controllers.UserController
[ERROR] /C:/play/app/services/MailController.java:[13,10] cannot find symbol
[ERROR] symbol: class Result
[ERROR] location: class services.MailController
[ERROR] /C:/play/app/services/MailController.java:[13,36] cannot find symbol
[ERROR] symbol: class EmailException
[ERROR] location: class services.MailController
[ERROR] /C:/play/app/Filters.java:[1,1] package javax.inject does not exist
[ERROR] /C:/play/app/Filters.java:[2,1] package play does not exist
[ERROR] /C:/play/app/Filters.java:[3,16] package play.mvc does not exist
[ERROR] /C:/play/app/Filters.java:[4,17] package play.http does not exist
[ERROR] /C:/play/app/Filters.java:[5,1] package play.mvc does not exist
[ERROR] /C:/play/app/Filters.java:[7,15] cannot access filters.ExampleFilter
[ERROR] bad source file: C:\play\app\filters\ExampleFilter.java
[ERROR] file does not contain class filters.ExampleFilter
[ERROR] Please remove or make sure it appears in the correct subdirectory of the sourcepath.
[ERROR] /C:/play/app/controllers/UserController.java:[15,10] cannot find symbol
[ERROR] symbol: class Inject
[ERROR] location: class controllers.UserController
[ERROR] -> [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/MojoFailureException
サンプルコードまたはアイデアをお待ちしています。
大丈夫ですが、再生中2.5.X warファイルを作成したい場合はどうすればいいですか?任意のアイデア.... –
と、Eclipseでmavenを使用してプロジェクトをビルドすると、上記のエラーが表示されます。この解決策のために –
私はプレイ2.5.xのためにそれを行う簡単な方法はないと思います。私が知っているすべてのソリューションは、現在までに最大2.4.xまで再生できます:https://github.com/absurdhero/play-pure-maven-plugin、https://orrsella.com/2014/02/25/インテグレーションプレイフレームワークとメイヴェン/ –