maven-metadata.xml is not updated when deploying to nexus

不问归期 提交于 2019-12-03 12:04:45

Have you tried setting updateReleaseInfo to true in your deploy plugin configuration?

<plugin>
    <artifactId>maven-deploy-plugin</artifactId>
    <version>2.5</version>
    <configuration>
        <updateReleaseInfo>true</updateReleaseInfo>
    </configuration>
</plugin>

Note, I haven't tried this, just happened to have the deploy plugin docs open when I read this question and it seems reasonable.

From the Maven docs:

updateReleaseInfo:
Parameter used to update the metadata to make the artifact as release.

Type: boolean
Required: No
Expression: ${updateReleaseInfo}
Default: false
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!