failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2

解决办法:

一是命令行(会编译测试类,但不会打包测试类)

mvn clean package -Dmaven.test.skip=true

二是写入pom文件,注意父子级节点结构(不会编译测试类,更不会打包测试类)

<plugin>  
    <groupId>org.apache.maven.plugins</groupId>  
    <artifactId>maven-surefire-plugin</artifactId>  
    <version>2.4.2</version>  
    <configuration>  
       <skipTests>true</skipTests>  
    </configuration>  
</plugin>

mysql cli

alias mysql@188=’mycli -h 192.168.1.188 -P 3306 -u trader -p ******’

写个bush文件 命名db_online

#!/bin/bash

 #!/bin/bash

 if [ -n "$1" ]; then
 mycli -h rm-xxxxx.mysql.rds.aliyuncs.com -u user001 -p pwd001 db_online
 else
 mysql -h rm-xxxxx.mysql.rds.aliyuncs.com -u user002 -p pwd002 db_online
 fi