{"id":2857,"date":"2016-11-21T13:50:42","date_gmt":"2016-11-21T13:50:42","guid":{"rendered":"http:\/\/www.diogonunes.com\/blog\/?p=2857"},"modified":"2022-03-27T16:02:13","modified_gmt":"2022-03-27T15:02:13","slug":"publish-maven-central-troubleshoot","status":"publish","type":"post","link":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/","title":{"rendered":"Publishing to Maven central (troubleshoot included)"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?resize=580%2C391\" alt=\"Publish to maven central is a bad time\" width=\"580\" height=\"391\" class=\"aligncenter size-full wp-image-2949\" srcset=\"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?w=597&amp;ssl=1 597w, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?resize=400%2C269&amp;ssl=1 400w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<h3>It&#8217;s a treacherous path. Bring food and a sword.<\/h3>\n<p><!--more--><\/p>\n<p>I tried to follow the official <a href=\"http:\/\/central.sonatype.org\/pages\/ossrh-guide.html\">OSSRH guide<\/a> but I had so many issues&#8230; I hope this &#8220;guide of the guide&#8221; saves you time and frustration.<\/p>\n<h3>First things first<\/h3>\n<ol>\n<li><a href=\"https:\/\/issues.sonatype.org\/secure\/Signup!default.jspa\">Create a JIRA account<\/a> on Sonatype&#8217;s environment.<\/li>\n<li><a href=\"https:\/\/issues.sonatype.org\/secure\/CreateIssue.jspa?issuetype=21&amp;pid=10134\">Create a ticket<\/a> for the creation of your repo.<\/li>\n<li><a href=\"http:\/\/central.sonatype.org\/articles\/2014\/Feb\/27\/why-the-wait\">Wait<\/a> 2 business days.<\/li>\n<\/ol>\n<h3>While you wait&#8230;<\/h3>\n<p>Make sure you have a <code>pom.xml<\/code> that complies with <a href=\"http:\/\/central.sonatype.org\/pages\/requirements.html\">Sonatype&#8217;s requirements<\/a>, namely:<\/p>\n<ul>\n<li>Project coordinates (<code>groupId<\/code>, <code>artifactId<\/code>, <code>version<\/code>)<\/li>\n<li>Name, Description and URL<\/li>\n<li>License info<\/li>\n<li>Developer info<\/li>\n<li>Source control (repo) info<\/li>\n<\/ul>\n<p>It will only get worse from here. You have been warned.<\/p>\n<p>\ud83d\ude28 \ud83d\ude28 \ud83d\ude28 \ud83d\ude28 \ud83d\ude28 \ud83d\ude28 \ud83d\ude28 <em>scroll down if you&#8217;re brave<\/em> \ud83d\ude28 \ud83d\ude28 \ud83d\ude28 \ud83d\ude28 \ud83d\ude28 \ud83d\ude28 \ud83d\ude28<\/p>\n<h3>Setting up the deployment path<\/h3>\n<p>When you get the reply to your Jira Ticket:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=dXR4pJ_zS-0\">Watch this video guide<\/a><\/li>\n<li>But keep an open tab with the <a href=\"http:\/\/central.sonatype.org\/pages\/apache-maven.html\">complete guide<\/a>, to copy-paste code snippets.<\/li>\n<\/ul>\n<h4>Problem (path to config) \ud83e\udd14<\/h4>\n<p>I got a <code>401<\/code> after doing <code>mvn deploy<\/code>.<\/p>\n<p>To solve this, run <code>mvn -X<\/code> and search for <code>Reading user settings from<\/code>. That&#8217;s the folder where you need your <code>settings.xml<\/code> to be.<\/p>\n<p>Mine was <code>[DEBUG] Reading user settings from \/Users\/USERNAME\/.m2\/settings.xml<\/code><\/p>\n<h4>Problem (ups) \ud83d\ude05<\/h4>\n<p><code>Missing: no sources jar found in folder<\/code><\/p>\n<p>Add plugins for source and javadoc, copy-paste from <a href=\"http:\/\/central.sonatype.org\/pages\/apache-maven.html#javadoc-and-sources-attachments\">this section<\/a>.<\/p>\n<h4>Problem (signing code) \ud83d\ude35<\/h4>\n<p><code>Missing Signature (...) *.jar.asc' does not exist for<\/code><\/p>\n<p>Check if you have GPG installed with <code>gpg --version<\/code>. In my case it wasn&#8217;t. To install it, using <a href=\"http:\/\/brew.sh\/\">homebrew<\/a>, just do&#8230;<\/p>\n<pre><code>brew install gnupg\nbrew install gnupg2\nPATH=\"\/usr\/local\/opt\/gnupg\/libexec\/gpgbin:$PATH\"\n<\/code><\/pre>\n<ul>\n<li>Follow <a href=\"http:\/\/central.sonatype.org\/pages\/working-with-pgp-signatures.html\">these steps<\/a> to generate a signature. <\/li>\n<li>Edit <code>settings.xml<\/code> again to include your GPG passphrase.<\/li>\n<\/ul>\n<pre><code class=\"xml\">&lt;settings&gt;\n  &lt;servers&gt;\n    &lt;server&gt;\n      &lt;id&gt;ossrh&lt;\/id&gt;\n      &lt;username&gt;sonatype credentials&lt;\/username&gt;\n      &lt;password&gt;sonatype credentials&lt;\/password&gt;\n    &lt;\/server&gt;\n  &lt;\/servers&gt;\n&lt;\/settings&gt;\n<\/code><\/pre>\n<ul>\n<li>You must sign at least one file before being able to send the key to the server. You can use any file and delete it afterwards.<\/li>\n<\/ul>\n<p>For some reason you have to use your passphrase at least once, to &#8220;unlock it&#8221; or some kind&#8230; make sure you are <a href=\"http:\/\/central.sonatype.org\/pages\/working-with-pgp-signatures.html#distributing-your-public-key\">able to receive the key back from the server<\/a>.<\/p>\n<h3>(Attempting to) Publish on Maven Central<\/h3>\n<pre><code>mvn release:clean release:prepare\n<\/code><\/pre>\n<p>and press <strong>Enter<\/strong> to use the defaults<\/p>\n<pre><code>What is the release version for \"GroupId:ArtifactId\"?\nWhat is SCM release tag or label for \"GroupId:ArtifactId\"?\nWhat is the new development version for \"GroupId:ArtifactId\"?\n<\/code><\/pre>\n<p>TIP: more about preparing your code for maven releases <a href=\"http:\/\/maven.apache.org\/maven-release\/maven-release-plugin\/examples\/prepare-release.html\">here<\/a>.<\/p>\n<h4>Problem (signing failed: Inappropriate ioctl for device) \ud83d\ude16<\/h4>\n<p><a href=\"https:\/\/stackoverflow.com\/a\/57591830\/675577\">You need to<\/a> add these two lines to your bash profile (<code>~\/.bash_profile<\/code> or <code>~\/.zshrc<\/code>):<\/p>\n<pre><code>GPG_TTY=$(tty)\nexport GPG_TTY\n<\/code><\/pre>\n<p>Then restart your terminal.<\/p>\n<h4>Problem (signing failed: No such file or directory)<\/h4>\n<p><a href=\"https:\/\/github.com\/samuelmeuli\/action-maven-publish\/issues\/3#issuecomment-566532938\">Add this code snippet<\/a> to your <code>pom.xml<\/code>, inside the <code>maven-gpg-plugin<\/code> plugin:<\/p>\n<pre><code>&lt;configuration&gt;\n  &lt;!-- Prevent `gpg` from using pinentry programs --&gt;\n  &lt;gpgArguments&gt;\n    &lt;arg&gt;--pinentry-mode&lt;\/arg&gt;\n    &lt;arg&gt;loopback&lt;\/arg&gt;\n  &lt;\/gpgArguments&gt;\n&lt;\/configuration&gt;\n<\/code><\/pre>\n<h4>Problem (accessing git) \ud83d\ude29<\/h4>\n<p><code>You can't push to git...<\/code><\/p>\n<p>I had to edit my <code>pom.xml<\/code>, according to this precious <a href=\"http:\/\/stackoverflow.com\/a\/20581541\/675577\">SO answer<\/a> to look like this:<\/p>\n<pre><code>&lt;scm&gt;\n    &lt;connection&gt;scm:git:git@github.com\/USER\/REPO.git&lt;\/connection&gt;\n    &lt;developerConnection&gt;scm:git:git@github.com:USER\/REPO.git&lt;\/developerConnection&gt;\n    &lt;url&gt;git@github.com\/USER\/REPO\/tree\/master&lt;\/url&gt;\n&lt;\/scm&gt;\n<\/code><\/pre>\n<h4>Problem (git credentials) \ud83d\ude21<\/h4>\n<pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli): Unable to commit files\n[ERROR] Provider message:\n[ERROR] The git-push command failed.\n[ERROR] Command output:\n[ERROR] Permission denied (publickey).\n<\/code><\/pre>\n<p>It was my problem since I could not reach github from my machine (see below)<\/p>\n<pre><code>$ ssh -T git@github.com\nPermission denied (publickey).\n<\/code><\/pre>\n<p>I had to <a href=\"https:\/\/help.github.com\/articles\/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent\/\">add an SSH key<\/a> to my account for my machine.<\/p>\n<p>\ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6 \ud83c\udfc6<\/p>\n<h3>\ud83c\udf89 Done \ud83c\udf89<\/h3>\n<p>Next time, you just need to<\/p>\n<p><code>mvn release:clean release:prepare<br \/>\nmvn release:perform<br \/>\ngit push<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s a treacherous path. Bring food and a sword.<\/p>\n","protected":false},"author":1,"featured_media":2949,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[56,31],"class_list":["post-2857","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-java","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Publishing to Maven central (troubleshoot included) - The Geeky Gecko<\/title>\n<meta name=\"description\" content=\"I tried to follow the OSSRH guide but I had lots of issues. I hope this &quot;guide of the guide&quot; saves you time and frustration. Examples and commands included.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Publishing to Maven central (troubleshoot included) - The Geeky Gecko\" \/>\n<meta property=\"og:description\" content=\"I tried to follow the OSSRH guide but I had lots of issues. I hope this &quot;guide of the guide&quot; saves you time and frustration. Examples and commands included.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/\" \/>\n<meta property=\"og:site_name\" content=\"The Geeky Gecko\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-21T13:50:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-27T15:02:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"597\" \/>\n\t<meta property=\"og:image:height\" content=\"402\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Diogo Nunes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dialexnunes\" \/>\n<meta name=\"twitter:site\" content=\"@dialexnunes\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Diogo Nunes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/\"},\"author\":{\"name\":\"Diogo Nunes\",\"@id\":\"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/a6fa79b293f22912664654fcfbd2da0c\"},\"headline\":\"Publishing to Maven central (troubleshoot included)\",\"datePublished\":\"2016-11-21T13:50:42+00:00\",\"dateModified\":\"2022-03-27T15:02:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/\"},\"wordCount\":395,\"publisher\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/a6fa79b293f22912664654fcfbd2da0c\"},\"image\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?fit=597%2C402&ssl=1\",\"keywords\":[\"java\",\"tutorial\"],\"articleSection\":[\"Technology\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/\",\"url\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/\",\"name\":\"Publishing to Maven central (troubleshoot included) - The Geeky Gecko\",\"isPartOf\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?fit=597%2C402&ssl=1\",\"datePublished\":\"2016-11-21T13:50:42+00:00\",\"dateModified\":\"2022-03-27T15:02:13+00:00\",\"description\":\"I tried to follow the OSSRH guide but I had lots of issues. I hope this \\\"guide of the guide\\\" saves you time and frustration. Examples and commands included.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?fit=597%2C402&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?fit=597%2C402&ssl=1\",\"width\":597,\"height\":402},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.diogonunes.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Publishing to Maven central (troubleshoot included)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.diogonunes.com\/blog\/#website\",\"url\":\"https:\/\/www.diogonunes.com\/blog\/\",\"name\":\"The Geeky Gecko\",\"description\":\"The Geeky Gecko\",\"publisher\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/a6fa79b293f22912664654fcfbd2da0c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.diogonunes.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/a6fa79b293f22912664654fcfbd2da0c\",\"name\":\"Diogo Nunes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2026\/04\/Geeky-Gecko-2026-v2.png?fit=799%2C799&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2026\/04\/Geeky-Gecko-2026-v2.png?fit=799%2C799&ssl=1\",\"width\":799,\"height\":799,\"caption\":\"Diogo Nunes\"},\"logo\":{\"@id\":\"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.diogonunes.com\",\"https:\/\/x.com\/dialexnunes\"],\"url\":\"https:\/\/www.diogonunes.com\/blog\/author\/diogo-nunes\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Publishing to Maven central (troubleshoot included) - The Geeky Gecko","description":"I tried to follow the OSSRH guide but I had lots of issues. I hope this \"guide of the guide\" saves you time and frustration. Examples and commands included.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/","og_locale":"en_US","og_type":"article","og_title":"Publishing to Maven central (troubleshoot included) - The Geeky Gecko","og_description":"I tried to follow the OSSRH guide but I had lots of issues. I hope this \"guide of the guide\" saves you time and frustration. Examples and commands included.","og_url":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/","og_site_name":"The Geeky Gecko","article_published_time":"2016-11-21T13:50:42+00:00","article_modified_time":"2022-03-27T15:02:13+00:00","og_image":[{"width":597,"height":402,"url":"https:\/\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png","type":"image\/png"}],"author":"Diogo Nunes","twitter_card":"summary_large_image","twitter_creator":"@dialexnunes","twitter_site":"@dialexnunes","twitter_misc":{"Written by":"Diogo Nunes","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#article","isPartOf":{"@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/"},"author":{"name":"Diogo Nunes","@id":"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/a6fa79b293f22912664654fcfbd2da0c"},"headline":"Publishing to Maven central (troubleshoot included)","datePublished":"2016-11-21T13:50:42+00:00","dateModified":"2022-03-27T15:02:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/"},"wordCount":395,"publisher":{"@id":"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/a6fa79b293f22912664654fcfbd2da0c"},"image":{"@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?fit=597%2C402&ssl=1","keywords":["java","tutorial"],"articleSection":["Technology"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/","url":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/","name":"Publishing to Maven central (troubleshoot included) - The Geeky Gecko","isPartOf":{"@id":"https:\/\/www.diogonunes.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#primaryimage"},"image":{"@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?fit=597%2C402&ssl=1","datePublished":"2016-11-21T13:50:42+00:00","dateModified":"2022-03-27T15:02:13+00:00","description":"I tried to follow the OSSRH guide but I had lots of issues. I hope this \"guide of the guide\" saves you time and frustration. Examples and commands included.","breadcrumb":{"@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#primaryimage","url":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?fit=597%2C402&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?fit=597%2C402&ssl=1","width":597,"height":402},{"@type":"BreadcrumbList","@id":"https:\/\/www.diogonunes.com\/blog\/publish-maven-central-troubleshoot\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.diogonunes.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Publishing to Maven central (troubleshoot included)"}]},{"@type":"WebSite","@id":"https:\/\/www.diogonunes.com\/blog\/#website","url":"https:\/\/www.diogonunes.com\/blog\/","name":"The Geeky Gecko","description":"The Geeky Gecko","publisher":{"@id":"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/a6fa79b293f22912664654fcfbd2da0c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.diogonunes.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/a6fa79b293f22912664654fcfbd2da0c","name":"Diogo Nunes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2026\/04\/Geeky-Gecko-2026-v2.png?fit=799%2C799&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2026\/04\/Geeky-Gecko-2026-v2.png?fit=799%2C799&ssl=1","width":799,"height":799,"caption":"Diogo Nunes"},"logo":{"@id":"https:\/\/www.diogonunes.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.diogonunes.com","https:\/\/x.com\/dialexnunes"],"url":"https:\/\/www.diogonunes.com\/blog\/author\/diogo-nunes\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2017\/11\/KgcUeAo.png?fit=597%2C402&ssl=1","jetpack-related-posts":[{"id":2473,"url":"https:\/\/www.diogonunes.com\/blog\/fix-texture-problems-gmod\/","url_meta":{"origin":2857,"position":0},"title":"How to fix texture problems (pink squares) on Garry&#8217;s Mod","author":"Diogo Nunes","date":"4 January, 2016","format":false,"excerpt":"If you try to play Garry's Mod right after you download and install it you'll have a bad time. If you join a multiplayer map you will most probably see the whole map covered on bright fuchsia\/pink and black squares and ERROR messages. That's because the map requires textures not\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.diogonunes.com\/blog\/category\/tech\/"},"img":{"alt_text":"gmod textures error","src":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2015\/12\/maxresdefault.jpg?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2015\/12\/maxresdefault.jpg?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2015\/12\/maxresdefault.jpg?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2015\/12\/maxresdefault.jpg?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2015\/12\/maxresdefault.jpg?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2970,"url":"https:\/\/www.diogonunes.com\/blog\/github-pages-custom-domain-namecheap\/","url_meta":{"origin":2857,"position":1},"title":"Using a custom domain on GitHub Pages (step by step for Namecheap)","author":"Diogo Nunes","date":"10 April, 2017","format":false,"excerpt":"No extra cost for using a custom domain. To have a website online you need two things: a domain and a host. I'm assuming you already bought a cool and cheap domain on Namecheap (they're great). Now the only thing missing is a place to host your website. $1 buys\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.diogonunes.com\/blog\/category\/tech\/"},"img":{"alt_text":"GitHub Pages logo","src":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2016\/12\/maxresdefault-1.jpg?fit=1200%2C673&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2016\/12\/maxresdefault-1.jpg?fit=1200%2C673&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2016\/12\/maxresdefault-1.jpg?fit=1200%2C673&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2016\/12\/maxresdefault-1.jpg?fit=1200%2C673&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2016\/12\/maxresdefault-1.jpg?fit=1200%2C673&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":263,"url":"https:\/\/www.diogonunes.com\/blog\/installing-play-framework-2-1-on-windows\/","url_meta":{"origin":2857,"position":2},"title":"Installing Play Framework 2.1 on Windows","author":"Diogo Nunes","date":"17 March, 2014","format":false,"excerpt":"The Play Framework is probably one of the few web frameworks that installs and works pretty well on Windows. I started web development with Django, but I had to learn Python and Django at the same time, and the documentation was not so good as they said it was. So\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.diogonunes.com\/blog\/category\/tech\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2014\/03\/lets-play-1.png?fit=1143%2C431&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2014\/03\/lets-play-1.png?fit=1143%2C431&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2014\/03\/lets-play-1.png?fit=1143%2C431&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2014\/03\/lets-play-1.png?fit=1143%2C431&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2014\/03\/lets-play-1.png?fit=1143%2C431&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2444,"url":"https:\/\/www.diogonunes.com\/blog\/install-config-gmod-guide\/","url_meta":{"origin":2857,"position":3},"title":"Download Garry&#8217;s Mod and configure it (complete guide)","author":"Diogo Nunes","date":"25 December, 2015","format":false,"excerpt":"Garry's Mod (commonly abbreviated as gmod), is a sandbox physics game created by Garry Newman. It was originally a mod for Valve's Half-Life 2, but was later made into a standalone release in 2006. Currently it's a fun game to play with friends :) \ud83d\uded1\u26a0\ufe0f EDIT: This guide was written\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.diogonunes.com\/blog\/category\/tech\/"},"img":{"alt_text":"gmod","src":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2015\/12\/bb622eefffd0fb307531c75da7dc1768.jpg?fit=800%2C450&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2015\/12\/bb622eefffd0fb307531c75da7dc1768.jpg?fit=800%2C450&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2015\/12\/bb622eefffd0fb307531c75da7dc1768.jpg?fit=800%2C450&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2015\/12\/bb622eefffd0fb307531c75da7dc1768.jpg?fit=800%2C450&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":4113,"url":"https:\/\/www.diogonunes.com\/blog\/using-no-code-to-create-website-from-table\/","url_meta":{"origin":2857,"position":4},"title":"Using no-code to create a website from a table","author":"Diogo Nunes","date":"1 March, 2021","format":false,"excerpt":"I have been hearing about \"no-code\" solutions for a while but never had the chance to use one. The concept is interesting because programming is usually a barrier for the average person. If they are not required to code, many more people would be able to develop digital and automated\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.diogonunes.com\/blog\/category\/tech\/"},"img":{"alt_text":"building block","src":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2021\/01\/iker-urteaga-TL5Vy1IM-uA-unsplash.jpg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2021\/01\/iker-urteaga-TL5Vy1IM-uA-unsplash.jpg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2021\/01\/iker-urteaga-TL5Vy1IM-uA-unsplash.jpg?fit=1200%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2021\/01\/iker-urteaga-TL5Vy1IM-uA-unsplash.jpg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2021\/01\/iker-urteaga-TL5Vy1IM-uA-unsplash.jpg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":4723,"url":"https:\/\/www.diogonunes.com\/blog\/photography-course\/","url_meta":{"origin":2857,"position":5},"title":"Photography: from Zero to Hobby","author":"Diogo Nunes","date":"17 July, 2023","format":false,"excerpt":"My latest course teaches you the basics of photography in 60 minutes Are you intrigued by the captivating world of photography but don't know where to start? Have you ever wished you could confidently pick up a camera and capture stunning images? I can help you! Mastering the art of\u2026","rel":"","context":"In &quot;Photography&quot;","block_context":{"text":"Photography","link":"https:\/\/www.diogonunes.com\/blog\/category\/photo\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2023\/05\/julian-santa-ana-rBLLTkPRRtE-unsplash.jpg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2023\/05\/julian-santa-ana-rBLLTkPRRtE-unsplash.jpg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2023\/05\/julian-santa-ana-rBLLTkPRRtE-unsplash.jpg?fit=1200%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2023\/05\/julian-santa-ana-rBLLTkPRRtE-unsplash.jpg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.diogonunes.com\/blog\/wp-content\/uploads\/2023\/05\/julian-santa-ana-rBLLTkPRRtE-unsplash.jpg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/posts\/2857","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/comments?post=2857"}],"version-history":[{"count":3,"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/posts\/2857\/revisions"}],"predecessor-version":[{"id":4507,"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/posts\/2857\/revisions\/4507"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/media\/2949"}],"wp:attachment":[{"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/media?parent=2857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/categories?post=2857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.diogonunes.com\/blog\/wp-json\/wp\/v2\/tags?post=2857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}