简体   繁体   中英

Where is the default maven-release-plugin defined?

mvn:effective-pom claims my project uses

          <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <version>2.3.2</version>
          </plugin>

but nowhere in the project I have this defined. I tried grepping in the project dir and in the apache-maven dir for "maven-release" but it didn't find anything interesting.

It's defined in one of the parent POMs, or in the Super POM , which is an implicit parent of every other POM.

Here's how the Super POM looks like for Maven version 3.3.9: https://maven.apache.org/ref/3.3.9/maven-model-builder/super-pom.html

the relevant snippet:

    <plugin>
      <artifactId>maven-release-plugin</artifactId>
      <version>2.3.2</version>
    </plugin>

If the version is not defined in the or sections of your pom or parent pm. It will depend on the maven version you are using.

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