1、Maven build时报“Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project complex-industry-test: There are test failures.“
解决方案一:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-testng</artifactId>
<version>2.19.1</version>
</dependency>
</dependencies>
<configuration>
<skipTests>true</skipTests>
<reportFormat>xml</reportFormat>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
将skipTests改成true
解决方案二:
执行mvn clean package -Dmaven.test.skip=true
2、出现"Cannot access nexus-all (http://nexus.2xxx-dev.com/) in offline mode"
解决方案:把Work offline的勾去除即可