You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I accidentally run mvn -X org.jboss.shamrock:shamrock-maven-plugin:1.0.0.Alpha1-SNAPSHOT:create -DprojectGroupId=org.acme -DprojectArtifactId=using-opentracing -DclassName="org.acme.opentracing.TracedResource" -Dpath="/hello" -Dextensions="tracing" in the root of my Shamrock git clone.
I end up with a weird state:
a src/ directory created at the root
a NPE:
Caused by: java.lang.NullPointerException
at org.jboss.shamrock.maven.CreateProjectMojo.addPluginManagementSection (CreateProjectMojo.java:218)
at org.jboss.shamrock.maven.CreateProjectMojo.addMainPluginConfig (CreateProjectMojo.java:186)
at org.jboss.shamrock.maven.CreateProjectMojo.execute (CreateProjectMojo.java:136)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
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:305)
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:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
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:498)
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)
While it's a user error, I thought it was supposed to create a subdirectory if the directory was not empty? Moreover failing with a NPE does not look nice.
I wouldn't mind if we threw an error altogether if we try to do that in an existing Maven project.
The text was updated successfully, but these errors were encountered:
I accidentally run
mvn -X org.jboss.shamrock:shamrock-maven-plugin:1.0.0.Alpha1-SNAPSHOT:create -DprojectGroupId=org.acme -DprojectArtifactId=using-opentracing -DclassName="org.acme.opentracing.TracedResource" -Dpath="/hello" -Dextensions="tracing"
in the root of my Shamrock git clone.I end up with a weird state:
src/
directory created at the rootWhile it's a user error, I thought it was supposed to create a subdirectory if the directory was not empty? Moreover failing with a NPE does not look nice.
I wouldn't mind if we threw an error altogether if we try to do that in an existing Maven project.
The text was updated successfully, but these errors were encountered: