{"id":27597,"date":"2022-12-25T09:09:25","date_gmt":"2022-12-25T03:39:25","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/"},"modified":"2022-12-25T09:09:25","modified_gmt":"2022-12-25T03:39:25","slug":"solved-understanding-java-artifacts-and-maven","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/","title":{"rendered":"[Solved] Understanding Java Artifacts and Maven"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-38018569\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"38018569\" data-parentid=\"38018015\" data-score=\"3\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<blockquote>\n<ol>\n<li>Is there a file associated with this artifact?<\/li>\n<\/ol>\n<\/blockquote>\n<p>Yes, what you have posted is known as a coordinate.  It references a jar named <code>selenium-java<\/code> that is in the group <code>org.seleniumhq.selenium<\/code>.<\/p>\n<p>Groups, identified by the <code>groupId<\/code> component of the coordinate, are a way of namespacing artifacts within maven to prevent naming collisions.<\/p>\n<p>This coordinate says that the project has a dependency on version <code>2.53.0<\/code> of a maven artifact named <code>selenium-java<\/code> in the group <code>org.seleniumhq.selenium<\/code>.<\/p>\n<blockquote>\n<ol start=\"2\">\n<li>Is this enough information to pull down the file down when building your Maven Project?<\/li>\n<\/ol>\n<\/blockquote>\n<p>Yes, the coordinate is how the artifact is located within the maven repository and is enough information to locate and download the artifact when building a maven project.<\/p>\n<blockquote>\n<ol start=\"3\">\n<li>Where is it getting the file from? Is it getting it from selenium, or does Maven house these artifacts, and it is getting from Maven?<br \/>\n  Where exactly is it downloading the artifact from?<\/li>\n<\/ol>\n<\/blockquote>\n<p>Where the file is retrieved from is based on your maven configuration.  By default maven will first check the local maven repository on your machine to see if the artifact has already been downloaded.  If not, it will then check <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/search.maven.org\/#search%7Cgav%7C1%7Cg%3A%22org.seleniumhq.selenium%22%20AND%20a%3A%22selenium-java%22\">Maven Central<\/a>.<\/p>\n<p>You can also host your own maven repositories using tools such as Nexus or Artifactory that can mirror repositories on the internet such as Maven Central as well as store artifacts you create yourself that you do not with to share with others.<\/p>\n<blockquote>\n<ol start=\"4\">\n<li>What&#8217;s in the artifact file? Class definitions? Multiple classes can be defined in there, right?<\/li>\n<\/ol>\n<\/blockquote>\n<p>An artifact can be any type of file.  In the case of the selenium coordinate above the artifact is a jar file.  There will also be a pom file associated with that coordinate that explains all of the dependencies of the <code>selenium-java<\/code> jar.<\/p>\n<ul>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/search.maven.org\/#artifactdetails%7Corg.seleniumhq.selenium%7Cselenium-java%7C2.53.0%7Cjar\">http:\/\/search.maven.org\/#artifactdetails%7Corg.seleniumhq.selenium%7Cselenium-java%7C2.53.0%7Cjar<\/a><\/li>\n<\/ul>\n<blockquote>\n<ol start=\"5\">\n<li>Maven seems to be making a jar file. Is it compounding all the classes into that file?<\/li>\n<\/ol>\n<\/blockquote>\n<p>You can build normal jars or fat jars with maven.  By default maven will build a normal jar.  If you wish to package all of a jars dependencies within it (i.e. fat jar) you need to use a special maven plugin.<\/p>\n<ul>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/maven.apache.org\/plugins\/maven-shade-plugin\/\">http:\/\/maven.apache.org\/plugins\/maven-shade-plugin\/<\/a><\/li>\n<\/ul>\n<blockquote>\n<ol start=\"6\">\n<li>Also, how is artifact file different from JAR file and can you make your own artifact file?<\/li>\n<\/ol>\n<\/blockquote>\n<p>Artifact is a generic term used to describe anything you can store within a maven repository.  Maven repositories can store many different types of files.  In the case of this coordinate the artifact is a jar file.<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">1<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Understanding Java Artifacts and Maven <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Is there a file associated with this artifact? Yes, what you have posted is known as a coordinate. It references a jar named selenium-java that is in the group org.seleniumhq.selenium. Groups, identified by the groupId component of the coordinate, are a way of namespacing artifacts within maven to prevent naming collisions. This coordinate says &#8230; <a title=\"[Solved] Understanding Java Artifacts and Maven\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/\" aria-label=\"More on [Solved] Understanding Java Artifacts and Maven\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[626,611],"class_list":["post-27597","post","type-post","status-publish","format-standard","hentry","category-solved","tag-maven","tag-selenium"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Understanding Java Artifacts and Maven - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Understanding Java Artifacts and Maven - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Is there a file associated with this artifact? Yes, what you have posted is known as a coordinate. It references a jar named selenium-java that is in the group org.seleniumhq.selenium. Groups, identified by the groupId component of the coordinate, are a way of namespacing artifacts within maven to prevent naming collisions. This coordinate says ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-25T03:39:25+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Understanding Java Artifacts and Maven\",\"datePublished\":\"2022-12-25T03:39:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/\"},\"wordCount\":430,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"maven\",\"selenium\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/\",\"name\":\"[Solved] Understanding Java Artifacts and Maven - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-12-25T03:39:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Understanding Java Artifacts and Maven\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Understanding Java Artifacts and Maven - JassWeb","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:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Understanding Java Artifacts and Maven - JassWeb","og_description":"[ad_1] Is there a file associated with this artifact? Yes, what you have posted is known as a coordinate. It references a jar named selenium-java that is in the group org.seleniumhq.selenium. Groups, identified by the groupId component of the coordinate, are a way of namespacing artifacts within maven to prevent naming collisions. This coordinate says ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/","og_site_name":"JassWeb","article_published_time":"2022-12-25T03:39:25+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Understanding Java Artifacts and Maven","datePublished":"2022-12-25T03:39:25+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/"},"wordCount":430,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["maven","selenium"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/","url":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/","name":"[Solved] Understanding Java Artifacts and Maven - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-12-25T03:39:25+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-understanding-java-artifacts-and-maven\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Understanding Java Artifacts and Maven"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/27597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=27597"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/27597\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=27597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=27597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=27597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}