snipt

Ctrl+h for KB shortcuts

XML

maven file dependency

1
2
3
4
5
6
<dependency>
    <artifactId>..</artifactId>
    <groupId>..</groupId>
    <scope>system</scope>
    <systemPath>${basedir}/lib/dependency.jar</systemPath>
</dependency>
https://snipt.net/embed/6556d6f758fe77870930d7f6489d06b1/
/raw/6556d6f758fe77870930d7f6489d06b1/
6556d6f758fe77870930d7f6489d06b1
xml
XML
6
2019-08-19T13:45:37
True
False
False
Jan 09, 2016 at 03:27 AM
/api/public/snipt/143483/
maven-file-dependency
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">&lt;dependency&gt;</span> </span><span id="L-2"><a name="L-2"></a> <span class="nt">&lt;artifactId&gt;</span>..<span class="nt">&lt;/artifactId&gt;</span> </span><span id="L-3"><a name="L-3"></a> <span class="nt">&lt;groupId&gt;</span>..<span class="nt">&lt;/groupId&gt;</span> </span><span id="L-4"><a name="L-4"></a> <span class="nt">&lt;scope&gt;</span>system<span class="nt">&lt;/scope&gt;</span> </span><span id="L-5"><a name="L-5"></a> <span class="nt">&lt;systemPath&gt;</span>${basedir}/lib/dependency.jar<span class="nt">&lt;/systemPath&gt;</span> </span><span id="L-6"><a name="L-6"></a><span class="nt">&lt;/dependency&gt;</span> </span></pre></div> </td></tr></table>
dependency, file, maven, mvn, pom

Text only

mvn package without test

mvn -Dmaven.test.skip=true package
https://snipt.net/embed/594938291496d07e416b9ada971e565e/
/raw/594938291496d07e416b9ada971e565e/
594938291496d07e416b9ada971e565e
text
Text only
1
2019-08-18T09:48:29
True
False
False
Oct 04, 2012 at 12:54 PM
/api/public/snipt/48054/
mvn-package-without-test
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mvn -Dmaven.test.skip=true package </span></pre></div> </td></tr></table>
java, maven, mvn, tools

Bash

skip unit tests in maven

mvn install -Dmaven.test.skip=true
https://snipt.net/embed/ffb40d8991ad44c4e13f1ae85b5836ed/
/raw/ffb40d8991ad44c4e13f1ae85b5836ed/
ffb40d8991ad44c4e13f1ae85b5836ed
bash
Bash
1
2019-08-01T12:19:52
True
False
False
/api/public/snipt/6674/
skip-unit-tests-in-maven
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mvn install -Dmaven.test.skip<span class="o">=</span><span class="nb">true</span> </span></pre></div> </td></tr></table>
mvn, test