maven打包

打开cmd命令,cd 到项目所在的目录,
输入命令行
mvn clean install -Dmaven.test.skip=true 
这样,maven项目就打包完成了。
当然,也可以在配置文件中直接配置如下:
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip><!--跳过测试-->
                </configuration>
            </plugin>


posted @ 2017-10-29 20:52  me-ht  阅读(103)  评论(0编辑  收藏  举报