Maven: Maven Antrun Plugin configuration to copy package from target to basedir and rename it
来源:互联网 发布:java中的finally 编辑:程序博客网 时间:2024/05/29 13:56
Add the Maven Antrun Plugin to the pom.xml
<plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>deploy</id> <phase>package</phase> <configuration> <tasks> <copy todir="${project.basedir}"> <fileset dir="target"> <include name="${build.finalName}.${project.packaging}" /> </fileset> </copy> <move file="${project.basedir}/${build.finalName}.${project.packaging}" tofile="${project.basedir}/name-you-want.jar"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions></plugin>
After executing, the package will be copied to the base directory from target directory and then rename it to what you want.
0 0
- Maven: Maven Antrun Plugin configuration to copy package from target to basedir and rename it
- maven-antrun-plugin
- maven-antrun-plugin
- Maven antrun plugin 学习
- maven-antrun-plugin
- maven-antrun-plugin插件
- maven 导入No marketplace entries found to handle maven-antrun-plugin
- window10下编译hadoop报错:Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugi
- Maven 插件之 maven-antrun-plugin
- copy.py(copy files from one directory to another directory and rename)
- Eclipse-Android-Maven from Integrated plugin to Created
- Maven antrun plugin调用Ant Optional Task
- maven-antrun-plugin(运行ant的插件)
- Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.3:
- 解决:Failure to transfer org.apache.maven.plugins:maven-jar-plugin:pom:2.4 from错误
- Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.18.1 from .....
- Emma Maven Plugin Configuration
- USACO:2.2.1 Preface Numbering 序言页码
- 合并排序
- iOS编程——隐藏和封装
- Android 继承DialogFragment弹出dialog对话框
- Python之学习笔记(函数)
- Maven: Maven Antrun Plugin configuration to copy package from target to basedir and rename it
- 算法导论--10.3-4 多数组表示双向链表(紧凑)
- C语言笔记(一)
- signal raise alarm用法
- 字符串的长度
- 织梦PHP站一直被黑客挂木马的解决办法
- CPU是怎么工作的?
- 23种设计模式
- CSS样式属性