Uploaded image for project: 'Maven Project Web Site'
  1. Maven Project Web Site
  2. MNGSITE-234

Reversed name, reversed value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed

    Description

      I was able to google how to activate profile when property is NOT PRESENT.
      However, I was unable to find any example on how to activate profile when property is NOT EQUAL to some value.
      It would be great, if both possibilities were documented here: https://maven.apache.org/pom.html#Activation.

      Here's my use case:
      <profile>
      <id>sign</id>
      <activation>
      <property>
      <name>skipSign</name>
      <value>!true</value>
      </property>
      </activation>
      ...
      </profile>

      It seems, It works since maven 3.0 or so (I checked commit history).
      Documentation can make that feature to look more "stable".
      Thanks!

      PS. Here are the sources:
      https://git-wip-us.apache.org/repos/asf?p=maven.git;a=blob;f=maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java;hb=HEAD#l64
      https://git-wip-us.apache.org/repos/asf?p=maven.git;a=blob;f=maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/PropertyProfileActivator.java;hb=HEAD#l88

      Attachments

        Activity

          People

            khmarbaise Karl Heinz Marbaise
            perceptron8 MichaƂ Sobkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified