You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2019/12/20 14:50:00 UTC

[jira] [Updated] (MNG-5910) Using both {{exists}} and {{missing}} in the same {{file}} element should lead to an exception

     [ https://issues.apache.org/jira/browse/MNG-5910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliotte Rusty Harold updated MNG-5910:
---------------------------------------
    Issue Type: Improvement  (was: Bug)
      Priority: Minor  (was: Major)

> Using both {{exists}} and {{missing}} in the same {{file}} element should lead to an exception
> ----------------------------------------------------------------------------------------------
>
>                 Key: MNG-5910
>                 URL: https://issues.apache.org/jira/browse/MNG-5910
>             Project: Maven
>          Issue Type: Improvement
>    Affects Versions: 3.3.3
>            Reporter: Konrad Windszus
>            Priority: Minor
>
> Currently it is not clear from the POM reference (https://maven.apache.org/pom.html#Activation), that the elements {{exists}} and {{missing}} below {{file}} are mutually exclusive, because only {{exists}} is considered if it is there (see also https://github.com/apache/maven/blob/master/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/FileProfileActivator.java#L91). Please make it clearer in the POM reference that not both of them should be used at the same time and also throw an exception during build time if that is the case (in the effective POM).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)