{"id":552,"date":"2017-03-16T12:37:48","date_gmt":"2017-03-16T07:07:48","guid":{"rendered":"http:\/\/www.cyberaka.com\/?p=552"},"modified":"2017-03-16T12:39:06","modified_gmt":"2017-03-16T07:09:06","slug":"maven-installing-adding-local-jar-into-your-local-maven-repository","status":"publish","type":"post","link":"https:\/\/www.cyberaka.com\/?p=552","title":{"rendered":"Maven: Installing \/ adding local jar into your local maven repository"},"content":{"rendered":"<p>I needed to install a local jar file into my laptop&#8217;s local maven repository and found <a href=\"http:\/\/stackoverflow.com\/questions\/4955635\/how-to-add-local-jar-files-in-maven-project\">this article<\/a>. I used this approach to install this jar file in my repo:<\/p>\n<blockquote>\n<p class=\"p1\"><span class=\"s1\">mvn install:install-file -Dfile=my-model-1.2.1.jar -DgroupId=com.cyberaka.my.package -DartifactId=my-model -Dversion=1.2.1 -Dpackaging=jar -DgeneratePom=true<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\">This duly added the local jar file under appropriate group id and artifact id inside my maven repository and I was able to refer to this dependency through my project&#8217;s pom.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed to install a local jar file into my laptop&#8217;s local maven repository and found this article. I used this approach to install this jar file in my repo: mvn install:install-file -Dfile=my-model-1.2.1.jar -DgroupId=com.cyberaka.my.package -DartifactId=my-model -Dversion=1.2.1 -Dpackaging=jar -DgeneratePom=true This duly added the local jar file under appropriate group id and artifact id inside my maven [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=552"}],"version-history":[{"count":3,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":555,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions\/555"}],"wp:attachment":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}