{"id":5508,"date":"2025-04-11T15:05:58","date_gmt":"2025-04-11T15:05:58","guid":{"rendered":"https:\/\/codethataint.com\/blog\/?p=5508"},"modified":"2025-04-11T15:13:14","modified_gmt":"2025-04-11T15:13:14","slug":"wp-dashboard","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/wp-dashboard\/","title":{"rendered":"Maven Skip Plugin Execution"},"content":{"rendered":"<p><strong class=\"ctaHeader3\">How to Skip Maven Plugin<\/strong><\/p>\n<ol>\n<li>Create a Profile<\/li>\n<li>Override the plugin in child pom.xml<\/li>\n<li>while running mvn in command prompt pass the profile as parameter\n<pre>\r\n>>mvn clean install -Pprofile_name\r\n<\/pre>\n<\/li>\n<\/ol>\n<p>If the plugin supports skip tag<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;profiles&gt;\r\n    &lt;profile&gt;\r\n        &lt;id&gt;skipTestAndDb&lt;\/id&gt;\r\n        &lt;properties&gt;\r\n            &lt;skipTests&gt;true&lt;\/skipTests&gt;\r\n            &lt;liquibase.should.run&gt;false&lt;\/liquibase.should.run&gt;\r\n        &lt;\/properties&gt;\r\n        &lt;plugin&gt;\r\n          &lt;groupId&gt;group&lt;\/groupId&gt;\r\n          &lt;artifactId&gt;artifact&lt;\/artifactId&gt;\r\n          &lt;configuration&gt;\r\n           &lt;skip&gt;true&lt;\/skip&gt;\r\n          &lt;\/configuration&gt;\r\n       &lt;\/plugin&gt;\r\n    &lt;\/profile&gt;\r\n&lt;\/profiles&gt;\r\n<\/pre>\n<p>Sometimes the plugin doesn&#8217;t support skip tag, in such case define use executions tag. If there is ID in parent pom.xml then same ID should be used in child pom.xml as well. If no ID is given setting phase to none alone would work. To get the plugin details for id run <em>mvn help:effective-pom<\/em> or <em>Intellij->Right click on project -> Maven -> Show Effective POM<\/em><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;plugin&gt;    \r\n    &lt;groupId&gt;group&lt;\/groupId&gt;   \r\n    &lt;artifactId&gt;artifact&lt;\/artifactId&gt;    \r\n    &lt;executions&gt;\r\n         &lt;execution&gt;\r\n           &lt;id&gt;TheNameOfTheRelevantExecution&lt;\/id&gt;\r\n           &lt;phase&gt;none&lt;\/phase&gt;\r\n         &lt;\/execution&gt;    \r\n    &lt;\/executions&gt;  \r\n&lt;\/plugin&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to Skip Maven Plugin Create a Profile Override the plugin in child pom.xml while running mvn in command prompt pass the profile as parameter >>mvn clean install -Pprofile_name If the plugin supports skip tag &lt;profiles&gt; &lt;profile&gt; &lt;id&gt;skipTestAndDb&lt;\/id&gt; &lt;properties&gt; &lt;skipTests&gt;true&lt;\/skipTests&gt; &lt;liquibase.should.run&gt;false&lt;\/liquibase.should.run&gt; &lt;\/properties&gt; &lt;plugin&gt; &lt;groupId&gt;group&lt;\/groupId&gt; &lt;artifactId&gt;artifact&lt;\/artifactId&gt; &lt;configuration&gt; &lt;skip&gt;true&lt;\/skip&gt; &lt;\/configuration&gt; &lt;\/plugin&gt; &lt;\/profile&gt; &lt;\/profiles&gt; Sometimes the plugin doesn&#8217;t&hellip; <a href=\"https:\/\/codethataint.com\/blog\/wp-dashboard\/\">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-5508","post","type-post","status-publish","format-standard","hentry","category-maven"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/5508","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=5508"}],"version-history":[{"count":4,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/5508\/revisions"}],"predecessor-version":[{"id":5512,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/5508\/revisions\/5512"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=5508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=5508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=5508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}