3

如果我有一个由属性的存在激活的 Maven 配置文件,我如何定义另一个仅在另一个配置文件未激活时才激活的配置文件?

例如

    <profile>
        <activation>
            <property>
                <name>myproperty</name>
                <value>value</value>
            </property>
        </activation>
        ...
    </profile>


    <profile>
        <activation>
            <property>
                <name>myproperty</name>
                <value></value> <!-- Anything other than "value"  -->
            </property>
        </activation>
        ...
    </profile>
4

1 回答 1

6

答案似乎是

<value>!value</value>
于 2008-10-20T10:30:55.460 回答