0

我创建了一个 Maven 项目来使用 selenium+Java 运行我的自动化脚本。我已经下载了所需的依赖项,当我尝试从 Eclipse 运行 Maven 安装时。我看到下面的错误。请提出问题在哪里。请在下面找到 pom 文件。

错误 - 无法解析项目 SampleGrp:SampleArtifactID:jar:0.0.1-SNAPSHOT 的依赖项:无法收集 [junit:junit:jar:4.11 (test), org.seleniumhq.selenium:selenium-java:jar:2.53 的依赖项.0 (编译), info.cukes:cucumber-java:jar:1.2.4 (测试), info.cukes:cucumber-junit:jar:1.2.4 (测试), org.apache.maven.plugins:maven- resources-plugin:jar:2.5(编译)、com.aventstack:extentreports:jar:3.0.6(提供)、com.vimalselvam:cucumber-extentsreport:jar:3.0.1(编译)、org.freemarker:freemarker:jar :2.3.23 (编译), org.mongodb:bson:jar:3.2.2 (编译), commons-lang:commons-lang:jar:2.6 (编译), ojdbc14:ojdbc14:jar:10.2.0.3.0 ( compile), org.jenkins-ci.plugins:scm-api:jar:1.1 (compile), org.jenkins-ci.plugins.workflow:workflow-job:jar:2.1 (test), org.jenkins-ci.plugins .workflow:workflow-support:jar:2。2 (测试), org.jenkins-ci.plugins.workflow:workflow-step-api:jar:2.2 (编译), org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2 ( compile), org.apache.maven.wagon:wagon-file:jar:1.0-beta-2 (compile), org.apache.maven.plugins:maven-clean-plugin:jar:2.5 (compile)]: 失败读取 org.jenkins-ci.plugins.workflow:workflow-step-api:jar:2.2 的工件描述符:未能找到 org.jenkins-ci.plugins:plugin:pom:2.5 in插件:插件:pom:2.5 在插件:插件:pom:2.5 在 http://repo.maven.apache.org/maven2被缓存在本地仓库中,直到 central 的更新间隔已过或强制更新时才会重新尝试解析 -> [帮助 1]

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>SampleGrp</groupId>
  <artifactId>SampleArtifactID</artifactId>
  <version>0.0.1-SNAPSHOT</version>

  <name>SampleArtifactID</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
    <groupId>org.seleniumhq.selenium</groupId> 
 <artifactId>selenium-java</artifactId>
 <version>2.53.0</version>
 </dependency>
 <dependency>
 <groupId>info.cukes</groupId>
 <artifactId>cucumber-java</artifactId>
 <version>1.2.4</version> 
 <scope>test</scope>
 </dependency> 
 <dependency> 
 <groupId>info.cukes</groupId> 
 <artifactId>cucumber-junit</artifactId> 
 <version>1.2.4</version>
 <scope>test</scope>
 </dependency> 
 
 <dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
    <version>2.5</version>
</dependency>
 
    
    <dependency>
    <groupId>com.aventstack</groupId>
    <artifactId>extentreports</artifactId>
    <version>3.0.6</version>
    <scope>provided</scope>
</dependency>


 
 <dependency>
    <groupId>com.vimalselvam</groupId>
    <artifactId>cucumber-extentsreport</artifactId>
    <version>3.0.1</version>
</dependency>

<dependency>
    <groupId>org.freemarker</groupId>
    <artifactId>freemarker</artifactId>
    <version>2.3.23</version>
</dependency>

<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>bson</artifactId>
    <version>3.2.2</version>
</dependency>

<dependency>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    <version>2.6</version>
</dependency>
 
 
<dependency>
    <groupId>ojdbc14</groupId>
    <artifactId>ojdbc14</artifactId>
    <version>10.2.0.3.0</version>
</dependency>

 <dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>scm-api</artifactId>
    <version>1.1</version>
    
</dependency>
<dependency>
    <groupId>org.jenkins-ci.plugins.workflow</groupId>
    <artifactId>workflow-job</artifactId>
    <version>2.1</version>
    <scope>test</scope>
</dependency>

<dependency>
    <groupId>org.jenkins-ci.plugins.workflow</groupId>
    <artifactId>workflow-support</artifactId>
    <version>2.2</version>
    <scope>test</scope>
</dependency>


<dependency>
    <groupId>org.jenkins-ci.plugins.workflow</groupId>
    <artifactId>workflow-step-api</artifactId>
    <version>2.2</version>
</dependency>

<dependency>
    <groupId>org.apache.maven.wagon</groupId>
    <artifactId>wagon-provider-api</artifactId>
    <version>1.0-beta-2</version>
</dependency>

<dependency>
    <groupId>org.apache.maven.wagon</groupId>
    <artifactId>wagon-file</artifactId>
    <version>1.0-beta-2</version>
</dependency>


<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-clean-plugin</artifactId>
    <version>2.5</version>
</dependency>
      
    
  </dependencies>

4

0 回答 0