鉴于 repo https://github.com/jersey/jersey本地克隆:
在 /examples
中构建和运行演示需要什么 maven 命令?
我的假设是您应该能够克隆存储库并让所有示例正常工作,而无需更改任何 *.pom
文件中的任何内容。那是对的吗?
最佳答案
是的,您不需要编辑任何内容。请按照以下步骤操作:
git clone git@github.com:jersey/jersey.git
cd Jersey
mvn clean install -DskipTests
cd examples/helloworld-webapp/
mvn clean compile exec:java
- 打开:http://localhost:8080/helloworld-webapp/helloworld
如果你不喜欢构建不稳定的前沿,你可以检查一个发布标签:
1.1(在克隆之后,或稍后在父目录中):git checkout tags/2.22.2
其他步骤相同
关于java - 使用 Maven 运行 Jersey 示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36238215/