最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Maven: Create ZIP and store in JAR - Stack Overflow

programmeradmin0浏览0评论

In a java project I would like to create a zip archive with a file under src/main/resources and then include that zip in the generated jar artifact.

*The ZIP archive is an AWS lambda implementation used only in tests, hence I'd like to share it across multiple sub-projects with minimum effort.

The structure is:

.
├── src
│   └── main
│       └── resources
│           └── index.js
└── pom.xml

and I'd like the output to be:

.jar
└── function.zip

I've tried using the assembly plugin to generate the ZIP archive but then I couldn't figure out how I can add it in the JAR package. Is there a plugin that combines these actions in that order?

发布评论

评论列表(0)

  1. 暂无评论