You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2024/01/29 10:24:00 UTC
[jira] [Closed] (MNG-8034) User properties do not correctly override
[ https://issues.apache.org/jira/browse/MNG-8034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tamas Cservenak closed MNG-8034.
--------------------------------
Resolution: Not A Bug
> User properties do not correctly override
> -----------------------------------------
>
> Key: MNG-8034
> URL: https://issues.apache.org/jira/browse/MNG-8034
> Project: Maven
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.9.6, 4.0.0-alpha-12
> Reporter: Tamas Cservenak
> Priority: Major
>
> It seems that user properties are unable to correctly override in certain cases. Am actually unsure is this Surefire or Maven Core issue at all.
> Setup:
> * parent POM enlists surefire plugin in build/pluginMgmt and sets configuration {{failIfNoTests=true}}
> * child module uses surefire to execute tests
> Project set up like this is NOT BUILDABLE without tests.
> Reproducer: [https://github.com/cstamas/mng-8034]
> Steps:
> * build the project from top: {{mvn clean package}} => OK (and UTs run)
> * now try to build {{mvn clean package -Dtest=void}} => surefire fails, tells to set {{-Dsurefire.failIfNoSpecifiedTests=false}}
> * set it {{mvn clean package -Dtest=void -Dsurefire.failIfNoSpecifiedTests=false}} => surefire fails, tells to set {{-DfailIfNoTests=false}}
> * set it {{mvn clean package -Dtest=void -Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false}} => surefire fails, tells to set thing from step 3 (endless loop), basically the user property we set in 3rd step is not detected at all?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)