Code Monkey home page Code Monkey logo

solidground-java-infra's Introduction

  • Maven Release Plugin To be able to use maven release plugin:
  • I configured the scm section of the POM.xml
    <scm>
        <url>https://github.com/fdanismaz/solidground-java-infra</url>
        <connection>scm:git:git://github.com/fdanismaz/solidground-java-infra.git</connection>
        <developerConnection>scm:git:[email protected]:fdanismaz/solidground-java-infra.git</developerConnection>
        <tag>HEAD</tag>
    </scm>
  • I added repository and distribution repository section to the POM.xml
    <repositories>
        <repository>
            <id>maven-group</id>
            <url>http://localhost:8081/repository/maven-public/</url>
        </repository>
    </repositories>

    <distributionManagement>
        <snapshotRepository>
            <id>nexus</id>
            <url>http://localhost:8081/repository/maven-snapshots/</url>
        </snapshotRepository>
        <repository>
            <id>nexus</id>
            <url>http://localhost:8081/repository/maven-releases/</url>
        </repository>
    </distributionManagement>
  • I added maven release plugin to the POM.xml

    org.apache.maven.plugins maven-release-plugin ${maven.plugin.release.verison} true

Notice that the autoVersionSubmodules is true so that the release:prepare phase does not ask me version for all submodules.

HOW TO USE MAVEN RELEASE PLUGIN

mvn release:prepare
    * Asks the release version
    * Asks the next development version
    * Changes the version of the project to the asked release version (including all sub-modules)
    * Creates a commit point in the version control system
    * Changes the version of the project to the asked new development version (including all sub-modules)
    * Creates a commit point in the version control system

mvn release:perform
    * Deploys all the modules to the maven proxy server
    * Pushes the commit points created by the release:prepare phase

solidground-java-infra's People

Contributors

fdanismaz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.