<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Java9 - Tag - My Notes</title><link>https://blog.emecas.net/tags/java9/</link><description>Java9 - Tag - My Notes</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 15 May 2020 16:09:38 -0400</lastBuildDate><atom:link href="https://blog.emecas.net/tags/java9/" rel="self" type="application/rss+xml"/><item><title>Maven in 5 Minutes</title><link>https://blog.emecas.net/posts/2020-05-15-maven-in-5-minutes/</link><pubDate>Fri, 15 May 2020 16:09:38 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-05-15-maven-in-5-minutes/</guid><description><![CDATA[<p>Maven in 5 Minutes<br>
Apache Maven&rsquo;s own quick start: with Java and Maven installed, create a first project with <code>mvn archetype:generate</code>, build it with <code>mvn package</code> and learn the build lifecycle phases.<br>
<a href="https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html" target="_blank" rel="noopener noreffer ">https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html</a><br>
Default lifecycle phases:</p>
<ul>
<li>validate: validate the project is correct and all necessary information is available</li>
<li>compile: compile the source code of the project</li>
<li>test: test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed</li>
<li>package: take the compiled code and package it in its distributable format, such as a JAR</li>
<li>integration-test: process and deploy the package if necessary into an environment where integration tests can be run</li>
<li>verify: run any checks to verify the package is valid and meets quality criteria</li>
<li>install: install the package into the local repository, for use as a dependency in other projects locally</li>
<li>deploy: done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects</li>
</ul>
<p>Two other lifecycles:</p>]]></description></item><item><title>Java 9 Variable Handles</title><link>https://blog.emecas.net/posts/2018-12-18-java-9-variable-handles/</link><pubDate>Tue, 18 Dec 2018 14:02:25 -0500</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2018-12-18-java-9-variable-handles/</guid><description><![CDATA[<p>Java 9 Variable Handles Demystified<br>
<a href="https://www.baeldung.com/java-variable-handles" target="_blank" rel="noopener noreffer ">https://www.baeldung.com/java-variable-handles</a><br>
Java 9 brought a number of new useful features for developers.</p>
<p>One of those is the java.lang.invoke.VarHandle API – representing variable handles – which we’re going to explore in this article.</p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/1e0c00b216938abc5d0c92decdf86cc8e56b64aa" target="_blank" rel="noopener noreffer "><code>1e0c00b</code></a> in My-Notes.</em></p>]]></description></item></channel></rss>