Maven - custom packaging extension?

試著忘記壹切 提交于 2020-01-06 21:10:56

问题


Is it possible to create a maven plugin, which would package my project using a custom file extension? I know that there's a bunch of pre-defined ones like jar, ear, war etc. but I want my own. I also know how to create my own packaging type (using the components.xml), but I still have to tell it what extension it should use. Do I have to implement my own archiver or something? (basically it will be something like a war but with a different name)


回答1:


Well just as I said in the comment above - it is doable but you need to implement your own archiver (or you can use somehow the existing ones and just rename the resulting file - not sure about this option). It's all described in detail in this blog.



来源:https://stackoverflow.com/questions/5327241/maven-custom-packaging-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!