Within our build process we would like to run all unittests twice. Because we would like to test everything against SQL Server and Oracle.
To achieve this I added the maven-surefire-plugin to the pom twice. The
first one has id 'run_tests_oracle_id' and the second one is called
'run_tests_sqlserver_id'.
Now in the configuration I use the argLine to set which database has to be
used.
But each time when the build is executed the latest configuration of
maven-surefire-plugin is used. So it seems not possible to load two
maven-surefire-plugins with two different configurations?
Does somebody know a solution for this? Main purpose is running all unittest
twice on two different databases using maven-surefire-plugin and the
itblast-plugin.
Thx in advance.
run_tests_oracle_id
run_tests_oracle
org.apache.maven.plugins
maven-surefire-plugin
2.8
false
${VMARGS__TEST_PROPERTY_FILE_ORACLE}
${VMARGS__MAVEN_SUREFIRE_PLUGIN_1}
false
c:/_composer/_config/libraries/picketlink-bindings-1.0.4.final.jar
org.twdata.maven
maven-itblast-plugin
0.5
itblast_oracle
post-integration-test
execute
tomcat5x
${APPSERVER_DB_ORACLE__PORT__HTTP}
${APPSERVER_DB_ORACLE__PORT__RMI}
${junit.test.pattern}
run_tests_sqlserver_id
run_tests_sqlserver
org.apache.maven.plugins
maven-surefire-plugin
2.8
false
${VMARGS__TEST_PROPERTY_FILE_SQLSERVER}
${VMARGS__MAVEN_SUREFIRE_PLUGIN_2}
false
org.twdata.maven
maven-itblast-plugin
0.5
itblast_sqlserver
verify
execute
jetty6x
${APPSERVER_DB_SQLSRV__PORT__HTTP}
${APPSERVER_DB_SQLSRV__PORT__RMI}
${junit.test.pattern}
--
View this message in context:
http://maven.40175.n5.nabble.com/Maven-surefire-plugin-run-twice-with-different-argLine-setttings-tp4288014p4288014.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
