Ask a Question

Set Project level properties in pom.xml using external file

saurabhsharma09
Contributor

Set Project level properties in pom.xml using external file

Hello,

I searched in the forum but couldn't figure out how to set project level properties through external .properties file in pom.xml
though I am able to set project level properties by directly specifying values in pom.xml as below and able to run the project successfully using Maven soap UI pro Plugin:-
<configuration>
......
<projectProperties>
<value>UserName=a</value>
<value>Password=b</value>
</projectProperties>
......
<configuration>

My .properties file have values like below:-
UserName=a
Password=b

Could you please help?

Regards,
Saurabh
3 REPLIES 3
SmartBear_Suppo
SmartBear Alumni (Retired)

Hi,

I don't believe this functionality is currently available in the soapui pro plugin. There is a plugin for reading\writing properties for maven, but the setup of the properties looks different than how they are specified for soapui project properties.

http://mojo.codehaus.org/properties-maven-plugin/


Regards,
Marcus
SmartBear Support

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
redfish4ktc2
Super Contributor

hi, have a look on this post viewtopic.php?f=5&t=17522

If your project is called MyProject, add the following to your plugin configuration

  <soapuiProperties>
<property>
<name>soapui.properties.MyProject</name>
<value>path_to_your_properties_file</value>
</property>
</soapuiProperties>

Hi,

 

<soapuiProperties>
    <property>
      <name>soapui.properties.MyProject</name>
      <value>path_to_your_properties_file</value>
    </property>
  </soapuiProperties>
 
cancel
Showing results for 
Search instead for 
Did you mean: