java POM,用于压缩项目
是否有可能创建一个POM,在包或更大的包上,它仅仅组装整个项目(例如,到一个zip文件中)并将其放在目标中
在本例中,项目中没有任何Java代码,它只是我想要打包的一组脚本和文件。为了一致性(因为我们的商店都是Maven),我真的希望有一个POM来做这件事,因为目前我们有一个shell脚本来做这件事
请举例说明
谢谢
你可以在下面搜索框中键入要查询的问题!
是否有可能创建一个POM,在包或更大的包上,它仅仅组装整个项目(例如,到一个zip文件中)并将其放在目标中
在本例中,项目中没有任何Java代码,它只是我想要打包的一组脚本和文件。为了一致性(因为我们的商店都是Maven),我真的希望有一个POM来做这件事,因为目前我们有一个shell脚本来做这件事
请举例说明
谢谢
# 1 楼答案
因此,我以以下内容结束,它在
target
中创建了一个文件ServerSetupTools-0.1-SNAPSHOT.tar.gz
,这对我来说很有用。唯一的缺点是,当文件位于根目录中时,我不确定如何让它拉取这些文件,所以我将它们全部移到了src/main/resources
,这对我也很有用。希望这能帮助其他人POM文件:
src/main/assembly/assemble.xml