JAVA Playframework(1)2.4.x Reinstalled on MAC

Play框架2.4.x重装与项目构建
本文档详细介绍了如何在MAC环境下重新安装并配置Play框架2.4.x,包括设置正确的SBT工具版本,下载并解压sbt文件,将其添加到PATH中。通过使用sbt命令进行项目清理、更新、编译、运行、打包、生成二进制文件和测试等操作。此外,还提供了将项目导入Eclipse的方法。
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/
[2025-06-26T09:42:13,167][INFO ][o.e.x.s.Security ] [node-1] Security is disabled [2025-06-26T09:42:13,357][INFO ][o.e.x.p.ProfilingPlugin ] [node-1] Profiling is enabled [2025-06-26T09:42:13,367][INFO ][o.e.x.p.ProfilingPlugin ] [node-1] profiling index templates will not be installed or reinstalled [2025-06-26T09:42:13,824][INFO ][o.e.t.n.NettyAllocator ] [node-1] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=4mb}] [2025-06-26T09:42:13,842][INFO ][o.e.i.r.RecoverySettings ] [node-1] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b] [2025-06-26T09:42:13,872][ERROR][o.e.b.Elasticsearch ] [node-1] fatal exception while booting Elasticsearchjava.lang.IllegalArgumentException: setting [cluster.initial_master_nodes] is not allowed when [discovery.type] is set to [single-node] at org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.coordination.ClusterBootstrapService.<init>(ClusterBootstrapService.java:85) at org.elasticsearch.server@8.9.0/org.elasticsearch.cluster.coordination.Coordinator.<init>(Coordinator.java:286) at org.elasticsearch.server@8.9.0/org.elasticsearch.discovery.DiscoveryModule.<init>(DiscoveryModule.java:205) at org.elasticsearch.server@8.9.0/org.elasticsearch.node.Node.<init>(Node.java:933) at org.elasticsearch.server@8.9.0/org.elasticsearch.node.Node.<init>(Node.java:334) See logs for more details. ERROR: Elasticsearch did not exit normally - check the logs at /usr/local/elasticsearch-8.9.0/logs/elasticsearch.log ERROR: Elasticsearch exited unexpectedly
06-27
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值