I am using Jetty and Selenium to automate some unit tests from my Maven 2. We only really want to run these tests as part of the CI build and would like to control it via the -Dmaven.test.skip property.
I cannot find a way to apply this to the executions for the Jetty plugin. Am I missing something obvious?
The maven.test.skip property is a property that the surefire plugin looks at to decide if it should just skip. The jetty plugin doesn’t care at all about this property. The only way to do this would move your jetty plugin execution to a profile and try activating it if the maven.test.skip property is false.