[
https://issues.apache.org/jira/browse/MNG-6722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MNG-6722.
-------------------------------
Resolution: Won't Fix
Assignee: Robert Scholte
This is close to impossible to implement, because that would imply that Maven
Core has to understand values of properties. There are only a few special
properties that are there for Maven itself, but these are not.
Properties are always handles by plugins, so if you want this to be fixed, then
changes to at least the related plugins are required. In this case
maven-surefire-plugin.
https://github.com/apache/maven-surefire/blob/master/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java#L381-L385
verifies the values of these properties.
Best advice I can give you: never skip tests by default ;)
> explicit "mvn test" should ignore maven.test.skip or skipTests
> --------------------------------------------------------------
>
> Key: MNG-6722
> URL: https://issues.apache.org/jira/browse/MNG-6722
> Project: Maven
> Issue Type: Bug
> Components: Command Line
> Environment: Apache Maven 3.6.1
> (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T03:00:29+08:00)
> Reporter: ryenus
> Assignee: Robert Scholte
> Priority: Major
>
> When commands like `mvn package` or `mvn install` is executed, it makes much
> sense to skip the test phase if `maven.test.skip` or `skipTests` are set.
> But when `mvn test` is explicitly executed, I believe the test phase should
> be activated as if those options are ignored.
> Thanks!
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)