Maven config params do not seem to be accepted
Trying to reduce the number of flags on the maven run command. I followed the documentation regarding parameters that could be incorporated into maven.
<plugin> <groupId>Parasoft</groupId> <artifactId>maven-parasoft-plugin</artifactId> <executions> <execution> <id>soatest-test</id> <phase>verify</phase> <goals> <goal>soatest</goal> </goals> <configuration> <clean>false</clean> <config>soatest.builtin://Demo Configuration</config> <!-- <soatestHome>C:/Program Files/Parasoft/SOAtest & Virtualize/2022.1</soatestHome> --> <!-- <localsettings>src/test/resources/soatest/localsettings.properties</localsettings> --> </configuration> </execution> </executions> </plugin>
Using the above maven config and:
mvn Parasoft:maven-parasoft-plugin:soatest -Dparasoft.soatest.home="C:\Program Files\Parasoft\SOAtest & Virtualize\2022.1" -Dparasoft.localsettings="C:\WS\workspaces\SoaTest\Settings\settings.txt"
things run as expected (Vanilla config).
Now the fun begins. If I uncomment the local settings in the pom, and run:
mvn Parasoft:maven-parasoft-plugin:soatest -Dparasoft.soatest.home="C:\Program Files\Parasoft\SOAtest & Virtualize\2022.1"
it will not work, UNLESS I place the localsettings.properties in the root directory, per the documentation. In other words, it appears to be flat out ignoring the definition from within the pom.
This problem is further exhibited when uncommenting both the local settings and the home in the pom, and run:
At this point, we get the behavior seen when no home is defined.
I'm lead to believe that NONE of the properties defined in the pom are being read. Please advise. Thanks.