maven package
来源:互联网 发布:国税局知乎 编辑:程序博客网 时间:2024/06/14 12:27
Shell Script
#!/bin/bash#-----------------------------------------------# FileName: pack.sh# Reversion: 1.2# Date: 2017/06/15# Author: zhengwenqiang# Email: gloryzheng@126.com.cn# Description: mvn package with specialized maven profile.# Notes: # Execute this script with GNU environment which cound be initialized through installation of mingw on windows.# Copyright: 2017(c) zhengwenqiang# License: GPL#-----------------------------------------------if [ -n $M2_HOME -o -n $MAVEN_HOME ] ; then# delete target directory. [ -d target ] && mvn clean# package war file with profile which id is 'deploy' [ $? -eq 0 ] && mvn package -Pdeployelif [ -z $M2_HOME -a -z $MAVEN_HOME ] ; then echo "could not exec mvn cmd, error!"fi
pom.xml
<profiles> <profile> <!-- 批量部署 --> <id>deploy</id> <properties> <finalName>warName</finalName> </properties> <build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <phase>compile</phase> <configuration> <target> <copy todir="${basedir}/target/classes/" overwrite="true"> <fileset dir="${basedir}/release/deploy/resources/"/> </copy> <copy todir="${basedir}/src/webapp/WEB-INF/" overwrite="true"> <fileset dir="${basedir}/release/deploy/WEB-INF/"/> </copy> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile></profiles>
Project Structure
阅读全文
0 0
- maven package
- maven package
- maven install 和 maven package
- maven package 命令打包
- Maven Package Compilation Error
- maven package记录
- maven package skip test
- maven package 指定包名
- maven package自动部署包
- maven package 和 install 区别
- maven package install deploy区别
- maven package install deploy区别
- maven package install deploy区别
- maven package 指定包名
- maven package用法 打包maven项目
- maven package 与 maven install 命令
- maven - package a jar with main class
- maven package和install跳过测试
- 【PL/SQL Developer】动态执行表不可访问,本会话的自动统计被禁止
- Ubuntu与Centos在登陆安全方面的比较
- python基础——反射和异常
- 账户与密码管理
- ACL权限控制列表
- maven package
- python 解析类似 '\xe4\xb8\xad\xe5\x9b\xbd'的unicode码为汉字
- 如何通俗理解“协方差”和“相关系数”
- SUID SGID
- 关于eclipse总是卡在building workspace问题
- Shell 判断语句
- mac上终端使用ssh远程连接到linux服务器
- java基础之内存机制详解
- JVM内存概览与GC初步