Forum Discussion

lizdrennan8's avatar
lizdrennan8
New Contributor
7 years ago

Pom Configuration for <settingsFile> not used

I am unable to get the soapui-maven-plugin to use the <settingsFile> I specify.  It always attempts to use the one in my Users directory. How do I get it to pick up the settings specified in the project?

 

14:34:33,180 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\xxx\soapui-settings.xml]

 

My pom configuration looks like this:

<profile>
<id>soapuitest</id>
<build>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.0.0</version>
<dependencies>
<dependency>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui</artifactId>
<version>5.0.0</version>
<exclusions>
<exclusion>
<groupId>javafx</groupId>
<artifactId>jfxrt</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<configuration>
<projectFile>${basedir}/src/test/resources/soapui/soapui-project.xml</projectFile>
<outputFolder>target/surefire-reports/Local</outputFolder>
<settingsFile>${basedir}/src/test/resources/soapui/soapui-settings.xml</settingsFile>
<junitReport>true</junitReport>
</configuration>
<executions>
<execution>
<id>soapUI</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

 

Update: My file path was wrong so it looked for my custom settings file first but couldn't find it and looked in my users directory. It just didn't tell me that. I fixed my custom settings file path and it worked.

No RepliesBe the first to reply