Unable to publish to local maven repo when using Gradle and Spring Boot

前端 未结 4 1061
忘了有多久
忘了有多久 2021-01-02 08:09

I have a very simple spring-boot (1.0.2) example (based on http://spring.io/guides/gs/rest-service/) using Gradle (1.12) to create a jar file.

I\'m trying to build

4条回答
  •  [愿得一人]
    2021-01-02 08:34

    This tells me your artifact (jar or war) is being created but the validation of the accompanying pom is failing. For a valid maven artifact you need groupdId, artifactId and version....
    Which translate to gradle group, archivesBaseName and version. Make sure you have these three properties set or configured on your artifact and you might get some luck :-)

    e.g...
    archivesBaseName = 'xcxcxcxc'
    group = "com.blah.xxffffdd"
    version = '#.#.#'
    ...

提交回复
热议问题