【问题标题】:Maven Dependency - Failure to find eviware:maven-soapui-plugin:jar:4.5.1Maven 依赖 - 找不到 eviware:maven-soapui-plugin:jar:4.5.1
【发布时间】:2014-06-10 21:15:42
【问题描述】:

我正在使用 Intelliji 运行 Soapui 测试,但是我无法通过 Maven 运行测试。使用 SoapUITestRunner 可以正常测试。

即使我的项目路径和 .m2 存储库中有 eviware:maven-soapui-plugin:jar:4.5.1,我也遇到了错误。

错误: 无法在项目 webservice 上执行目标:无法解析项目 webservice:webservice:jar:1.0-SNAPSHOT 的依赖项:在 http://repo.maven.apache.org/maven2 中找不到 eviware:maven-soapui-plugin:jar:4.5.1 失败被缓存在本地存储库中, 直到 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>webservice</groupId>
    <artifactId>webservice</artifactId>
    <version>1.0-SNAPSHOT</version>
    <properties>
        <maven.soapui.plugin.version>4.5.1</maven.soapui.plugin.version>
        <soapui.repo.url>http://www.soapui.org/repository/maven2/</soapui.repo.url>
    </properties>
    <pluginRepositories>
        <pluginRepository>
            <id>eviwarePluginRepository</id>
            <url>http://www.soapui.org/repository/maven2/</url>
        </pluginRepository>
    </pluginRepositories>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
            <version>3.0</version>
        </dependency>
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>6.8.7</version>
            <scope>test</scope>
        </dependency>
        <dependency>
        <groupId>eviware</groupId>
        <artifactId>maven-soapui-plugin</artifactId>
        <version>4.5.1</version>
        </dependency>
        <dependency>
            <groupId>org.uncommons</groupId>
            <artifactId>reportng</artifactId>
            <version>1.1.2</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.testng</groupId>
                    <artifactId>testng</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>
    <build>
        <!-- Source directory configuration -->
        <sourceDirectory>src</sourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.16</version>
                <configuration>
                    <suiteXmlFiles>
                        <suiteXmlFile>testng.xml</suiteXmlFile>
                    </suiteXmlFiles>
                    <testFailureIgnore>true</testFailureIgnore>
                    <!-- Setting properties for test execution -->
                    <properties>
                        <!-- Setting ReportNG listeners -->
                        <property>
                            <name>listener</name>
                            <value>org.uncommons.reportng.HTMLReporter, org.uncommons.reportng.JUnitXMLReporter</value>
                        </property>
                    </properties>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>eviware</groupId>
                <artifactId>maven-soapui-plugin</artifactId>
                <version>4.5.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            <projectFile>${project.basedir}/SoapUIAutomationDemo.xml</projectFile>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

【问题讨论】:

    标签: intellij-idea maven-2 soapui


    【解决方案1】:

    从 C:\Users\.m2\repository\com\smartbear 中删除缓存的 jar。

    如果您的 .m2 文件夹下的 settings.xml 中有任何代理,请启用代理。

    【讨论】:

      猜你喜欢
      • 2016-10-01
      • 2020-04-18
      • 2019-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-15
      相关资源
      最近更新 更多