AtomicInteger
AtomicInteger,一个提供原子操作的Integer的类。在Java语言中,++i和i++操作并不是线程安全的,在使用的时候,不可避免的会用到synchronized关键字。而AtomicInteger则通过一种线程安全的加减操作接口。
The purpose of thedependency:purge-local-repositorygoal is to purge (delete and optionally re-resolve) artifacts from the local maven repository. This page describes some of the configuration options available to the plugin.
1 | mvn dependency:purge-local-repository |
**-DskipTests**,不执行测试用例,但编译测试用例类生成相应的class文件至target/test-classes下。
**-Dmaven.test.skip=true**,不执行测试用例,也不编译测试用例类。
也可以在pom.xml文件中修改
1 | <plugin> |
1 | <distributionManagement> |
1 | <server> |