[英]How to configure pom to run SoapUI project from java
I need to run a project created from SoapUI though Java . 我需要通过Java运行从SoapUI创建的项目。 By googling a bit I found the following solution, which works (but for version 4.5.0)
通过仔细搜索,我发现以下解决方案有效(但对于版本4.5.0)
....
<repositories>
<repository>
<id>eviware</id>
<url>http://www.eviware.com/repository/maven2/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>eviware</groupId>
<artifactId>maven-soapui-plugin</artifactId>
<version>4.5.0</version>
</dependency>
....
But now when i run it from java i get the following error 但是现在当我从Java运行它时,出现以下错误
[WsdlProject] Project 'ABCD - LOCAL' is from a newer version (5.0.0) of soapUI than this (4.5.0) and parts of it may be incompatible or incorrect.
[WsdlProject]项目'ABCD-LOCAL'来自soapUI的较新版本(5.0.0)(而非此版本(4.5.0)),并且部分内容可能不兼容或不正确。 Saving this project with this version of soapUI may cause it to function differently.
使用此版本的soapUI保存该项目可能会导致其功能不同。
But I coulden't find the 5.0.0 version for "eviware". 但是我找不到“ eviware”的5.0.0版本。 Can any one suggest me the new repository settings and dependency settings in order to run this in version 5.0.0+
谁能建议我新的存储库设置和依赖项设置以便在5.0.0+版本中运行
If all else fails, try the documentation : 如果所有其他方法均失败,请尝试使用文档 :
<pluginRepositories>
<pluginRepository>
<id>smartbear-sweden-plugin-repository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.1.0</version>
<configuration>
<projectFile>simple-test-soapui-project.xml</projectFile>
<projectProperties>
<value>message=Hello World!</value>
</projectProperties>
</configuration>
</plugin>
</plugins>
So I guess for your dependency it would be: 所以我想对于您的依赖关系是:
<repositories>
<repository>
<id>smartbear-sweden-plugin-repository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.1.0</version>
</dependency>
</dependencies>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.