简体   繁体   English

Maven无法解析类testlink.api.java.client.TestLinkAPIException

[英]Maven is unable to resolve class testlink.api.java.client.TestLinkAPIException

I am running a SOAP UI project through maven using the eviware maven-soapui-plugin and I am getting some unresolved class for TestLink. 我正在使用eviware maven-soapui-plugin通过Maven运行SOAP UI项目,并且得到了一些未解析的TestLink类。

I believe that soapui is configured to update TestLink automatically upon running but when executing I am getting unresolved class for a couple of classes. 我相信soapui被配置为在运行时自动更新TestLink,但是执行时,我得到了几个类的未解决类。

Script1.groovy: 8: unable to resolve class Iconstantes 
 @ line 8, column 1.
   public final class TestLinkUpdate implements Iconstantes 


Script1.groovy: 4: unable to resolve class testlink.api.java.client.TestLinkAPIException
 @ line 4, column 1.
   import testlink.api.java.client.TestLinkAPIException;

I have added this dependency to my pom.xml file but that did not change anything: 我已将此依赖项添加到我的pom.xml文件中,但没有任何改变:

<dependencies>
    <dependency>
        <groupId>br.eti.kinoshita</groupId>
        <artifactId>testlink-java-api</artifactId>
        <version>1.9.6-1</version>
    </dependency>
</dependencies>

Anyone has an idea if it is a plugin configuration thing or if I have to add more dependencies? 任何人都知道是插件配置还是必须添加更多依赖项?

You probably need to add the dependency to the <plugin> instead of <project> 您可能需要将依赖项添加到<plugin>而不是<project>

<build>
    <plugins>
        <plugin>
            <groupId>...</groupId>
            <artifactId>maven-soapui-plugin</artifactId>
            <version>...</version>
            <dependencies>
                <dependency>
                    <groupId>br.eti.kinoshita</groupId>
                    <artifactId>testlink-java-api</artifactId>
                    <version>1.9.6-1</version>
                </dependency>
            </dependencies>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM