Forum Discussion

CPaulsen's avatar
13 years ago

Maven problem - POM configuration not being applied

I am getting this error:
[ERROR] Failed to load soapUI project file [mui-integration-test-soapui-project.xml]

Even though I have set the project file in my POM.

<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>
<parent>
<groupId>com.alstom.miso.mui</groupId>
<artifactId>mui-base-pom</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>mui-integration-test</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>Mui Integration Test (soap)</name>
<build>
<plugins>
<plugin>
<groupId>eviware</groupId>
<artifactId>maven-soapui-pro-plugin</artifactId>
<version>4.5.1</version>
<dependencies>
</dependencies>
<executions>

<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<projectFile>MUI - General v1.6.xml</projectFile>
<projectProperties>
<value>message=Hello World!</value>
</projectProperties>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

If I rename my project file to that default name then it works. But I need to get around this so I can run multiple project files, and be able to set other properties.

Any ideas?

Thanks!

2 Replies

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi,
    I've been unable to reproduce your problem on windows using maven 3.0.5 and 2.2.1 with oracle jdk 7
    I removed the parent from the pom and got the following error which shows that the projectFile is correctly configured

    [INFO] --- maven-soapui-pro-plugin:4.5.1:test (default) @ mui-integration-test ---
    soapUI Pro 4.5.1 Maven2 TestCase Runner
    17:23:22,068 WARN [SoapUI] Missing folder [C:\soapui-tests\pb_conf_project_file\.\ext] for external libraries
    17:23:22,633 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\redfish4ktc\soapui-settings.xml]
    17:23:23,334 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\soapui-tests\pb_conf_project_file\scripts]
    17:23:25,370 INFO [SoapUI] File [C:\soapui-tests\pb_conf_project_file\MUI - General v1.6.xml] does not exist, trying URL instead
    17:23:25,371 ERROR [SoapUI] An error occured [no protocol: MUI - General v1.6.xml], see error log for details
    java.net.MalformedURLException: no protocol: MUI - General v1.6.xml
    at java.net.URL.<init>(URL.java:585)
    at java.net.URL.<init>(URL.java:482)
    at java.net.URL.<init>(URL.java:431)
    at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:261)
    at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(SourceFile:155)


    Is the project in a multi maven build?
    In this case, you should set the full path to the projectFile using the ${basedir} variable because there is a bug in the soapui plugin (the path to the project file will be resolve against the parent base directory instead against the project directory)