{"action":"created","issue":{"url":"https://api.github.com/repos/cojen/Tupl/issues/44","labels_url":"https://api.github.com/repos/cojen/Tupl/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/cojen/Tupl/issues/44/comments","events_url":"https://api.github.com/repos/cojen/Tupl/issues/44/events","html_url":"https://github.com/cojen/Tupl/pull/44","id":106698563,"number":44,"title":"Preparing Tupl for publishing in the nexus maven repository","user":{"login":"avshabanov","id":822988,"avatar_url":"https://avatars.githubusercontent.com/u/822988?v=3","gravatar_id":"","url":"https://api.github.com/users/avshabanov","html_url":"https://github.com/avshabanov","followers_url":"https://api.github.com/users/avshabanov/followers","following_url":"https://api.github.com/users/avshabanov/following{/other_user}","gists_url":"https://api.github.com/users/avshabanov/gists{/gist_id}","starred_url":"https://api.github.com/users/avshabanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avshabanov/subscriptions","organizations_url":"https://api.github.com/users/avshabanov/orgs","repos_url":"https://api.github.com/users/avshabanov/repos","events_url":"https://api.github.com/users/avshabanov/events{/privacy}","received_events_url":"https://api.github.com/users/avshabanov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-16T05:01:18Z","updated_at":"2015-09-20T05:38:42Z","closed_at":"2015-09-16T14:32:33Z","pull_request":{"url":"https://api.github.com/repos/cojen/Tupl/pulls/44","html_url":"https://github.com/cojen/Tupl/pull/44","diff_url":"https://github.com/cojen/Tupl/pull/44.diff","patch_url":"https://github.com/cojen/Tupl/pull/44.patch"},"body":"This prepares Tupl for publishing in the nexus maven repository.\r\n\r\nNote, that you should have a valid gpg key for signing your artifacts (of course you also need to install gpg2 on the computer you're going to use to release artifacts). After installing a key your ``~/.gnupg`` directory may look as follows:\r\n\r\n```\r\n$ ls ~/.gnupg/\r\ngpg.conf\tpubring.gpg\tsecring.gpg\ttrustdb.gpg\r\n```\r\n\r\nAlso you need to modify your ``~/.m2/settings.xml`` a bit. This is important as it tells release plugin that you're going to release this to ``ossrh`` repository (note, that ossrh is also referenced in ``pom.xml``).\r\n\r\nThis is how it can look like (I'm copying mine with asterisks instead of passwords):\r\n\r\n```xml\r\n<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\"\r\n  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n  xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0\r\n  http://maven.apache.org/xsd/settings-1.0.0.xsd\">\r\n\r\n  <!--\r\n      See http://central.sonatype.org/pages/apache-maven.html and \r\n      http://maven.apache.org/guides/mini/guide-encryption.html and\r\n      https://maven.apache.org/settings.html\r\n  -->\r\n\r\n  <servers>\r\n    <server>\r\n      <id>ossrh</id>\r\n      <username>YOUR_USERNAME</username>\r\n      <password>*</password>\r\n    </server>\r\n  </servers>\r\n\r\n  <profiles>\r\n    <profile>\r\n      <id>ossrh</id>\r\n      <activation>\r\n        <activeByDefault>true</activeByDefault>\r\n      </activation>\r\n      <properties>\r\n        <gpg.executable>gpg2</gpg.executable>\r\n        <gpg.passphrase>*</gpg.passphrase>\r\n      </properties>\r\n    </profile>\r\n  </profiles>\r\n</settings>\r\n```\r\n\r\nYou don't need to have gpg2 installed for any non-release work. The signing step (as well as attaching sources and generating javadoc) is performed only when 'release' profile is activated.\r\n\r\nFeel free to ask if you have any questions related to maven."},"comment":{"url":"https://api.github.com/repos/cojen/Tupl/issues/comments/141751417","html_url":"https://github.com/cojen/Tupl/pull/44#issuecomment-141751417","issue_url":"https://api.github.com/repos/cojen/Tupl/issues/44","id":141751417,"user":{"login":"avshabanov","id":822988,"avatar_url":"https://avatars.githubusercontent.com/u/822988?v=3","gravatar_id":"","url":"https://api.github.com/users/avshabanov","html_url":"https://github.com/avshabanov","followers_url":"https://api.github.com/users/avshabanov/followers","following_url":"https://api.github.com/users/avshabanov/following{/other_user}","gists_url":"https://api.github.com/users/avshabanov/gists{/gist_id}","starred_url":"https://api.github.com/users/avshabanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avshabanov/subscriptions","organizations_url":"https://api.github.com/users/avshabanov/orgs","repos_url":"https://api.github.com/users/avshabanov/repos","events_url":"https://api.github.com/users/avshabanov/events{/privacy}","received_events_url":"https://api.github.com/users/avshabanov/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T05:38:42Z","updated_at":"2015-09-20T05:38:42Z","body":"Hmm, I also thought push happens only on second phase (release:perform). I believe first phase is reversible - it just creates a bunch of property files. I can take another look into it when I'll be near my desktop again."}}