Title: Broken Maven deployment dependencies - sbt-pgp and sbt-sonatype · Issue #18 · algorithmiaio/algorithmia-java · GitHub
Open Graph Title: Broken Maven deployment dependencies - sbt-pgp and sbt-sonatype · Issue #18 · algorithmiaio/algorithmia-java
X Title: Broken Maven deployment dependencies - sbt-pgp and sbt-sonatype · Issue #18 · algorithmiaio/algorithmia-java
Description: I get these errors when including the algorithmia jar in my pom file: [WARNING] The POM for org.xerial.sbt:sbt-sonatype:jar:1.1 is missing, no dependency information available [WARNING] The POM for com.jsuereth:sbt-pgp:jar:1.0.0 is missi...
Open Graph Description: I get these errors when including the algorithmia jar in my pom file: [WARNING] The POM for org.xerial.sbt:sbt-sonatype:jar:1.1 is missing, no dependency information available [WARNING] The POM for...
X Description: I get these errors when including the algorithmia jar in my pom file: [WARNING] The POM for org.xerial.sbt:sbt-sonatype:jar:1.1 is missing, no dependency information available [WARNING] The POM for...
Opengraph URL: https://github.com/algorithmiaio/algorithmia-java/issues/18
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Broken Maven deployment dependencies - sbt-pgp and sbt-sonatype","articleBody":"I get these errors when including the algorithmia jar in my pom file:\r\n\r\n`\r\n[WARNING] The POM for org.xerial.sbt:sbt-sonatype:jar:1.1 is missing, no dependency information available\r\n`\r\n`\r\n[WARNING] The POM for com.jsuereth:sbt-pgp:jar:1.0.0 is missing, no dependency information available\r\n`\r\n\r\nThis causes any maven build (compile/install/package etc) to fail when Algorithmia is included in the JAR, on machines with empty local `.m2` repositories. \r\n\r\nUpon further inspection, those two jars seem to be intended for deploying/publishing jar files to various repos. I don't think they're actually meant to be part of the library?\r\n\r\nThe main issue is that these libraries are unavailable on Maven's central repo. In fact xerial/sbt-pack#37 explicitly mentions that the library is not intended to support maven integration. So fresh Maven builds are unable to find the JAR and thus can't finish the build.\r\n\r\nCurrently I'm able to bypass this issue by manually excluding the two libraries:\r\n\r\n``` \r\n \u003cexclusion\u003e\r\n \u003cgroupId\u003eorg.xerial.sbt\u003c/groupId\u003e\r\n \u003cartifactId\u003esbt-sonatype\u003c/artifactId\u003e\r\n \u003c/exclusion\u003e\r\n \u003cexclusion\u003e\r\n \u003cgroupId\u003ecom.jsuereth\u003c/groupId\u003e\r\n \u003cartifactId\u003esbt-pgp\u003c/artifactId\u003e\r\n \u003c/exclusion\u003e\r\n``` \r\n\r\nThis doesn't seem to break anything and disables the warning. Again, my assumption is these two libraries aren't actually used in the Algorithmia code itself, and are only used in the deploy process. Hence, when they are mistakenly included as actual dependencies, maven builds will crash after being unable to find them. But, manually excluding them doesn't cause any problems since the classes aren't actually used.\r\n\r\nI'm not sure if anything is actually wrong here, maybe this is intended. But I would really appreciate a second look since the exclusion workaround is not ideal!","author":{"url":"https://github.com/rococode","@type":"Person","name":"rococode"},"datePublished":"2020-01-07T07:25:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/18/algorithmia-java/issues/18"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cdae0b95-b244-99a6-7dc9-922667ee503f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B10E:255D99:30B3C3B:438E24F:6977BDEA |
| html-safe-nonce | 45dbea1ae9a868c21a585d2033b27995558bc4b85cdc141c357d5f86a7e9ec44 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTBFOjI1NUQ5OTozMEIzQzNCOjQzOEUyNEY6Njk3N0JERUEiLCJ2aXNpdG9yX2lkIjoiMTU5MzQxMDU0MzM0NTQ1MDQ3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8ae5b6e11ef1fbe651aa3b624c7704925246d4d9e4eafe74518a6188c8899d2e |
| hovercard-subject-tag | issue:546125042 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/algorithmiaio/algorithmia-java/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b62d8e5537841e7b4f23153a7532f044b5b922578d188f21071cbe7cd6c546d/algorithmiaio/algorithmia-java/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b62d8e5537841e7b4f23153a7532f044b5b922578d188f21071cbe7cd6c546d/algorithmiaio/algorithmia-java/issues/18 |
| og:image:alt | I get these errors when including the algorithmia jar in my pom file: [WARNING] The POM for org.xerial.sbt:sbt-sonatype:jar:1.1 is missing, no dependency information available [WARNING] The POM for... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rococode |
| hostname | github.com |
| expected-hostname | github.com |
| None | dd7783bd9901db88bac6bc215af7f020bc205a04ebc67e6c7def882ef2859ecd |
| turbo-cache-control | no-preview |
| go-import | github.com/algorithmiaio/algorithmia-java git https://github.com/algorithmiaio/algorithmia-java.git |
| octolytics-dimension-user_id | 5078755 |
| octolytics-dimension-user_login | algorithmiaio |
| octolytics-dimension-repository_id | 37290768 |
| octolytics-dimension-repository_nwo | algorithmiaio/algorithmia-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37290768 |
| octolytics-dimension-repository_network_root_nwo | algorithmiaio/algorithmia-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5d30081a77a5d66860584073cb38fd98fd7f9388 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width