{"id":2236,"date":"2017-04-15T06:57:07","date_gmt":"2017-04-15T06:57:07","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=2236"},"modified":"2017-04-15T11:27:02","modified_gmt":"2017-04-15T11:27:02","slug":"project-object-model-tags","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/project-object-model-tags\/","title":{"rendered":"Project Object Model Tags"},"content":{"rendered":"<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;dependencies&gt;\r\n    &lt;dependency&gt;\r\n      &lt;groupId&gt;junit&lt;\/groupId&gt;\r\n      &lt;artifactId&gt;junit&lt;\/artifactId&gt;\r\n      &lt;version&gt;3.8.1&lt;\/version&gt;\r\n      &lt;scope&gt;test&lt;\/scope&gt;\r\n    &lt;\/dependency&gt;\r\n  &lt;\/dependencies&gt;\r\n<\/pre>\n<p><strong>Specifying Version<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n      &lt;!--Version should be 3.8.1--&gt;\r\n      &lt;version&gt;3.8.1&lt;\/version&gt;\r\n\r\n      &lt;!--Version should less than or up to  3.8--&gt;\r\n      &lt;version&gt;&#x5B;,3.8]&lt;\/version&gt;\r\n      \r\n      &lt;!--Version should less than 3.8--&gt;\r\n      &lt;version&gt;&#x5B;,3.8)&lt;\/version&gt;\r\n\r\n      &lt;!--Version should be between 3.1 to 3.8--&gt;\r\n      &lt;!--If 3.8 is available it picks those--&gt;\r\n      &lt;version&gt;&#x5B;3.1,3.8]&lt;\/version&gt;\r\n<\/pre>\n<p><strong>Specifying Scope<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n\r\n&lt;!--Jar file would be available to JUnit Test Folder--&gt;\r\n&lt;scope&gt;test&lt;\/scope&gt;\r\n\r\n&lt;!--available as Part of Web Server i.e tools.jar--&gt;\r\n&lt;scope&gt;provided&lt;\/scope&gt;\r\n\r\n&lt;!--Jar File available only during runtime--&gt;\r\n&lt;!--Use of Interface at Compile Time and actual class at runtime--&gt;\r\n&lt;scope&gt;runtime&lt;\/scope&gt;\r\n\r\n&lt;!--Use of Interface at Compile Time and actual class at runtime--&gt;\r\n&lt;scope&gt;runtime&lt;\/scope&gt;\r\n<\/pre>\n<p><em>Defines the Maven Plugin with which the compilation has to be carried out<\/em><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;plugins&gt;\r\n      &lt;plugin&gt;\r\n        &lt;groupId&gt;org.apache.maven.plugins&lt;\/groupId&gt;\r\n        &lt;artifactId&gt;maven-compiler-plugin&lt;\/artifactId&gt;\r\n        &lt;version&gt;3.6.1&lt;\/version&gt;\r\n        &lt;configuration&gt;\r\n          &lt;source&gt;1.8&lt;\/source&gt;\r\n          &lt;target&gt;1.8&lt;\/target&gt;\r\n        &lt;\/configuration&gt;\r\n      &lt;\/plugin&gt;\r\n    &lt;\/plugins&gt;\r\n<\/pre>\n<p><strong>Effective POM<\/strong><br \/>\nTells the Details of Super POM.xml Lists default configuration.<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n.\r\n.\r\n&lt;build&gt;\r\n    &lt;sourceDirectory&gt;D:\\java\\TestMvnProj2\\src\\main\\java&lt;\/sourceDirectory&gt;\r\n    &lt;testSourceDirectory&gt;D:\\java\\TestMvnProj2\\src\\test\\java&lt;\/testSourceDirectory&gt;\r\n    &lt;outputDirectory&gt;D:\\java\\TestMvnProj2\\target\\classes&lt;\/outputDirectory&gt;\r\n&lt;\/build&gt;\r\n.\r\n.\r\n<\/pre>\n<p>The above XML code specify the details of sourceDirectory, outputDirectory<\/p>\n<p>You can also see list of plugins called at different phases of maven life cycle. <\/p>\n<p><strong>Parent POM<\/strong><br \/>\nList of Child Projects are added into modules as separate module.<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n.\r\n.\r\n&lt;packaging&gt;pom&lt;\/packaging&gt;\r\n\r\n&lt;modules&gt;\r\n&lt;module&gt;Service&lt;\/module&gt;\r\n&lt;module&gt;Controller&lt;\/module&gt;\r\n&lt;module&gt;Model&lt;\/module&gt;\r\n&lt;\/modules&gt;\r\n.\r\n.\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/codethataint.com\/blog\/wp-content\/uploads\/2017\/04\/Parent.png\" height=\"252\" width=\"492\"\/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/codethataint.com\/blog\/wp-content\/uploads\/2017\/04\/Child.png\" height=\"319\" width=\"758 \"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;junit&lt;\/groupId&gt; &lt;artifactId&gt;junit&lt;\/artifactId&gt; &lt;version&gt;3.8.1&lt;\/version&gt; &lt;scope&gt;test&lt;\/scope&gt; &lt;\/dependency&gt; &lt;\/dependencies&gt; Specifying Version &lt;!&#8211;Version should be 3.8.1&#8211;&gt; &lt;version&gt;3.8.1&lt;\/version&gt; &lt;!&#8211;Version should less than or up to 3.8&#8211;&gt; &lt;version&gt;&#x5B;,3.8]&lt;\/version&gt; &lt;!&#8211;Version should less than 3.8&#8211;&gt; &lt;version&gt;&#x5B;,3.8)&lt;\/version&gt; &lt;!&#8211;Version should be between 3.1 to 3.8&#8211;&gt; &lt;!&#8211;If 3.8 is available it picks those&#8211;&gt; &lt;version&gt;&#x5B;3.1,3.8]&lt;\/version&gt; Specifying Scope &lt;!&#8211;Jar file would be available to JUnit Test&hellip; <a href=\"https:\/\/codethataint.com\/blog\/project-object-model-tags\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[215],"tags":[],"class_list":["post-2236","post","type-post","status-publish","format-standard","hentry","category-maven"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=2236"}],"version-history":[{"count":9,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2236\/revisions"}],"predecessor-version":[{"id":2248,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2236\/revisions\/2248"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=2236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=2236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=2236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}