Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6235

Properties from .mvn/maven.config cannot be overwritten from command line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.5.0
    • None
    • Command Line
    • None

    Description

      Whole procedure is described in blog post: http://blog.soebes.de/blog/2017/04/02/maven-pom-files-without-a-version-in-it/

      I have setted version in .mvn/maven.config

      -Drevision=1.0.0-SNAPSHOT
      

      and when invoking build with command:

      mvn clean package -Drevision=2.0.0-SNAPSHOT

      version is still 1.0.0-SNAPSHOT, should be 2.0.0-SNAPSHOT.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mariuszs Mariusz Smykuła
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: