简体   繁体   中英

Is the distributionManagement element really needed with the maven release plugin?

I assumed for a long time that the distributionManagement tag was required for the maven release plugin because it needs to know where to upload the released artifacts. But to some extent this is true. If I configure my pom.xml like this, maven complains about missing distributionManagement:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.github.nbauma109</groupId>
    <artifactId>jd-util</artifactId>
    <version>1.0.16-SNAPSHOT</version>
    <scm>
        <connection>scm:git:https://github.com/nbauma109/jd-util.git</connection>
        <developerConnection>scm:git:ssh://git@github.com/nbauma109/jd-util.git</developerConnection>
        <url>https://github.com/nbauma109/jd-util</url>
        <tag>HEAD</tag>
    </scm>
</project>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM