问题
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