Вопрос по maven – В Maven может ли профиль перекрывать модули (не включать какие-либо)

11

Error: User Rate Limit ExceededmavenError: User Rate Limit ExceededmodulesError: User Rate Limit Exceededpom.xmlError: User Rate Limit Exceeded

<project>
    <modules>
        <module>module1</module>
    </modules>
    <profiles>
         <profile>
             <id>pr1</id>
             <modules>
                 <moudule>module2</module>
             </modules>

Error: User Rate Limit Exceededmvn cleanError: User Rate Limit Exceededmodule1.

Error: User Rate Limit Exceededmvn clean -Ppr1Error: User Rate Limit Exceededmodule1Error: User Rate Limit Exceededmodule2.

Error: User Rate Limit Exceededmaven 3Error: User Rate Limit Exceededpom.xmlError: User Rate Limit Exceeded

<project>
    <!-- omitted -->
    <modules>
        <!-- modules -->
    </modules>
    <build>
        <!-- build -->
    </build>
    <profiles>
        <profile>
             <!-- This profile with no modules -->
        </profile>
    </profiles>
</project>

Error: User Rate Limit Exceeded

<configuration self.combine="override"

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded Andrew Logvinov

Ваш Ответ

3   ответа
13

<activeByDefault>true</activeByDefault><activation>

Error: User Rate Limit Exceeded ssedano
Error: User Rate Limit Exceeded<modules>Error: User Rate Limit Exceeded
Error: User Rate Limit ExceededIntroduction to Build ProfilesError: User Rate Limit Exceeded<activeByDefault>true</activeByDefault>Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded ssedano
11

activation by absence of a property

<profiles>
        <!-- By default, include the modules -->
        <profile>
            <id>full-build</id>
            <activation>
                <!-- Activation by absence of a property. Run normally, without -Dfull-build -->
                <property>
                    <name>!skip-modules</name>
                </property>
            </activation>
            <modules>
                <module>module1</module>
                <module>module2</module>
                <module>module3</module>
            </modules>
        </profile>

        <!-- No-modules build -->
        <profile>
            <id>no-modules</id>
            <activation>
                <!-- Activation by a property. Run with -Dskip-modules to activate -->
                <property>
                    <name>skip-modules</name>
                </property>
            </activation>
            <modules>
            </modules>
        </profile>
    </profiles>
0

  <profiles>
    <profile>
      <id>run-xyz</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <modules>
        <module>www-ab</module>
        <module>www-cd</module>
      </modules>
    </profile>

    <profile>
      <id>run-its</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <modules>
        <module>www-db</module>
        <module>www-it</module>
      </modules>
    </profile>
  </profiles>

Error: User Rate Limit Exceeded ssedano

Похожие вопросы