Forum Discussion

RJanecek's avatar
RJanecek
Regular Contributor
14 years ago

set argument from command line to pom

Hi,
am running soap ui from maven, I have one profile where I am setting properties and project. But now I have 10 project and I wanna have just one profile and run it : mvn -P myprofile soapuiproject.xml
in pom I wanna have <projectFile>/tests/argument from command line</projectFile>
Is possible to set arguments from command line to project file ? if yes how

and then another problem, I created my own library which I copy in bin/ext/ but when I wanna run this project from maven it doesn find this library. how should I import it ?


thx

1 Reply

  • Hi!

    You can set project properties from the pom by adding

    <projectProperties>
    <param>property=value</param>
    <param>property=value</param>
    </projectProperties>

    to the configuration.

    Regarding external libraries I'm actually not really sure - you should see log output when soapUI is initializing during maven execution that tells you where it is looking for these libraries and the simply put them in this location!?

    regards,

    /Ole
    SmartBear Software