有没有可用于从Play Framework Project产生战争的插件?
Is there a plugin that can be used to generate war from a Play Framework Project?
c:\>myproject>play war上面提到的
命令会产生战争,但是当部署在Weblogic或Websphere上时,不会部署. 过去曾尝试过,但未能成功完成部署.
Command mentioned above does the war generation but when deployed on Weblogic or Websphere, it does not get deployed. Tried it in the past but was not successful in getting the deployment successful.
推荐答案此页面一定会帮助您了解生成war文件所需的配置... github/play2war/play2-war-plugin/wiki/配置
This page will certainly help you to understand about the configurations required for generating war files... github/play2war/play2-war-plugin/wiki/Configuration
通常,您必须在添加配置的地方进行更改: 1. plugins.sbt(project-root/project/) 2. build.sbt (project-root)
Generally you have to make changes at places for adding configurations: 1. plugins.sbt(project-root/project/) 2. build.sbt (project-root)
addSbtPlugin("com.github.play2war" % "play2-war-plugin" % "1.4-beta1")
build.sbt
build.sbt import com.github.play2war.plugin._ libraryDependencies ++= Seq( "com.github.play2war" % "play2-war_2.9.1" % "0.8.2" # Change version ) Play2WarPlugin.play2WarSettings Play2WarKeys.servletVersion := "2.5" # Change as per your requirement(3.0 or 3.1 etc)
addSbtPlugin("com.github.play2war"%"play2-war-plugin"%"1.4-beta1")
addSbtPlugin("com.github.play2war" % "play2-war-plugin" % "1.4-beta1")
运行[sbt war]
Run [ sbt war]
更多推荐
从Play Framework引发战争
发布评论