JAVA Playframework(1)2.4.x Reinstalled on MAC

本文档详细介绍了如何在MAC环境下重新安装并配置Play框架2.4.x,包括设置正确的SBT工具版本,下载并解压sbt文件,将其添加到PATH中。通过使用sbt命令进行项目清理、更新、编译、运行、打包、生成二进制文件和测试等操作。此外,还提供了将项目导入Eclipse的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

JAVA Playframework(1)2.4.x Reinstalled on MAC

Welcome back to Playframework. I used that 3 years or 4 years ago for 3 years when I was in Digby. That is good days in Austin, USA.

I need to read this because one of my old project is using playframework 2.4.6, sbt.version=0.13.8
https://www.playframework.com/documentation/2.4.x/Installing

Install the right version of SBT tool
https://www.scala-sbt.org/download.html
https://bintray.com/sbt/native-packages/sbt/0.13.8
Download the sbt file and unzip in working directory, add to PATH.

Run this in my Playfromework project
> sbt sbtVersion
[info] 0.13.8

Build my older project
> sbt clean update compile

Run the Project
> sbt run

Import the project into Eclipse
https://github.com/sbt/sbteclipse
> sbt eclipse

Build the binary of the Project
> sbt package

Generate the binary zip file
> sbt dist

Run tests
> sbt test

Run a single test
> sbt "testOnly unitTest.TimingTest"


Reference:
https://www.playframework.com/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值