Maven 常用命令
mvn 编译
mvn install -Dmaven.test.skip=true
换成 eclipse 项目,执行下面的命令
mvn eclipse:eclipse
Via
Maven打包时跳过测试类
pom.xml中添加如下配置。
|
|
Maven 多个war依赖,发布打包项目。
子项目的pom.xml中添加如下配置。123456<plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <attachClasses>true</attachClasses> </configuration> </plugin>
父项目的pom.xml中添加如下配置。
|
|