<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://medjava.ro/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://medjava.ro/feed.php">
        <title>Med Java - maven</title>
        <description></description>
        <link>https://medjava.ro/</link>
        <image rdf:resource="https://medjava.ro/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-09T10:17:00+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://medjava.ro/doku.php?id=maven:build-executable-jar&amp;rev=1735842138&amp;do=diff"/>
                <rdf:li rdf:resource="https://medjava.ro/doku.php?id=maven:commands&amp;rev=1738577137&amp;do=diff"/>
                <rdf:li rdf:resource="https://medjava.ro/doku.php?id=maven:customize-compiler-options&amp;rev=1688488591&amp;do=diff"/>
                <rdf:li rdf:resource="https://medjava.ro/doku.php?id=maven:encrypt-password&amp;rev=1688488591&amp;do=diff"/>
                <rdf:li rdf:resource="https://medjava.ro/doku.php?id=maven:unit-vs-integration-tests&amp;rev=1735842138&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://medjava.ro/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Med Java</title>
        <link>https://medjava.ro/</link>
        <url>https://medjava.ro/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://medjava.ro/doku.php?id=maven:build-executable-jar&amp;rev=1735842138&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-01-02T18:22:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>build-executable-jar</title>
        <link>https://medjava.ro/doku.php?id=maven:build-executable-jar&amp;rev=1735842138&amp;do=diff</link>
        <description>Build a complete executable jar file containing all the other jar dependencies (as classes inside it)

For this we can use the maven shade plugin, so we&#039;ll need to add something like this to our main pom.xml file:


&lt;build&gt;
        &lt;plugins&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
                &lt;version&gt;3.5.0&lt;/version&gt;
                &lt;executions&gt;
                    &lt;execution&gt;
               …</description>
    </item>
    <item rdf:about="https://medjava.ro/doku.php?id=maven:commands&amp;rev=1738577137&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-03T10:05:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>commands</title>
        <link>https://medjava.ro/doku.php?id=maven:commands&amp;rev=1738577137&amp;do=diff</link>
        <description>Set Java version source and target
&lt;project&gt;
  [...]
  &lt;properties&gt;
    &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
    &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
  &lt;/properties&gt;
  [...]
&lt;/project&gt;
Run a single test class
mvn -Dtest=TestCircle test</description>
    </item>
    <item rdf:about="https://medjava.ro/doku.php?id=maven:customize-compiler-options&amp;rev=1688488591&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-04T16:36:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>customize-compiler-options</title>
        <link>https://medjava.ro/doku.php?id=maven:customize-compiler-options&amp;rev=1688488591&amp;do=diff</link>
        <description>Add some custom options to java compiler from maven

Add this to the project pom file:


&lt;build&gt;
        &lt;plugins&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                &lt;version&gt;3.10.1&lt;/version&gt;
                &lt;configuration&gt;
                    &lt;compilerArgs&gt;
                        &lt;arg&gt;-verbose&lt;/arg&gt;
                        &lt;arg&gt;-Xlint:all,-options,-path&lt;/arg&gt;
                    &lt;/compi…</description>
    </item>
    <item rdf:about="https://medjava.ro/doku.php?id=maven:encrypt-password&amp;rev=1688488591&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-04T16:36:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>encrypt-password</title>
        <link>https://medjava.ro/doku.php?id=maven:encrypt-password&amp;rev=1688488591&amp;do=diff</link>
        <description>Specify password in settings.xml

To connect / deploy to a maven repository that requires a password:

Create a master password in settings-security.xml file. Place this file in ~/.m2 folder.
To create the password:
mvn -emp mypassword
It will print:
{rsB56BJcqoEHZqEZ0R1VR4TIspmODx1Ln8/PVvsgaGw=}</description>
    </item>
    <item rdf:about="https://medjava.ro/doku.php?id=maven:unit-vs-integration-tests&amp;rev=1735842138&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-01-02T18:22:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>unit-vs-integration-tests</title>
        <link>https://medjava.ro/doku.php?id=maven:unit-vs-integration-tests&amp;rev=1735842138&amp;do=diff</link>
        <description>Unit tests vs Integration tests

The Maven build lifecycle consists of several phases, such as:

	*  compile
	*  test
	*  package
	*  verify
	*  install. 

The test phase is responsible for executing the unit tests.

The verify phase is responsible for executing the integration tests.</description>
    </item>
</rdf:RDF>
