简体   繁体   中英

Maven Release Plugin with GIT: pom.xml configuration

I've been trying to find a example of how to configure the maven-release-plugin, but to now luck I haven't been able to find a full example of a already configured pom.xml. The Maven website doesn't off much in terms of examples and I am a very visual learner. A link or an example mock pom.xml with a the maven-release-plugin would be most helpful.

First you need to define the version of maven-release-plugin via pluginManagement. Then next step is to define the SCM information in your pom like this:

 <scm>
    <connection>scm:git:https://github.com/jenkinsci/java-client-api.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/jenkinsci/java-client-api.git</developerConnection>
    <url>https://github.com/jenkinsci/java-client-api</url>
  </scm>

The given information is just as an example and you need to change to your requirements.

BTW: What is about this: http://maven.apache.org/maven-release/maven-release-plugin/usage.html

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