You can use the ${POM_VERSION} variable, which was introduced with https://issues.jenkins-ci.org/browse/JENKINS-18272
More Related Contents:
- Jenkins CI Pipeline Scripts not permitted to use method groovy.lang.GroovyObject
- mvn release:prepare not committing changes to pom.xml
- How do I Extract Version ID from POM inside Jenkins Declarative and Scripted pipelines?
- How to manage maven settings.xml on a shared jenkins server?
- Prevent Jenkins from Installing Artifact to Local Maven Repository
- Differences between dependencyManagement and dependencies in Maven
- Maven dependencies are failing with a 501 error
- Maven: Lifecycle vs. Phase vs. Plugin vs. Goal [closed]
- How to add a dependency to a Spring Boot Jar in another project?
- Passing command line arguments from Maven as properties in pom.xml
- What is under in pom.xml for?
- Jersey fails when creating uber jar with maven-assembly-plugin
- Tomcat casting servlets to javax.servlet.Servlet instead of jakarta.servlet.http.HttpServlet
- Maven – exclude folder from build
- Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.code.TypeTags when using lombok
- failsafe plugin won’t run on one project but will run on another — why?
- Maven: excluding java files in compilation
- Maven compilation issue with Java 9
- How can I skip tests in maven install goal, while running them in maven test goal?
- Cannot use jacoco JVM args and surefire JVM args together in maven
- Getting “Skipping JaCoCo execution due to missing execution data file” upon executing JaCoCo
- Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.
- Cannot get maven project.version property in a Spring application with @Value
- What is the meaning of type “bundle” in a maven dependency?
- How to place the output jar into another folder with maven?
- By default, where does Spring Boot expect views to be stored?
- Warning on using project.parent.version as the version of a module in Maven 3
- Maven build [WARNING] we have a duplicate class
- Maven build issue – Connection to repository refused
- How to pass java code a parameter from maven for testing