我是Maven的新手,并将Selenium Testng Suites与Maven和Jenkins和SVN作为存储库集成。但是,当我触发詹金斯的目标时,我会低于错误。
-plugin:jar:2.5:无法转移伪影org.apache.maven.maven.plugins:maven-clean-plugin:pom:2.5从/到中央(http://repo.maven.apache.org/maven2)无法到达 -> [帮助1][错误][错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行maven。[错误]使用-X开关重新运行Maven以启用完整的调试日志记录。[错误][错误]有关错误和可能解决方案的更多信息,请阅读以下文章:[错误] [help 1] http://cwiki.apache.org/confluence/display/maven/pluginressolutionException"下面是我的maven pom.xml结构
<properties>
<suiteXmlFile>webtest.xml</suiteXmlFile>
<skipTests>false</skipTests>
</properties>
<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8.7</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.28.0</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>21.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<compilerVersion>1.8</compilerVersion>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
<configuration>
<forkMode>never</forkMode>
<suiteXmlFiles>
<suiteXmlFile>${suiteXmlFile}</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</project>
我不确定我是否也必须将.m2文件提交给SVN?还是我应该如何在SVN存储库和Jenkins中配置?我的Jenkins和SVN存储库都在服务器上。
您似乎有一个用于Internet连接的代理设置。代理正在阻止目标机器中对MVN存储库的直接访问。您必须配置。settings.xml中的代理服务器(位于.m2目录的根)。通常,伪像将文物作为代理MVN存储库。咨询IT团队/开发团队以获取必要的设置。