Java maven surefire插件dummy:dummy.jar:1.0缺失

Java maven surefire插件dummy:dummy.jar:1.0缺失,java,apache,maven,jar,maven-surefire-plugin,Java,Apache,Maven,Jar,Maven Surefire Plugin,我无法成功构建我的构建,因为org.apache.maven.surefire:surefire-junit4:jar:2.18.1插件缺少dummy.jar 我的maven可以从我的自定义存储库下载所有内容。所以没有网络问题。此外,此问题出现在maven-surefire-plugin的不同版本上 希望有人能帮助我。我就是不知道问题出在哪里 错误: [INFO] ------------------------------------------------------------------

我无法成功构建我的构建,因为
org.apache.maven.surefire:surefire-junit4:jar:2.18.1
插件缺少dummy.jar

我的maven可以从我的自定义存储库下载所有内容。所以没有网络问题。此外,此问题出现在
maven-surefire-plugin
的不同版本上

希望有人能帮助我。我就是不知道问题出在哪里

错误:

[INFO] ---------------------------------------------------------------------    ---
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.465 s
[INFO] Finished at: 2017-05-11T11:20:13+02:00
[INFO] Final Memory: 24M/262M
[INFO] ---------------------------------------------------------------------    ---
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-    plugin:2.18.1:test (default-test) on project qds-mobile-selenium-tests:             Unable to generate classpath:     org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: 
Missing:
[ERROR] ----------
[ERROR] 1) org.apache.maven.surefire:surefire-junit4:jar:2.18.1
[ERROR] 
[ERROR]   Try downloading the file manually from the project website.
[ERROR] 
[ERROR]   Then, install it using the command: 
[ERROR]       mvn install:install-file -DgroupId=org.apache.maven.surefire -
DartifactId=surefire-junit4 -Dversion=2.18.1 -Dpackaging=jar -    Dfile=/path/to/file
[ERROR] 
[ERROR]   Alternatively, if you host your own repository you can deploy the 
file there: 
[ERROR]       mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire -    
DartifactId=surefire-junit4 -Dversion=2.18.1 -Dpackaging=jar -    
Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR]   Path to dependency: 
[ERROR]         1) dummy:dummy:jar:1.0
[ERROR]         2) org.apache.maven.surefire:surefire-junit4:jar:2.18.1
[ERROR] 
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR] 
[ERROR] for artifact: 
[ERROR]   dummy:dummy:jar:1.0
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR]   company-releases (https://company.jfrog.io/company/release-local,     
releases=true, snapshots=false),    
[ERROR]   central (https://company.jfrog.io/company/libs-release, 
releases=true, snapshots=false),
[ERROR]   snapshots (https://company.jfrog.io/company/libs-snapshot, 
releases=true, snapshots=true)
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e     
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
pom.xml:

<?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>de.company</groupId>
<artifactId>qds-selenium-tests-sourceLab</artifactId>
<version>1.0.0</version>
<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-
8</project.reporting.outputEncoding>
    <java.version>1.8</java.version>
    <selenium.version>2.53.1</selenium.version>
</properties>
<dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.12</version>
    </dependency>
    <dependency>
        <groupId>com.github.stephenc.jcip</groupId>
        <artifactId>jcip-annotations</artifactId>
        <version>1.0-1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>de.company</groupId>
        <artifactId>saucelabs-device-library</artifactId>
        <version>1.0.0</version>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-api</artifactId>
        <version>2.41.0</version>
    </dependency>
</dependencies>
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.18.1</version>
            <configuration>
                <includes>
                    <include>**/MobileTestSuite.class</include>
                    <include>**/StationaryDevicesTestSuite.class</include>
                </includes>
                <failIfNoTests>true</failIfNoTests>
                <rerunFailingTestsCount>3</rerunFailingTestsCount>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.2</version>
            <configuration>
                <source>${java.version}</source>
                <target>${java.version}</target>
            </configuration>
        </plugin>
    </plugins>
</build>
</project>

4.0.0
德公司
量子点硒测试源实验室
1.0.0
UTF-8
UTF-
8.
1.8
2.53.1
朱尼特
朱尼特
4.12
com.github.stephenc.jcip
jcip注释
1.0-1
测试
德公司
saucelabs设备库
1.0.0
org.seleniumhq.selenium
硒原料药
2.41.0
org.apache.maven.plugins
maven surefire插件
2.18.1
**/MobileTestSuite.class
**/StationaryDevicesTestSuite.class
真的
3.
org.apache.maven.plugins
maven编译器插件
3.2
${java.version}
${java.version}
和my maven settings.xml:

<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 
http://maven.apache.org/xsd/settings-1.1.0.xsd" 
xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
  <username>foo</username>
  <password>bar</password>
  <id>central</id>
</server>
<server>
  <username>foo</username>
  <password>bar</password>
  <id>company-releases</id>
</server>
<server>
  <username>foo</username>
  <password>bar</password>
  <id>snapshots</id>
</server>
</servers>
<profiles>
<profile>
  <repositories>
    <repository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>company-releases</id>
      <name>company-releases</name>
      <url>https://company.jfrog.io/company/release-local</url>
    </repository>
    <repository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>libs-release</name>
      <url>https://company.jfrog.io/company/libs-release</url>
    </repository>
    <repository>
      <snapshots />
      <id>snapshots</id>
      <name>libs-snapshot</name>
      <url>https://company.jfrog.io/company/libs-snapshot</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>company-releases</id>
      <name>company-releases</name>
      <url>https://company.jfrog.io/company/release-local</url>
    </pluginRepository>
    <pluginRepository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>central</id>
      <name>libs-release</name>
      <url>https://company.jfrog.io/company/libs-release</url>
    </pluginRepository>
    <pluginRepository>
      <snapshots />
      <id>snapshots</id>
      <name>libs-snapshot</name>
      <url>https://company.jfrog.io/company/libs-snapshot</url>
    </pluginRepository>
  </pluginRepositories>
  <id>artifactory</id>
 </profile>
 </profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>

福
酒吧
中心的
福
酒吧
公司发布
福
酒吧
快照
假的
公司发布
公司发布
https://company.jfrog.io/company/release-local
假的
中心的
libs发布
https://company.jfrog.io/company/libs-release
快照
libs快照
https://company.jfrog.io/company/libs-snapshot
假的
公司发布
公司发布
https://company.jfrog.io/company/release-local
假的
中心的
libs发布
https://company.jfrog.io/company/libs-release
快照
libs快照
https://company.jfrog.io/company/libs-snapshot
人工制品
人工制品

Maven在自定义存储库中找不到
org.apache.Maven.surefire:surefire-junit4:jar:2.18.1
。但是,这种依赖关系是正确的,可以在maven central中使用。由于您已将central配置为自定义存储库,maven不会在maven central存储库中查找此依赖项

这很可能是由于自定义存储库服务器中的配置错误或该服务器没有工作的internet连接

您可以尝试对自定义存储库服务器进行故障排除,或者在maven
settings.xml
中将central更改为默认的maven central存储库