2 <!-- Generated by Apache Maven Doxia Site Renderer at Nov 10, 2015 -->
3 <!-- Current: skip.html -->
4 <!-- Active: index.html -->
6 <!-- Skiplist: [index.html, getting-started.html] -->
9 <title>juplo - </title>
10 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11 <link rel="canonical" href="http://www.juplo.de/facebook-utils/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">Juplo - Facebook Utils</a></li>
39 <li class="b"><strong class="b">$shortTitle</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>$shortTitle</h1></header>
51 In most use-cases, the hibernate-maven-plugin is used to create a
52 test-database automatically. In this use-cases, it is very likely, that it
53 will result in mistakes/errors, if the goal is executed, when the tests
55 For example, one might manually overwrite the database-url with the url of
56 the production-database, in order to run other tests, like starting a
57 local webserver with the
58 <a class="externalLink" href="http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin">jetty-maven-plugin</a>.
59 If the export-goal would be executed in such a scenario, it might erase the
60 hole production-database, which is not very desireable.
63 Because of this, the configuration-parameter <tt>skip</tt> defaults to the value
64 of the proptery <tt>maven.test.skip</tt>. This way, the execution of the
65 hibernate-maven-plugin is skipped automatically, when the tests are
66 skipped. Think of it as a build-in security-belt.
69 If you do not like that, because you need the plugin to always execute the
70 export-goal, even if the tests are skipped you can configure that explicitly,
71 by setting the configuration-parameter <tt>skip</tt> to false:
73 <div class="prettyprint linenums lang-html"><pre>
75 <groupId>de.juplo</groupId>
76 <artifactId>hibernate-maven-plugin</artifactId>
79 <skip>false</skip>
80 </configuration>
81 </plugin></pre></div>
83 Or, if you want the export-goal to be executed by default and to be skipped
84 if you say so, you can bind the value of the configuration-parameter
85 <tt>skip</tt> to a custom property. For example:
87 <div class="prettyprint linenums lang-html"><pre>
89 <groupId>de.juplo</groupId>
90 <artifactId>hibernate-maven-plugin</artifactId>
93 <skip>${foo.bar}</skip>
94 </configuration>
95 </plugin></pre></div>
97 This way, the export-goal would be skipped, if you set the property
98 <tt>foo.bar</tt> to <tt>true</tt>. For example, if you specify <tt>-Dfoo.bar=true</tt>
104 <div class="marginal">
107 <a id="navigation"></a>
108 <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
109 <h2 class="nav menu">Section-Menu</h2>
111 <li class="m blog"><a href="/blog/" class="m">Blog</a></li>
112 <li class="m projects"><a href="/projects.html" class="m selected">Projects</a></li>
113 <li class="m about"><a href="/about.html" class="m">About</a></li>
115 <h2 class="nav submenu">
116 <span class="s">Submenu for section</span>
117 <a class="s selected" href="/projects.html">Projects</a>
119 <ul id="submenu" class="s">
120 <li class="s sub off"><a class="s" href="/hibernate4-maven-plugin/">Hibernate 4 Maven Plugin</a></li>
125 <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
126 <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
133 <ul id="footerlinks">
134 <li class="f" id="copyright">© <strong>mo</strong> 2015
136 <li class="f"><a class="f" href="/impressum.html">Impressum</a></li>
137 <li class="f about"><a class="f" href="/about.html">About</a></li>
141 <script type="text/javascript"><!--//--><![CDATA[//><!--
142 var _gaq = _gaq || [];
143 _gaq.push(['_setAccount', 'UA-571104-3']);
144 _gaq.push(['_trackPageview']);
146 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
147 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
148 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);