【问题标题】:Plugin management in mavenMaven中的插件管理
【发布时间】:2021-07-07 11:57:18
【问题描述】:

您能否建议如何在 maven 中进行插件管理。 我必须调用下面的代码

           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.8</version>
                <executions>
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            <target>
                                <ant antfile="${basedir}/build/build.xml">
                                    <target name="${ant.mode}" />
                                </ant>
                            </target>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

In some of the  the submodule in a multi maven project module.
Can you suggest how to integrate this in only selective maven profiles?
Any Help will be appreciated .

有人可以建议任何插件管理解决方案

【问题讨论】:

    标签: maven plugins ant


    【解决方案1】:

    你把配置放到父插件管理中。

    您可以在需要的每个模块中指定插件(无需配置),或者使用skip 参数来激活/停用插件。

    【讨论】:

      猜你喜欢
      • 2012-06-30
      • 2013-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-10
      • 1970-01-01
      • 1970-01-01
      • 2021-08-02
      相关资源
      最近更新 更多