2 <!-- Generated by Apache Maven Doxia Site Renderer 1.6 at 2016-03-09 -->
3 <!-- Current: skip.html -->
4 <!-- Active: index.html -->
5 <!-- Path: [index.html, skip.html] -->
6 <!-- Skiplist: [index.html, configuration.html, create-mojo.html, drop-mojo.html, debugging.html, skip.html, force.html, pitfalls.html] -->
9 <title>juplo - Hibernate Maven Plugin - Skipping Execution</title>
10 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11 <link rel="canonical" href="http://juplo.de/hibernate-maven-plugin/skip.html"/>
12 <meta name="viewport" content="width=device-width, initial-scale=1" />
13 <link rel="stylesheet" type="text/css" href="/css/base.css" />
14 <style type="text/css">
15 @import '/css/screen.css' screen;
17 <script src="/js/prettify.js"></script>
19 <script src="/js/html5shiv.js"></script>
22 <link rel="stylesheet" type="text/css" href="/css/ie8.css" />
24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
26 <body class="menu" onload="prettyPrint()">
27 <div id="page" class="cf">
29 <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
30 <span id="slogan"><strong>Java</strong> bits from nerds for nerds</span>
34 <strong class="b title">You are here:</strong>
36 <li class="b"><a class="b" href="/">Home</a></li>
37 <li class="b"><a class="b" href="/projects.html">Projects</a></li>
38 <li class="b"><a class="b" href="./index.html">Hibernate Maven Plugin</a></li>
39 <li class="b"><strong class="b">Skipping Execution</strong></li>
41 <a class="hide" href="#navigation">Jump to navigation</a>
44 <main class="content cf">
45 <article id="content" class="main">
46 <header><h1>Skipping Execution</h1></header>
52 In most use-cases, the hibernate-maven-plugin is used to create a
53 test-database automatically. In this use-cases, it is very likely, that it
54 will result in mistakes/errors, if the goal is executed, when the tests
56 For example, one might manually overwrite the database-url with the url of
57 the production-database, in order to run other tests, like starting a
58 local webserver with the
59 <a class="externalLink" href="http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin">jetty-maven-plugin</a>.
60 If the drop-goal would be executed in such a scenario, it might erase the
61 hole production-database, which is not very desireable.
65 Because of this, the configuration-parameter <tt>skip</tt> defaults to the value
66 of the proptery <tt>maven.test.skip</tt>. This way, the execution of the
67 hibernate-maven-plugin is skipped automatically, when the tests are
68 skipped. Think of it as a build-in security-belt.
72 If you do not like that, because you need the plugin to always,
73 even if the tests are skipped you can configure that explicitly,
74 by setting the configuration-parameter <tt>skip</tt> to false:
78 <pre class="prettyprint linenums lang-html">
80 <groupId>de.juplo</groupId>
81 <artifactId>hibernate-maven-plugin</artifactId>
84 <skip>false</skip>
85 </configuration>
86 </plugin></pre></div>
89 Or, if you want the plugin to be executed by default and to be skipped
90 if you say so, you can bind the value of the configuration-parameter
91 <tt>skip</tt> to a custom property. For example:
95 <pre class="prettyprint linenums lang-html">
97 <groupId>de.juplo</groupId>
98 <artifactId>hibernate-maven-plugin</artifactId>
100 <configuration>
101 <skip>${foo.bar}</skip>
102 </configuration>
103 </plugin></pre></div>
106 This way, the plugin would be skipped, if you set the property
107 <tt>foo.bar</tt> to <tt>true</tt>. For example, if you specify <tt>-Dfoo.bar=true</tt>
113 <div class="marginal">
116 <a id="navigation"></a>
117 <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
118 <h2 class="nav menu">Section-Menu</h2>
120 <li class="m blog"><a href="/blog/" class="m">Blog</a></li>
121 <li class="m projects"><a href="/projects.html" class="m selected">Projects</a></li>
122 <li class="m about"><a href="/about.html" class="m">About</a></li>
124 <h2 class="nav submenu">
125 <span class="s">Submenu for section</span>
126 <a class="s selected" href="/projects.html">Projects</a>
128 <ul id="submenu" class="s">
130 <a class="s selected" href="./index.html">Hibernate Maven Plugin</a>
131 <ul class="s active">
133 <a href="configuration.html" class="s" title="Configuration Examples">Configuration Examples</a>
136 <a href="create-mojo.html" class="s" title="Goal: CREATE">Goal: CREATE</a>
139 <a href="drop-mojo.html" class="s" title="Goal: DROP">Goal: DROP</a>
142 <a href="debugging.html" class="s" title="Enable Debug-Output">Enable Debug-Output</a>
145 <strong class="s">Skipping Execution</strong>
148 <a href="force.html" class="s" title="Force Exceution">Force Exceution</a>
151 <a href="pitfalls.html" class="s" title="Known Pitfalls (FAQ)">Known Pitfalls (FAQ)</a>
154 <a href="project-info.html" class="s" title="Project Information">Project Information</a>
157 <a href="project-reports.html" class="s" title="Project Reports">Project Reports</a>
165 <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
166 <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
173 <ul id="footerlinks">
174 <li class="f" id="copyright">© <strong>mo</strong> 2016
176 <li class="f"><a class="f" href="/impressum.html">Impressum</a></li>
177 <li class="f about"><a class="f" href="/about.html">About</a></li>
181 <script type="text/javascript"><!--//--><![CDATA[//><!--
182 var _gaq = _gaq || [];
183 _gaq.push(['_setAccount', 'UA-571104-3']);
184 _gaq.push(['_trackPageview']);
186 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
187 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
188 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);