我是Maven的新手,我的maven项目看起来像这样:
Project_Name/
\_________src
\___com.xxx.aaa
\___com.xxx.bbb
\_________conf
\___application.xml
\___config.properties
\___startup.sh
现在我想将我的项目编译成三个目录:
Project_Name.zip
\___________bin
\______startup.sh
\___________conf
\______all configuration files.
\___________lib
\______all dependencies and java code.
如何使它成为可能?
答案 0 :(得分:0)
您需要使用maven-assembly-plugin。看一下这篇文章http://www.petrikainulainen.net/programming/tips-and-tricks/creating-a-runnable-binary-distribution-with-maven-assembly-plugin/