Search code examples
mavenmaven-release-pluginmaven-deploy-plugin

Strip Pom during Publish?


I want my poms in a public facing repository to assist with transitive dependency calculation but I don't want my source control and other details included in the public poms.

Is there a standard way to strip poms to their bare essentials or would I use an xslt plugin and write a transformation to filter the content I wish to exclude?


Solution

  • You should take a look into flatten-maven-plugin which seemed to be the right direction.