0

This answer indicates that the maven plugin doesn't allow for installing source jars into the local repo. "It's easy to publish sources with the "maven-publish" plugin"

With the maven-publish plugin, is there any reason to keep the maven plugin?

Travis Well
  • 947
  • 10
  • 32
  • Why would you publish to the local repo vs `mvn install`? – Rogue Jul 25 '17 at 23:44
  • @Rogue mvn install, or actually `./gradlew install` does publish to the local repo. But with the `maven` plugin, it does not publish a source jar. – Travis Well Jul 26 '17 at 00:43
  • What are you trying to achieve here? Installing into the local-repo is a goal-specific task, not something you'd put in the pom. Are you wanting to block source jars in the installation repo? – Rogue Jul 26 '17 at 00:45
  • @Rogue I want to install source jars in the local repo, along with, ideally, javadoc and compiled jars. I don't know why you're even mentioning the pom. There's no pom. It's gradle. Anyway, I removed the 'maven' plugin and so far so good. – Travis Well Jul 27 '17 at 18:08

0 Answers0