Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-manifest-from-repo: NullPointerException when no <versioning> tag is present in maven-metadata.xml #1

Open
tommaso-borgato opened this issue Oct 11, 2024 · 1 comment · May be fixed by #2

Comments

@tommaso-borgato
Copy link

If you build e.g. [email protected]:infinispan/infinispan.git like:

mvn -s maven-settings.xml deploy \
    -DaltDeploymentRepository=repo::default::file:///$CUSTOM_REPO/infinispan/ \
    -Dmaven.repo.local=$CUSTOM_REPO/infinispan \
    -DskipTests=true -Denforcer.DskipTests

and then you try to run the create-manifest-from-repo command you get:

$ java -jar $WILDFLY_CHANNEL_CLI_JAR create-manifest-from-repo $CUSTOM_REPO/infinispan -o infinispan-$MANIFEST_NAME
java.lang.NullPointerException: Cannot invoke "org.apache.maven.artifact.repository.metadata.Versioning.getVersions()" because the return value of "org.apache.maven.artifact.repository.metadata.Metadata.getVersioning()" is null
	at org.jboss.set.channel.cli.CreateManifestFromRepoCommand.call(CreateManifestFromRepoCommand.java:50)
	at org.jboss.set.channel.cli.CreateManifestFromRepoCommand.call(CreateManifestFromRepoCommand.java:19)
	at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
	at picocli.CommandLine.access$1500(CommandLine.java:148)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
	at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
	at picocli.CommandLine.execute(CommandLine.java:2170)
	at org.jboss.set.channel.cli.Main.main(Main.java:17)
@tommaso-borgato
Copy link
Author

Fixed in #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant