Questions tagged [versions-maven-plugin]

The Versions Plugin is used when you want to manage the versions of artifacts in a project's POM.

80 questions
0
votes
1 answer

Does versions-maven-plugin requires artifacts to be defined in depency as well

i have a maven project where i am using versions-maven-plugin to ensure that for few artifacts only the latest version will be used. These artifacts are included via .... tag.
rohit
  • 177
  • 4
  • 12
0
votes
1 answer

mvn versions:set not changing the child modules version when they would match their parent, which is not the same as the aggregator pom

I am facing the need of changing the version of an aggregator maven project and the two modules it has, using versions:set. One of the use cases does not work and I do not know whether I'm missing something or this use case in particular is not…
jplatasv
  • 155
  • 3
  • 18
0
votes
1 answer

Unexpected update behaviour of versions maven plugin

The goal versions:update-properties produced the following output: 10:52:25,255 INFO - --- versions-maven-plugin:2.7:update-properties (default-cli) @ release-plugin-test-new-bo --- 10:52:32,605 INFO - artifact de.continentale.muv:coutil: checking…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
0
votes
0 answers

When writing a maven plugin, how can I get the Artifacts based on a modified pom?

I am working on enhancing the versions-maven-plugin. I want to tentatively modify the pom.xml files for a project, then look at the version conflicts of the modified pom.xml to decide what modifications should be kept. I have found…
0
votes
1 answer

How to skip mvn dependencies set as property using Versions Maven Plugin?

I am using Versions Maven Plugin to update my project versions. I am using mvn versions:use-latest-versions to update the project dependency. But this disregards the versions set as property. For instance, I have a pom defined as follows:…
hemanik
  • 965
  • 3
  • 14
  • 33
0
votes
1 answer

Updating module version when updating version in dependencies (multi-module maven )

My problem: versions-maven-plugin helps me to up version in some module (let's call it A) in my multi-module maven project. Some modules (let's call it B and C) in this project have in dependencies module A. I need to up versions for this modules…
mchernyakov
  • 196
  • 3
  • 14
0
votes
0 answers

maven - remove -SNAPSHOT from properties tag in pom.xml

The parent pom.xml of my application contains the following snippet: ... 2.0-SNAPSHOT ... 1.0-SNAPSHOT Essentially, I would like to update both the -SNAPSHOT…
0
votes
0 answers

Bug in mvn versions:set plugin?

Lets say I have a multi-module project Project A (pom.xml) - B (module pom.xml) - C (module pom.xml) Now in A's pom.xml, under dependency management, i have the following dependency: com.mycompany
Ram Gaddam
  • 151
  • 1
  • 10
0
votes
0 answers

versions:use-releases throws nullpointer exception for special dependencyManagement entries

If we call versions:use-releases on a pom, where a dependencyManagement entry has no version tag (e.g. because it only sets scopes or exclusions), we get a nullpointer exception. Take the following example pom:
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
0
votes
1 answer

Which version spring security is compatible with spring framework 3.2.6 maven

I work in a project with Spring framework 3.2.6 and I now have to use spring security. I don't know what version spring security is compatible with spring framework 3.2.6
Carlota
  • 1,239
  • 3
  • 29
  • 59
0
votes
0 answers

Versions Maven Plugin does not update Parent POM

I have a strange problem with the Versions Maven Plugin. I released yesterday a new version of a my Ueber Parent. Now I would like to update several other POMs which use a previous snapshot version of this parent. Without having a…
Oliver
  • 3,815
  • 8
  • 35
  • 63
0
votes
0 answers

How to switch to the latest release version?

I'm using the versions plugin to update the dependencies to my projects, where the versions are defined in properties, e.g: 1.6-SNAPSHOT
Steve Benett
  • 12,843
  • 7
  • 59
  • 79
0
votes
1 answer

Maven: Error while executing goal versions:update-properties

I am running the command mvn versions:update-properties but I get the following error: Failed to execute goal org.codehaus.mojo:versions-maven plugin:2.1:update-properties (default-cli) on project : only whitespace content allowed before…
sascha_lamp
  • 179
  • 2
  • 12
0
votes
1 answer

Release & Versions maven plugin

we have a problem with maven releases and maven version plugin. In Jenkins we want to do releases automatically upon pressing a button. To remove snapshot dependencies we want to use the maven versions plugin. Suppose we have two projects A (latest…
0
votes
1 answer

In Maven, when does a project become part of the reactor?

I was just reading the source code for the Versions Maven Plugin, and noticed this snippet of code: if ( reactorProjects.contains( getProject().getParent() ) ) { getLog().info( "Project's parent is part of the reactor" ); …
Behrang
  • 46,888
  • 25
  • 118
  • 160