cancel
Showing results for 
Search instead for 
Did you mean: 

Set Project level properties in pom.xml using external file

Highlighted
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
Highlighted

Re: Set Project level properties in pom.xml using external f

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. ⬇️⬇️⬇️Please mark my answer as a solution if it was helpful
Highlighted
Super Contributor

Re: Set Project level properties in pom.xml using external f

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>
Highlighted
Contributor

Re: Set Project level properties in pom.xml using external f

Hi,

 

<soapuiProperties>
    <property>
      <name>soapui.properties.MyProject</name>
      <value>path_to_your_properties_file</value>
    </property>
  </soapuiProperties>
 
New Here?
Join us and watch the welcome video:
Read the Latest News
JuneSCNJ
Top Kudoed Authors