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

In a java project I would like to create a zip archive with a file under srcmainresources and then in

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742408921a4438416.html

相关推荐

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

    In a java project I would like to create a zip archive with a file under srcmainresources and then in

    6小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信