sách gpt4 ai đã đi

Triển khai Maven: làm thế nào để hạn chế chỉ triển khai các hiện vật? (môi trường đa mô-đun)

In lại 作者:行者123 更新时间:2023-12-03 16:55:31 28 4
mua khóa gpt4 Nike

我有一个包含两个模块的项目:客户端和服务器。在父 pom.xml 中,我添加了部署阶段的信息,以便部署到本地目录:


4.0.0
org.my
myTest
0.1
pom
myTest

server
client





myRepo
file:myDeployDir





Khi tôi chạy mvn deploy不仅 server-0.1.jar 和 client-0.1.jar 被复制到 myDeploy但总共有 33 个(!)文件:*pom *sha1 *md5 *xml 用于 pom、元数据和 jar。

如何设置只复制 server-0.1.jar 和 client-0.1.jar?

Cảm ơn!

1 Câu trả lời

使用maven deploy-file

deploy:deploy-file is used to install a single artifact along with its pom. In that case the artifact information can be taken from an optionally specified pomFile, but can be completed/overriden using the command line.

关于maven deploy : how to restrict to deploy only the artifacts?(多模块环境),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14457452/

28 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com