【问题标题】:Maven warning 'Overriding managed version 2.5.3 for maven-release-plugin'Maven 警告“覆盖 maven-release-plugin 的托管版本 2.5.3”
【发布时间】:2021-04-08 12:42:53
【问题描述】:

当我尝试在 pom.xml 中使用 maven-release-plugin 时,我收到以下警告:

Overriding managed version 2.5.3 for maven-release-plugin

我没有父 pom。我的 pom.xml 是创建独立的 jar 文件。为什么会产生上述警告? maven 2.5.3 版本在哪里获取?

这是我在 pom.xml 中的插件信息

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-release-plugin</artifactId>
    <version>2.3.2</version>
    <configuration>
        <goals>pre-integration-test</goals>
        <preparationGoals>package</preparationGoals>
        <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
        <tagNameFormat>@{project.version}</tagNameFormat>
        <remoteTagging>false</remoteTagging>
    </configuration>
</plugin>                  

谢谢

【问题讨论】:

  • 请发布完整的 pom 文件,否则很难检查...

标签: maven pom.xml maven-plugin


【解决方案1】:

Super POM

所有模型都隐式继承自一个超级 POM:

   ...
   <pluginManagement>
     ...
       <plugin>
         <artifactId>maven-release-plugin</artifactId>
         <version>2.5.3</version>
       </plugin>

【讨论】:

    猜你喜欢
    • 2015-08-27
    • 2017-09-20
    • 1970-01-01
    • 2019-06-22
    • 2013-01-26
    • 2012-02-02
    • 1970-01-01
    • 2016-10-02
    • 1970-01-01
    相关资源
    最近更新 更多