Created
April 10, 2021 21:33
-
-
Save aalmiray/154ae226a4abb0ca144a1640980c94fe to your computer and use it in GitHub Desktop.
jbang export mavenrepo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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