Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created April 10, 2021 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aalmiray/154ae226a4abb0ca144a1640980c94fe to your computer and use it in GitHub Desktop.
Save aalmiray/154ae226a4abb0ca144a1640980c94fe to your computer and use it in GitHub Desktop.
jbang export mavenrepo
$ jbang --version
0.70.0
$ jbang export mavenrepo --force -O target -Dgroup=com.acme -Dartifact=hello -Dversion=0.0.0 hello.java
[jbang] Writing target/com/acme/hello/0.0.0/hello-0.0.0.jar
[jbang] Writing target/com/acme/hello/0.0.0/hello-0.0.0.pom
[jbang] Exported to target
$ pomchecker check-maven-central --file target/com/acme/hello/0.0.0/hello-0.0.0.pom
PomChecker 1.1.0. Consider becoming a patron at https://www.patreon.com/aalmiray
[WARN] <description> is not defined in POM. Will use value from parent:
null
[WARN] <url> is not defined in POM. Will use computed value from parent:
null
[ERROR]
The POM file
/private/tmp/target/com/acme/hello/0.0.0/hello-0.0.0.pom
cannot be uploaded to Maven Central due to the following reasons:
* <name> cannot not be blank.
* <description> cannot not be blank.
* <url> cannot not be blank.
* <licenses> block is required but was left empty.
* <developers> block is required but was left empty.
* The <scm> block is required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment