从Play Framework引发战争

编程入门 行业动态 更新时间:2024-10-28 16:26:00
本文介绍了从Play Framework引发战争的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有没有可用于从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)

  • plugins.sbt
  • 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引发战争

    本文发布于:2023-07-11 17:10:13,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1094791.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:战争   Play   Framework

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!