Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5910

Using both {{exists}} and {{missing}} in the same {{file}} element should lead to an exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.3.3
    • None
    • None
    • None

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: