Comments (11)
is there a roadmap for the release of 2.3 version with this fix?
from versions.
This looks still broke with release 2.2 (from august 2015):
[ERROR] Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.2:set (default-cli) on project base: Execution default-cli of goal org.codehaus.mojo:versions-maven-plugin:2.2:set failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.2:set (default-cli) on project base: Execution default-cli of goal org.codehaus.mojo:versions-maven-plugin:2.2:set failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
Can anyone tell me want went wrong with the 2.2 timeline (bugfix in july, release in august)?
Any chance to get 2.3 out of the door? Just wondering ;)
from versions.
+1 - Still existing on Version 2.2
from versions.
Ran into this today on 2.2.
from versions.
It happened the same to me with 2.2 today.
from versions.
Still a problem with Maven version 3.3.9 and org.codehause.mojo:versions-maven-plugin:2.2.
$mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
Maven home: /Users/jblum/DEV/apache-maven-3.3.9
Java version: 1.8.0_66, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.2", arch: "x86_64", family: "mac"
Ran with...
$ mvn -e versions:set -DnewVersion=1.0.0.M1
Stack Trace...
[ERROR] Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.2:set (default-cli) on project cp-elements: Execution default-cli of goal org.codehaus.mojo:versions-maven-plugin:2.2:set failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.2:set (default-cli) on project cp-elements: Execution default-cli of goal org.codehaus.mojo:versions-maven-plugin:2.2:set failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.codehaus.mojo:versions-maven-plugin:2.2:set failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
Caused by: java.lang.NullPointerException
at org.codehaus.mojo.versions.api.PomHelper.getModelEntry(PomHelper.java:1571)
at org.codehaus.mojo.versions.SetMojo.applyChange(SetMojo.java:275)
at org.codehaus.mojo.versions.SetMojo.execute(SetMojo.java:239)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more
from versions.
Still a problem. Run in it today..
from versions.
Ran into it today, any release plans for fix ?
from versions.
for anyone else running into it as a workaround - reverting the version to 2.1 worked for us.
mvn org.codehaus.mojo:versions-maven-plugin:2.1:set -DgenerateBackupPoms=false -DnewVersion=SOME_VERSION
from versions.
thanks for the workaround, any idea on when this shall be fixed ?
from versions.
Seems like it's fixed in version 2.3
from versions.
Related Issues (20)
- display-parent-updates follow-up HOT 2
- "Includes" in the set-properties goal does not seem to respect wildcards of the form com.foo.* HOT 3
- Versions Maven Plugin 2.15.0 ignores allowMajorUpdates flag HOT 1
- Need dependency updates listed to be limited by a restriction on another dependency. HOT 1
- display-plugin-updates shows downgrades HOT 1
- Should detect requireMavenVersion by rules not by id HOT 5
- Support build by JDK 21
- versions:set does behave wrong when parent version is the same as the version to be set
- Show multiple newer versions for each artifact
- ParserNotFoundException on dependency-updates-aggregate-report (2.16.2) HOT 2
- Add a ability to limit versions to Java version
- Disable all reports
- versions:update-parent 2.16.2 not respecting range when allowDowngrade is set to true
- Enhancement: Goal to update plugin versions. HOT 1
- Incorrect implementation of org.codehaus.mojo.versions.CompareDependenciesMojo#getRemoteMavenProject method HOT 1
- maven-jar-plugin update not discovered HOT 2
- Add goal that works with Maven CI Friendly Versions and set property (revision) based on git tag HOT 17
- [feature] EOL tracking with release date of current dependency version HOT 10
- update-properties takes a lot of time for some projects HOT 4
- compare-dependencies does not fail if remotePom is invalid HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from versions.