[ERROR] Failed to execute goal io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0:update (default-cli) on project my-tool-submodule: Execution default-cli of goal io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0:update failed: createDependencyArtifact…ope, dependency.optional) must not be null -> [Help 1]
other symptoms
I see a branch with the name dependency-update/my-orga-tool-toolname-null.
Since I have modules of my tool in dependencyManagement section, this might be the reason.
Stack trace
[INFO] --- dependency-update-maven-plugin:0.8.0:update (default-cli) @ my-tool-submodule ---
[DEBUG] Configuring mojo io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0:update from plugin realm ClassRealm[plugin>io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0, parent: java.net.URLClassLoader@937296d4]
[DEBUG] Configuring mojo 'io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0:update' with basic configurator -->
[DEBUG] (s) connectionType = connection
[DEBUG] (s) connectionUrl = scm:git:https://github.com/orga/tool-name.git/my-tool-submodule
[DEBUG] (s) developerConnectionUrl = scm:git:https://github.com/orga/tool-name.git/my-tool-submodule
[DEBUG] (s) gitProvider = NATIVE
[DEBUG] (s) localRepository = id: local
url: file://$HOME/.m2/repository/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]
blocked: false
[DEBUG] (s) mavenProject = MavenProject: my.package.tool:my-tool-submodule:3.3.0-SNAPSHOT @ $HOME/Projects/git/orga/toolname/mavenmodule/pom.xml
[DEBUG] (s) settings = org.apache.maven.execution.SettingsAdapter@df68a264
[DEBUG] -- end configuration --
[DEBUG] Searching for local_repo.maven-metadata-local_repo.xml.lastUpdated in resolution tracking file.
[DEBUG] Reading resolution-state from: $HOME/.m2/repository/my/package/tool/tool-root/resolver-status.properties
dependencyUpdates: Dependency {groupId=jakarta.ws.rs, artifactId=jakarta.ws.rs-api, version=2.1.5, type=jar}
dependencyUpdates: Dependency {groupId=org.yaml, artifactId=snakeyaml, version=1.25, type=jar}
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for My-Tool 3.3.0-SNAPSHOT:
[INFO]
[INFO] My-Tool ............................................ SUCCESS [ 0.462 s]
[INFO] DT :: Patch Test-App (war) ......................... FAILURE [ 0.053 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.508 s
[INFO] Finished at: 2022-07-18T10:06:22+02:00
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "artifactory" could not be activated because it does not exist.
[ERROR] Failed to execute goal io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0:update (default-cli) on project my-tool-submodule: Execution default-cli of goal io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0:update failed: createDependencyArtifact…ope, dependency.optional) must not be null -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0:update (default-cli) on project my-tool-submodule: Execution default-cli of goal io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0:update failed: createDependencyArtifact…ope, dependency.optional) must not be null
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:47)
at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:156)
at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:72)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal io.github.georgberky.maven.plugins.depsupdate:dependency-update-maven-plugin:0.8.0:update failed: createDependencyArtifact…ope, dependency.optional) must not be null
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:47)
at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:156)
at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:72)
Caused by: java.lang.NullPointerException: createDependencyArtifact…ope, dependency.optional) must not be null
at io.github.georgberky.maven.plugins.depsupdate.ArtifactoryExtensionsKt.createDependencyArtifact (ArtifactoryExtensions.kt:9)
at io.github.georgberky.maven.plugins.depsupdate.UpdateResolver.getDependencyUpdates (UpdateResolver.kt:47)
at io.github.georgberky.maven.plugins.depsupdate.UpdateResolver.getUpdates (UpdateResolver.kt:21)
at io.github.georgberky.maven.plugins.depsupdate.UpdateMojo$execute$1.invoke (UpdateMojo.kt:46)
at io.github.georgberky.maven.plugins.depsupdate.UpdateMojo$execute$1.invoke (UpdateMojo.kt:39)
at io.github.georgberky.maven.plugins.depsupdate.UpdateMojo.withGit (UpdateMojo.kt:71)
at io.github.georgberky.maven.plugins.depsupdate.UpdateMojo.execute (UpdateMojo.kt:39)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:47)
at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:156)
at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:72)
Hi,
overview
The plugin fails to execute:
other symptoms
I see a branch with the name
dependency-update/my-orga-tool-toolname-null
. Since I have modules of my tool independencyManagement
section, this might be the reason.Stack trace