Cannot upload Rundeck example plugin to artifacts repository via rd tool
I have packaged this Rundeck example plugin:
in a jar file. I get the jar file with Maven, using this pom.xml:
<project> <modelVersion>4.0.0</modelVersion> <groupId>localdomain.localhost.tutorial</groupId> <artifactId>rundeck-logstash-java</artifactId> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>org.rundeck</groupId> <artifactId>rundeck-core</artifactId> <version>3.3.0-20200701</version> <scope>compile</scope> </dependency> </dependencies> </project>
and launching mvn package.
When I try to upload the jar file to my repo with rd tool:
rd plugins upload -r myrepo -f rundeck-logstash-java-1.0-SNAPSHOT.jar
I get the following error:
Exception in thread "main" java.lang.NullPointerException at org.rundeck.client.tool.commands.repository.RepositoryResponseHandler.handle(RepositoryResponseHandler.java:42) at org.rundeck.client.tool.commands.repository.UploadPlugin.upload(UploadPlugin.java:51) 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.rundeck.toolbelt.ToolBelt$MethodInvoker.run(ToolBelt.java:1030) at org.rundeck.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:619) at org.rundeck.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:471) at org.rundeck.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:619) at org.rundeck.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:471) at org.rundeck.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:619) at org.rundeck.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:471) at org.rundeck.toolbelt.ToolBelt$CommandSet.runMain(ToolBelt.java:428) at org.rundeck.client.tool.Main.main(Main.java:71)
What am I doing wrong? Do I have to package the java code using some specific options?
Thanks for your time.