Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sections to pom.xml required for publishing to maven central #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cosmin
Copy link

@cosmin cosmin commented Feb 3, 2015

In order to publish artifacts to Maven Central via the Sonatype OSSRH route, certain sections must be added to the pom. One is the OSSRH parent pom, which contains the adequate repositories to use. Another is a license section. Also, source and javadocs should also be uploaded so I've added those plugins as well.

The scm connection is required by the release plugin which is the recommended way for performing the releases.

Lastly, GPG signing is required for artifacts. Adding this to the normal project lifecycle would break most builds if gpg is not installed or configured. Instead, I've added this to a release profile, which also gets automatically activated by the performRelease property, which causes it to be automatically activated when using the release plugin.

I hope this helps expedite the process to get this officially into Central.

@cosmin cosmin mentioned this pull request Feb 3, 2015
<url>https://github.com/docopt/docopt.java</url>
<description>Java port of docopt</description>

<parent>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method has been deprecated because it pulls in any information that isn't overridden here. Best practice now is to copy/paste the repository and profile from oss-parent into this pom file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants