{"action":"closed","issue":{"url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/236","repository_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent","labels_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/236/comments","events_url":"https://api.github.com/repos/HotswapProjects/HotswapAgent/issues/236/events","html_url":"https://github.com/HotswapProjects/HotswapAgent/issues/236","id":318377110,"number":236,"title":"Autodeploy snapshot from master to Sonatype","user":{"login":"Artur-","id":260340,"avatar_url":"https://avatars3.githubusercontent.com/u/260340?v=4","gravatar_id":"","url":"https://api.github.com/users/Artur-","html_url":"https://github.com/Artur-","followers_url":"https://api.github.com/users/Artur-/followers","following_url":"https://api.github.com/users/Artur-/following{/other_user}","gists_url":"https://api.github.com/users/Artur-/gists{/gist_id}","starred_url":"https://api.github.com/users/Artur-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artur-/subscriptions","organizations_url":"https://api.github.com/users/Artur-/orgs","repos_url":"https://api.github.com/users/Artur-/repos","events_url":"https://api.github.com/users/Artur-/events{/privacy}","received_events_url":"https://api.github.com/users/Artur-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-27T11:38:31Z","updated_at":"2018-05-03T13:37:17Z","closed_at":"2018-05-03T13:37:17Z","author_association":"CONTRIBUTOR","body":"https://oss.sonatype.org/content/repositories/snapshots/org/hotswapagent/ only contains some quite outdated snapshots. It would be nice if the Travis `master` branch build autodeployed the snapshots\r\n\r\nThe main blocker for this as I see it is that the group id used in the project does not match the group id of the packages deployed to Maven. In the project you use `org.hotswap.agent` while the package in Sonatype is `org.hotswapagent` as http://hotswapagent.org/ is a domain owned by the project owner while http://hotswap.org/ is not. It can of course be resolved by some creative find and replace in a deploy script...\r\n\r\nOnce the group id problem is resolved, setting up deployment should be fairly trivial, e.g. in `.travis.yml`\r\n```\r\n\r\ndeploy:\r\n  - provider: script\r\n    script: ./.travis.deploy.sh\r\n    skip_cleanup: true\r\n    on:\r\n      branch: master\r\n```\r\n\r\n`.travis.deploy.sh` something like\r\n```\r\n#!/bin/bash\r\n\r\nmvn deploy  --settings ./.travis.settings.xml -DaltDeploymentRepository=sonatype-snapshots::default::https://oss.sonatype.org/content/repositories/snapshots -DskipTests -B\r\n```\r\n\r\nand a `.travis.settings.xml` like\r\n```\r\n<settings>\r\n    <servers>\r\n        <server>\r\n            <id>sonatype-snapshots</id>\r\n            <username>${env.SONATYPE_USERNAME}</username>\r\n            <password>${env.SONATYPE_PASSWORD}</password>\r\n        </server>\r\n    </servers>\r\n</settings>\r\n```\r\n\r\nto allow setting the sonatype credentials as secret Travis variables. \r\n\r\nThere might also be easier ways for this"}}
{"actor":{"display_login":"edudant"}}