Projekt-Dokumentation (Aktueller Stand von juplo.de) hinzugefĆ¼gt
[website] / dist / facebook-utils-2.5.0 / skip.html
1 <!DOCTYPE html>
2 <!-- Generated by Apache Maven Doxia Site Renderer at Nov 10, 2015 -->
3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   <!-- Current: skip.html -->
4 <!-- Active: index.html -->
5 <!-- Path: $path -->
6 <!-- Skiplist: [index.html, getting-started.html] -->
7 <html>
8   <head>
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;
16     </style>
17     <script src="/js/prettify.js"></script>
18     <!--[if lt IE 9]>
19       <script src="/js/html5shiv.js"></script>
20     <![endif]-->
21     <!--[if IE 8]>
22       <link rel="stylesheet" type="text/css" href="/css/ie8.css" />
23     <![endif]-->
24         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
25   </head>
26   <body class="menu" onload="prettyPrint()">
27     <div id="page" class="cf">
28       <header id="header">
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>
31         <hr class="h" />
32       </header>
33       <div id="breadcrumb">
34         <strong class="b title">You are here:</strong>
35         <ol class="b">
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>
40                   </ol>
41         <a class="hide" href="#navigation">Jump to navigation</a>
42         <hr class="b" />
43       </div>
44       <main class="content cf">
45         <article id="content" class="main">
46           <header><h1>$shortTitle</h1></header>
47           
48  
49  
50   <p>
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
54   are skipped.
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.
61   </p>
62   <p>
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.
67   </p>
68   <p>
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:
72   </p>
73   <div class="prettyprint linenums lang-html"><pre>
74 &lt;plugin&gt;
75   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
76   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
77   ...
78   &lt;configuration&gt;
79     &lt;skip&gt;false&lt;/skip&gt;
80   &lt;/configuration&gt;
81 &lt;/plugin&gt;</pre></div>
82   <p>
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:
86   </p>
87   <div class="prettyprint linenums lang-html"><pre>
88 &lt;plugin&gt;
89   &lt;groupId&gt;de.juplo&lt;/groupId&gt;
90   &lt;artifactId&gt;hibernate-maven-plugin&lt;/artifactId&gt;
91   ...
92   &lt;configuration&gt;
93     &lt;skip&gt;${foo.bar}&lt;/skip&gt;
94   &lt;/configuration&gt;
95 &lt;/plugin&gt;</pre></div>
96   <p>
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>
99   on the command-line.
100   </p>
101  
102
103         </article>
104         <div class="marginal">
105           <nav id="nav">
106             <hr class="n" />
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>
110             <ul id="menu">
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>
114             </ul>
115             <h2 class="nav submenu">
116               <span class="s">Submenu for section</span>
117               <a class="s selected" href="/projects.html">Projects</a>
118             </h2>
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>
121                                           </ul>
122             <hr class="n" />
123           </nav>
124           <aside class="m">
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" />
127             </a>
128           </aside>
129         </div>
130       </main>
131       <footer id="footer">
132         <hr class="f" />
133         <ul id="footerlinks">
134           <li class="f" id="copyright">&#xa9; <strong>mo</strong>             2015
135       </li>
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>
138         </ul>
139       </footer>
140     </div>
141         <script type="text/javascript"><!--//--><![CDATA[//><!--
142       var _gaq = _gaq || [];
143       _gaq.push(['_setAccount', 'UA-571104-3']);
144       _gaq.push(['_trackPageview']);
145       (function() {
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);
149       })();
150     //--><!]]>
151     </script>
152       </body>
153 </html>