<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Programming | Automation Dojos</title>
	<atom:link href="https://www.automationdojos.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.automationdojos.com/category/programming/</link>
	<description>Applied Automation Ops</description>
	<lastBuildDate>Sat, 25 Mar 2023 00:18:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.automationdojos.com/wp-content/uploads/2021/06/Adjo_X_fav_32.png</url>
	<title>Programming | Automation Dojos</title>
	<link>https://www.automationdojos.com/category/programming/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Basic PowerShell Commands That You Should Know</title>
		<link>https://www.automationdojos.com/basic-powershell-commands/</link>
					<comments>https://www.automationdojos.com/basic-powershell-commands/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Sun, 20 Feb 2022 15:51:00 +0000</pubDate>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[WindowsPowerShell]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=25359</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/basic-powershell-commands/">Basic PowerShell Commands That You Should Know</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" fetchpriority="high" srcset="https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds.png 575w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds-400x240.png 400w" sizes="(max-width: 575px) 100vw, 575px" /></p>
<p>One of the key benefits of PowerShell is its object-oriented nature. Instead of working with text-based output like traditional command-line interfaces, PowerShell returns objects that can be easily manipulated using its built-in cmdlets (pronounced &#8220;command-lets&#8221;). This makes it easy to automate complex tasks, as administrators can pipe the output of one cmdlet to another, building [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/basic-powershell-commands/">Basic PowerShell Commands That You Should Know</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/basic-powershell-commands/">Basic PowerShell Commands That You Should Know</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds.png 575w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-powershell-cmds-400x240.png 400w" sizes="(max-width: 575px) 100vw, 575px" /></p><div role="navigation" aria-label="Table of Contents" class="simpletoc blog-post-toc toc-none wp-block-simpletoc-toc"><h2 class="simpletoc-title">Table of Contents</h2>
<ul class="simpletoc-list">
<li><a href="#commands-to-find-other-commands">Commands To Find Other Commands</a>

</li>
<li><a href="#essential-powershell-commands">Essential PowerShell Commands</a>
</li></ul></div>


<p>One of the key benefits of PowerShell is its object-oriented nature. Instead of working with text-based output like traditional command-line interfaces, PowerShell returns objects that can be easily manipulated using its built-in cmdlets (pronounced &#8220;command-lets&#8221;). This makes it easy to automate complex tasks, as administrators can pipe the output of one cmdlet to another, building up a chain of commands that perform a series of operations on an object. </p>


<h2 class="wp-block-heading" id="commands-to-find-other-commands">Commands To Find Other Commands</h2>


<p>I consider this set of commands very useful because they are used to discover other commands. These commands help in discovering syntax, usage, and members of other commands so you don&#8217;t have to memorize the full commands catalog. Here are the most useful and frequently used commands that you must know:</p>


<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><b>Commands</b></td>
<td><b>Description</b></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-Member</span></td>
<td>Gets the properties and methods of objects. You can use following parameters to this command: <i>-Name, -InputObject, -MemberType, -Static, -View</i></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-Command</span></td>
<td>Sets the maximum number of digits allowed in the integer portion of a numberThe Get-Command cmdlet gets all commands that are installed on the computer, including <i>cmdlets, aliases, functions, filters, scripts, and applications</i>. Get-Command gets the commands from PowerShell modules and commands that were imported from other sessions</td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-Help</span></td>
<td>Helps you learn how to use commands. Following parameters can be used: <i>-Full, -Detailed, _-Examples, -Online, -Parameter, -ShowWindow</i></td>
</tr>
</tbody>
</table>
</div>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>


<h2 class="wp-block-heading" id="essential-powershell-commands">Essential PowerShell Commands</h2>


<p>Here is a list of basic PowerShell commands that you should know.</p>


<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><b>Commands</b></td>
<td><b>Description</b></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Set-Location</span></td>
<td>This cmdlet sets the working location to a specified location. That location could be a directory, a subdirectory, a registry location, or any provider path. Used as an alternative to the CD command. Parameter <i>-Path</i></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-ChildItem</span></td>
<td>Gets the items and child items in one or more specified locations. Parameter <i>-Path</i></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Set-ExecutionPolicy</span></td>
<td>Scripting is disabled by default to prevent malicious scripts from executing in the PowerShell environment. The Set-ExecutionPolicy cmdlet&#8217;s default scope is LocalMachine, which affects everyone who uses the computer. To change the execution policy for LocalMachine, start PowerShell with Run as Administrator. You can set one of four security levels <i>(a) Restricted (b) All Signed (c) Remote Signed (d) Unrestricted</i></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-ExecutionPolicy</span></td>
<td>Gets the execution policies for the current session. To display the execution policies for each scope in the order of precedence, use <i>Get-ExecutionPolicy -List</i>. To see the effective execution policy for your PowerShell session use Get-ExecutionPolicy with no parameters</td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-Service</span></td>
<td>Gets the processes that are running on the local computer</td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-Process</span></td>
<td>Gets the services on the computer</td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Export-CSV</span></td>
<td>Lets you export data to a CSV file. e.g. <i>&#8216;Get-Command | Export-CSV Commands.csv&#8217;</i></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">ConvertTo-Html</span></td>
<td>You can use this cmdlet to display the output of a command in a Web page. The command takes in the output file you want to convert and the filename you want to save it with. E.g. <i>Get-Command | ConvertTo-Html &gt; Commands.html</i></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-Module</span></td>
<td>The Get-Module cmdlet lists the PowerShell modules that have been imported, or that can be imported, into a PowerShell session. Without parameters, Get-Module gets modules that have been imported into the current session</td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-Module -ListAvailable</span></td>
<td>This command gets the modules that are installed on the computer and can be imported into the current session. Get-Module looks for available modules in the path specified by the <i>$env:PSModulePath</i> environment variable</td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-InstalledModule</span></td>
<td>This cmdlet gets PowerShell modules that are installed on a computer using PowerShellGet</td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Copy-Item</span></td>
<td>This cmdlet copies an item from one location to another location in the same namespace. To copy files and folders, type Copy-Item followed by the source <i>-Path, -Destination parameter, and destination address.</i> e.g. <i>Copy-Item &#8220;E:\Directory1&#8221; -Destination &#8220;E:\Directory2&#8221; -Recurse</i></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Move-Item</span></td>
<td>This cmdlet moves an item, including its properties, contents, and child items, from one location to another location. The locations must be supported by the same provider. e.g. <i>Move-Item -Path &#8220;E:\Folder1&#8221; -Destination &#8220;E:\Folder2&#8221;</i></td>
</tr>
<tr>
<td><span class="su-label su-label-type-black">Get-Content</span></td>
<td>This cmdlet lets you view the content of an item item without using a text editor. <i>E.g. Get-Content &#8220;E:\Folder1\Test.txt&#8221;</i></td>
</tr>
</tbody>
</table>
</div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<p></p>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25359" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25359" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25359" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25359&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25359" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=25359" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=25359', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/basic-powershell-commands/">Basic PowerShell Commands That You Should Know</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/basic-powershell-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Oh-My-Posh On Windows PowerShell</title>
		<link>https://www.automationdojos.com/how-to-install-oh-my-posh-on-windows-powershell/</link>
					<comments>https://www.automationdojos.com/how-to-install-oh-my-posh-on-windows-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Fri, 14 Jan 2022 11:42:52 +0000</pubDate>
				<category><![CDATA[How-To PowerShell]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Gists]]></category>
		<category><![CDATA[oh-my-posh]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[WindowsPowerShell]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=25326</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/how-to-install-oh-my-posh-on-windows-powershell/">How To Install Oh-My-Posh On Windows PowerShell</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh.png 575w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh-400x240.png 400w" sizes="(max-width: 575px) 100vw, 575px" /></p>
<p>Oh-My-Posh is a powerful custom prompt engine for any shell that has the ability to adjust the prompt string with a function or variable. It does not only beautify the terminal, but it also increases the work efficiency by adding lot of features related to usability, hints, history etc. It also comes with a good [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/how-to-install-oh-my-posh-on-windows-powershell/">How To Install Oh-My-Posh On Windows PowerShell</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/how-to-install-oh-my-posh-on-windows-powershell/">How To Install Oh-My-Posh On Windows PowerShell</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh.png 575w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2023/03/post-installing-oh-my-posh-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p class="proj-desc-hide">Oh-My-Posh is a powerful custom prompt engine for any shell that has the ability to adjust the prompt string with a function or variable. It does not only beautify the terminal, but it also increases the work efficiency by adding lot of features related to usability, hints, history etc. It also comes with a good number of pre-built themes for your prompt, so you can either choose one, customize a pre-built theme or even create a new one.</p>



<div><script src="https://gist.github.com/d7904b76af760430ad086473da759d97.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25326" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25326" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25326" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25326&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D25326" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=25326" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=25326', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/how-to-install-oh-my-posh-on-windows-powershell/">How To Install Oh-My-Posh On Windows PowerShell</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/how-to-install-oh-my-posh-on-windows-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maven Common Commands Reference</title>
		<link>https://www.automationdojos.com/maven-common-commands-reference/</link>
					<comments>https://www.automationdojos.com/maven-common-commands-reference/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Thu, 27 May 2021 10:11:00 +0000</pubDate>
				<category><![CDATA[Github Gists]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven Gists]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache-maven]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[github-gists]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[maven command]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=23533</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/maven-common-commands-reference/">Maven Common Commands Reference</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands.png 575w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Maven offers a good set of commands and CLI Options to carry out wide range of Dev tasks. Most of these commands are in fact Maven build life cycles, phases and goals. Here is a list of common Maven commands along with explanation. But before we go through the Maven commands, it is good idea [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/maven-common-commands-reference/">Maven Common Commands Reference</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/maven-common-commands-reference/">Maven Common Commands Reference</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands.png 575w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-commands-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p class="proj-desc-hide">Maven offers a good set of commands and CLI Options to carry out wide range of Dev tasks. Most of these commands are in fact Maven build life cycles, phases and goals.</p>

<p class="proj-desc-hide">Here is a list of common Maven commands along with explanation. But before we go through the Maven commands, it is good idea to understand the structure or syntax of Maven commands along with a brief about the Maven lifecycle, phases and goals.</p>



<div><script src="https://gist.github.com/f51a3e908b0fe65340b4e99ce3bf3b8e.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23533" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23533" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23533" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23533&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23533" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=23533" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=23533', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/maven-common-commands-reference/">Maven Common Commands Reference</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/maven-common-commands-reference/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maven Build Life Cycles, Phases and Goals</title>
		<link>https://www.automationdojos.com/maven-build-life-cycles-phases-and-goals/</link>
					<comments>https://www.automationdojos.com/maven-build-life-cycles-phases-and-goals/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Wed, 19 May 2021 12:30:00 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache-maven]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[maven goals]]></category>
		<category><![CDATA[maven lifecycle]]></category>
		<category><![CDATA[maven phase]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=23537</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/maven-build-life-cycles-phases-and-goals/">Maven Build Life Cycles, Phases and Goals</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Maven’s Sequential Execution In Maven, you have the option of executing a build phase or build goal. But unlike build goals, which can be called and executed individually, Maven follows a or order of execution for build phases. For example, if you run a phase that is at level 5 in the life cycle hierarchy, [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/maven-build-life-cycles-phases-and-goals/">Maven Build Life Cycles, Phases and Goals</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/maven-build-life-cycles-phases-and-goals/">Maven Build Life Cycles, Phases and Goals</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/05/post-maven-cycle-phases-goals-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p><div role="navigation" aria-label="Table of Contents" class="simpletoc blog-post-toc wp-block-simpletoc-toc"><h2 class="simpletoc-title">Table of Contents</h2>
<ul class="simpletoc-list">
<li><a href="#mavens-sequential-execution">Maven’s Sequential Execution</a>

</li>
<li><a href="#maven-build-life-cycles">Maven Build Life Cycles</a>


<ul><li>
<a href="#executing-maven-life-cycles">Executing Maven Life Cycles</a>

</li>
</ul>
<li><a href="#maven-build-phases">Maven Build Phases</a>


<ul><li>
<a href="#build-phases-for-default-life-cycle">Build Phases for Default Life Cycle</a>

</li>
<li><a href="#build-phases-for-clean-life-cycle">Build Phases for Clean Life Cycle</a>

</li>
<li><a href="#build-phases-for-site-life-cycle">Build Phases for Site Life Cycle</a>

</li>
<li><a href="#avoid-calling-intermediary-phases">Avoid Calling Intermediary Phases</a>

</li>
</ul>
<li><a href="#maven-build-goal">Maven Build Goal</a>


<ul><li>
<a href="#executing-maven-build-goals">Executing Maven Build Goals</a>

</li>
<li><a href="#adding-goals-to-phases">Adding Goals to Phases</a>

</li>
<li><a href="#maven-project-packaging">Maven Project Packaging</a>

</li>
<li><a href="#maven-plugins">Maven Plugins</a>
</li>
</ul>
</li></ul></div>

<h2 class="wp-block-heading" id="mavens-sequential-execution">Maven’s Sequential Execution</h2>


<p>In Maven, you have the option of executing a <em>build phase</em> or <em>build goal</em>. But unlike build goals, which can be called and executed individually, Maven follows a <span class="su-label su-label-type-default"><em>sequential</em></span> or <span class="su-label su-label-type-default"><em>hierarchical</em></span> order of execution for build phases. </p>



<p>For example, if you run a phase that is at level 5 in the life cycle hierarchy, all preceding phases (i.e., phase 1 to 4) are also executed. This will become clearer with explanations in the subsequent sections.</p>



<p>Let us understand, what do we mean by &#8216;<em>sequential execution</em>&#8216; in a more realistic way, by looking at what happens when you execute <em>build phases</em> or <em>build goals</em>:</p>



<div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div>


<div class="su-list" style="margin-left:0px">
<ul>
<li><i class="sui sui-gear" style="color:#777"></i> When you execute a <strong>build phase</strong>, you are in fact executing all build goals within that build phase, as well as all build phases prior to this phase in the hierarchy.</li>
<li><i class="sui sui-gear" style="color:#777"></i> In Maven terms, a <strong>build goal</strong> is a <em>&#8216;unit of work&#8217;</em>. Hence It is possible to execute goals independently (besides being part of a larger work hierarchy). So, when you can execute a specific build goal directly, in this case only the specific build goal (and task inside goal) gets executed.</li>
</ul>
</div>

<h2 class="wp-block-heading" id="maven-build-life-cycles">Maven Build Life Cycles</h2>


<p>The Maven build life cycle is divided into ‘<em>Build Phases’</em>. These build phases are further divided into &#8216;<em>Build Goals</em>&#8216;. <span class="su-label su-label-type-default">[Lifecycle &gt; Phases &gt; Goals]</span>



<p>By default, Maven contains the following three built-in build life cycles:</p>


<div class="su-list" style="margin-left:0px">
<ul>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>default</strong>: Responsible for project deployment (<em>contains 23 phases</em>)</li>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>clean</strong>: Cleans project and removes all files generated by the previous build (<em>contains 3 phases</em>)</li>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>site</strong>: Create the project&#8217;s site documentation (<em>contains 4 phases</em>)</li>
</ul>
</div>


<p>Each of these build lifecycles is defined by a different list of <em>build phases</em>, wherein a build phase represents a stage in the lifecycle as shown in the below table:</p>



<p></p>


<div class="su-tabs su-tabs-style-modern-blue su-tabs-mobile-stack" data-active="1" data-scroll-offset="0" data-anchor-in-url="no"><div class="su-tabs-nav"><span class="" data-url="" data-target="blank" tabindex="0" role="button">Clean Lifecycle</span><span class="" data-url="" data-target="blank" tabindex="0" role="button">Default Lifecycle</span><span class="" data-url="" data-target="blank" tabindex="0" role="button">Site Lifecycle</span></div><div class="su-tabs-panes"><div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="Clean Lifecycle"> <div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><strong>Phase</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>pre-clean</td>
<td>execute processes needed prior to the actual project cleaning</td>
</tr>
<tr>
<td>clean</td>
<td>remove all files generated by the previous build</td>
</tr>
<tr>
<td>post-clean</td>
<td>execute processes needed to finalize the project cleaning</td>
</tr>
</tbody>
</table>
</div> </div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="Default Lifecycle"> <div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><strong>Phase</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>validate</td>
<td>validate the project is correct and all necessary information is available</td>
</tr>
<tr>
<td>initialize</td>
<td>initialize build state, e.g. set properties or create directories</td>
</tr>
<tr>
<td>generate-sources</td>
<td>generate any source code for inclusion in compilation</td>
</tr>
<tr>
<td>process-sources</td>
<td>process the source code, for example to filter any values</td>
</tr>
<tr>
<td>generate-resources</td>
<td>generate resources for inclusion in the package</td>
</tr>
<tr>
<td>process-resources</td>
<td>copy and process the resources into the destination directory, ready for packaging</td>
</tr>
<tr>
<td>compile</td>
<td>compile the source code of the projec</td>
</tr>
<tr>
<td>process-classes</td>
<td>post-process the generated files from compilation, for example to do bytecode enhancement on Java classes</td>
</tr>
<tr>
<td>generate-test-sources</td>
<td>generate any test source code for inclusion in compilation</td>
</tr>
<tr>
<td>process-test-sources</td>
<td>process the test source code, for example to filter any values</td>
</tr>
<tr>
<td>sgenerate-test-resources</td>
<td>create resources for testing</td>
</tr>
<tr>
<td>process-test-resources</td>
<td>copy and process the resources into the test destination directory</td>
</tr>
<tr>
<td>test-compile</td>
<td>compile the test source code into the test destination directory</td>
</tr>
<tr>
<td>process-test-classes</td>
<td>post-process the generated files from test compilation, for example to do bytecode enhancement on Java classes</td>
</tr>
<tr>
<td>test</td>
<td>run tests using a suitable unit testing framework. These tests should not require the code be packaged or deployed</td>
</tr>
<tr>
<td>prepare-package</td>
<td>perform any operations necessary to prepare a package before the actual packaging. This often results in an unpacked, processed version of the package</td>
</tr>
<tr>
<td>package</td>
<td>take the compiled code and package it in its distributable format, such as a JAR</td>
</tr>
<tr>
<td>pre-integration-test</td>
<td>erform actions required before integration tests are executed. This may involve things such as setting up the required environment</td>
</tr>
<tr>
<td>integration-test</td>
<td>process and deploy the package if necessary into an environment where integration tests can be run</td>
</tr>
<tr>
<td>post-integration-test</td>
<td>perform actions required after integration tests have been executed. This may including cleaning up the environment</td>
</tr>
<tr>
<td>verify</td>
<td>run any checks to verify the package is valid and meets quality criteria</td>
</tr>
<tr>
<td>install</td>
<td>install the package into the local repository, for use as a dependency in other projects locally</td>
</tr>
<tr>
<td>deploy</td>
<td>done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects</td>
</tr>
</tbody>
</table>
</div> </div>
<div class="su-tabs-pane su-u-clearfix su-u-trim" data-title="Site Lifecycle"><div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><strong>Phase</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>pre-site</td>
<td>execute processes needed prior to the actual project site generation</td>
</tr>
<tr>
<td>site</td>
<td>generate the project&#8217;s site documentation</td>
</tr>
<tr>
<td>post-site</td>
<td>execute processes needed to finalize the site generation, and to prepare for site deployment</td>
</tr>
<tr>
<td>site-deploy</td>
<td>deploy the generated site documentation to the specified web server</td>
</tr>
</tbody>
</table>
</div></div></div></div>


<p>For a complete listing of Maven&#8217;s life cycle and phases refer to the above table.</p>


<h3 class="wp-block-heading" id="executing-maven-life-cycles">Executing Maven Life Cycles</h3>


<p>It is not possible to execute the &#8216;default&#8217; build life cycle directly (not permitted). In fact, there is no command for executing any Maven life cycle ‘directly’. Instead, you execute a life cycle by calling single or multiple ‘build phases’ contained inside the lifecycle in such a way that all preceding build phases of the lifecycle automatically get executed (due to the sequential execution nature of Maven) giving you the net result equivalent to full life cycle execution.</p>



<p>For a more concrete example, consider the Maven&#8217;s default life cycle phases as mentioned below in the section <em>‘<a href="https://www.automationdojos.com/maven-build-life-cycles-phases-and-goals/#31-build-phases-for-default-life-cycle">Build Phases for Default Life Cycle</a>’</em>, and suppose you want to execute the entire default life cycle. if you executed ‘deploy’ phase of the default Maven lifecycle by calling &#8211;</p>



<pre class="wp-block-code"><code>mvn deploy</code></pre>



<p>The above command would execute each default lifecycle phase in the order (<em>validate &gt; compile &gt; test &gt; package &gt; integration-test &gt; verify &gt; install</em>), before executing &#8216;deploy&#8217; phase itself. </p>


<div class="su-list" style="margin-left:0px">
<ul>
<li><i class="sui sui-arrow-down" style="color:#68b63a"></i> Validate Phase</li>
<li><i class="sui sui-arrow-down" style="color:#68b63a"></i> Compile Phase</li>
<li><i class="sui sui-arrow-down" style="color:#68b63a"></i> Test Phase</li>
<li><i class="sui sui-arrow-down" style="color:#68b63a"></i> Package Phase</li>
<li><i class="sui sui-arrow-down" style="color:#68b63a"></i> Integration-test Phase</li>
<li><i class="sui sui-arrow-down" style="color:#68b63a"></i> Verify Phase</li>
<li><i class="sui sui-arrow-down" style="color:#68b63a"></i> Install Phase</li>
<li><i class="sui sui-arrow-down" style="color:#68b63a"></i> Deploy Phase</li>
</ul>


</div>



<p class="single-post-subscript"><sub><em>Note: The above list only shows some of the main phases. There are however more phases involved but not shown here. For a complete list refer to &#8216;<a href="https://www.automationdojos.com/maven-build-life-cycles-phases-and-goals/#2-maven-build-life-cycles">Default Life Cycle</a>&#8216; in the above section.</em></sub></p>



<p>Hence you only need to call the last build phase to be executed, (which is the &#8216;deploy&#8217; phase in this case), and doing so, automatically executes preceding phases.</p>



<p>As mentioned, though it is not possible to execute the ‘default’ life cycle directly, you can however execute a <em>specific </em>build phase within the default build life cycle to achieve your objective as shown in the above example wherein we executed the ‘deploy’ build phase of the default Maven’s default life cycle.</p>



<p>All the phases contained in the <strong><em>default life cycle, clean life cycle, </em></strong><em>and </em><strong><em>site life cycle</em></strong> have been explained in the below section.</p>


<h2 class="wp-block-heading" id="maven-build-phases">Maven Build Phases</h2>


<p>A Maven build phase represents a <span class="su-label su-label-type-default"><em>stage in the Maven build lifecycle</em></span>. Each phase is responsible for a specific task. Usually, a Maven life cycle would contain multiple phases.</p>



<p>You can execute a build phase located inside a build life cycle by passing the name of the build phase to the Maven command. Maven would evaluate what build life cycle the specified build phase belongs to, hence you don&#8217;t need to explicitly specify which build life cycle.</p>



<p>Here are some build phase commands:</p>



<pre class="wp-block-code"><code>mvn compile
mvn package</code></pre>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="build-phases-for-default-life-cycle">Build Phases for Default Life Cycle</h3>


<p>The default Maven lifecycle consists of the following <strong>main</strong> 8 phases <em>(out of total 23 phases)</em> for the building project. These lifecycle phases are executed <strong><em>sequentially</em></strong> as explained in the earlier section</p>


<div class="su-list" style="margin-left:0px">
<ul>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>Validate</strong>: This phase validates if the project structure is correct. It also makes sure that all dependencies have been downloaded and are available in the local repository.</li>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>Compile</strong>: As the name suggests, it compiles the source code stores the compiled classes in the target/classes folder.</li>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>Test</strong>: This phase runs the unit tests against compiled source code using a suitable unit testing framework if available.</li>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>Package</strong>: This phase packages the compiled code in a distributable format like JAR or WAR.</li>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>Integration-test</strong>: This phase takes the packaged result and executes additional tests such as integration tests for the project.</li>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>Verify</strong>: This phase performs checks to verify to make sure the project is valid and meets the quality standards.</li>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>Install</strong>: This phase installs the packaged code (result of package phase) to the local Maven repository.</li>
<li><i class="sui sui-gear" style="color:#777"></i> <strong>Deploy</strong>: This phase deploys/copies the packaged code to target, e.g a remote repository.</li>
</ul>
</div>


<p>Here are some build phase commands for Maven’s Default Life Cycle:</p>



<pre class="wp-block-code"><code>mvn verify
mvn compile</code></pre>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="build-phases-for-clean-life-cycle">Build Phases for Clean Life Cycle</h3>


<p>Maven&#8217;s &#8216;clean&#8217; life cycle contains the following phases as shown in the below table:</p>


<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><strong>Phase</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>pre-clean</td>
<td>execute processes needed prior to the actual project cleaning</td>
</tr>
<tr>
<td>clean</td>
<td>remove all files generated by the previous build</td>
</tr>
<tr>
<td>post-clean</td>
<td>execute processes needed to finalize the project cleaning</td>
</tr>
</tbody>
</table>
</div>


<p>Here are examples for executing Maven’s Clean Life Cycle phases:</p>



<pre class="wp-block-code"><code>mvn clean
mvn post-clean (not recommended)
</code></pre>



<div class="attention2"><strong>Note:</strong> It is not recommended to execute some phases on their own (independently) on command line since such phases are ‘intermediary’ steps and may yield undesirable results if executed independently. Read more on the section ‘Avoid Calling Intermediary Phases’<div class="module-icon"></div></div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="build-phases-for-site-life-cycle">Build Phases for Site Life Cycle</h3>


<p> Maven&#8217;s &#8216;site&#8217; life cycle contains the following phases as shown in the below table: </p>


<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><strong>Phase</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>pre-site</td>
<td>execute processes needed prior to the actual project site generation</td>
</tr>
<tr>
<td>site</td>
<td>generate the project&#8217;s site documentation</td>
</tr>
<tr>
<td>post-site</td>
<td>execute processes needed to finalize the site generation, and to prepare for site deployment</td>
</tr>
<tr>
<td>site-deploy</td>
<td>deploy the generated site documentation to the specified web server</td>
</tr>
</tbody>
</table>
</div>


<p> Here are examples for executing Maven’s Site Life Cycle phases: </p>



<pre class="wp-block-code"><code>mvn site
mvn pre-site (not recommended)</code></pre>



<div class="attention2"><strong>Note:</strong> It is not recommended to execute some phases on their own (independently) on command line since such phases are ‘intermediary’ steps and may yield undesirable results if executed independently. Read more on the section ‘Avoid Calling Intermediary Phases’<div class="module-icon"></div></div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="avoid-calling-intermediary-phases">Avoid Calling Intermediary Phases</h3>


<p>Please note that there are some special &#8216;sort of&#8217; phases that are not recommended to be called directly from the Maven command line. </p>



<p>The phases named with hyphenated words <strong><em>(pre-, post-, or process-*)</em></strong> are not usually directly called from the command line. Such &#8216;phases&#8217;, sequence the build, producing intermediate results that are not useful outside the build.</p>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h2 class="wp-block-heading" id="maven-build-goal">Maven Build Goal</h2>


<p>As mentioned earlier, a ‘<em>Build Phase</em>’ is made up of one or more ‘<em>Plugin Goals</em>’, where a &#8216;plugin goal&#8217; represents a specific task that contributes to the building and managing of a project. It may be bound to zero or more build phases. If a goal is bound to one or more build phases, that goal will be called in all those phases.</p>



<p>Maven goals can also be run independently or else they get executed as part of the build phase if attached to a build phase.</p>



<p>Also, note that unlike &#8216;build phases&#8217; the &#8216;build goal&#8217; doesn&#8217;t have the concept of &#8216;sequential execution&#8217; since they are individual and independent &#8216;unit of work&#8217; or &#8216;task&#8217;.</p>



<div class="attention2"><strong>Note:</strong> A goal not bound to any build phase could be executed outside of the build lifecycle by direct invocation. However, if a build phase has no goals bound to it, that build phase will not execute.<div class="module-icon"></div></div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="executing-maven-build-goals">Executing Maven Build Goals</h3>


<p>The syntax for running a specific goal, without executing its entire phase and the preceding phases is:</p>



<pre class="wp-block-code"><code>mvn &lt;Plugin_Name&gt;:&lt;Goal_Name&gt;</code></pre>



<p>Here are two examples for executing Maven Goals independently of the build phase or life cycle:</p>



<pre class="wp-block-code"><code>compiler:compile – Executes the compile goal from compiler plugin
compiler:testCompile - Executes testcompile goal from compiler plugin.
surefire:test - Executes test goal from the surefire plugin
</code></pre>



<p></p>



<div class="notice2"><strong>TIP:</strong> You can list all goals bound to a specific phase and their plugins using command. For example, to list all goals bound to the ‘verify’ phase, we can run:
<strong>mvn help:describe -Dcmd=verify</strong>
<div class="module-icon"></div></div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="adding-goals-to-phases">Adding Goals to Phases</h3>


<p>While customizing your Maven project, you may often require assigning new tasks to build phases, in other words adding new goals to build phases or even adding independent goals. You can generally achieve this easily via packaging and plugins. These are explained briefly in the subsequent sections.</p>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="maven-project-packaging">Maven Project Packaging</h3>


<p>This is perhaps the most common and easy way for defining ‘Goals’ (tasks). You can set the packaging for your project via the POM element called &lt;packaging&gt;. &nbsp;Based on the defined ‘packaging’ a specific set of goals bind to a particular phase.</p>



<p>For example, the jar packaging will bind the following goals to build phases of the default lifecycle.</p>


<div class="su-table su-table-responsive su-table-alternate">
<table>
<tbody>
<tr>
<td><strong>Phase</strong></td>
<td><strong>plugin:goal</strong></td>
</tr>
<tr>
<td>process-resources</td>
<td>resources:resources</td>
</tr>
<tr>
<td>compile</td>
<td>compiler:compile</td>
</tr>
<tr>
<td>process-test-resources</td>
<td>resources:testResources</td>
</tr>
<tr>
<td>test-compile</td>
<td>compiler:testCompile</td>
</tr>
<tr>
<td>test</td>
<td>surefire:test</td>
</tr>
<tr>
<td>package</td>
<td>jar:jar</td>
</tr>
<tr>
<td>install</td>
<td>install:install</td>
</tr>
<tr>
<td>deploy</td>
<td>deploy:deploy</td>
</tr>
</tbody>
</table>
</div>


<p>Some of the valid packaging values are jar, war, ear and pom. If no packaging value has been specified, it will default to jar. You can refer to more details about packaging and their default bindings here &#8211; <a href="https://maven.apache.org/ref/3.8.5/maven-core/default-bindings.html">https://maven.apache.org/ref/3.8.5/maven-core/default-bindings.html</a></p>



<div style="height:2px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="maven-plugins">Maven Plugins</h3>


<p>Maven Plugins are artifacts that provide ‘Goals’ to Maven, in other words, Maven plugins define one or more goals that represent the functionality or capability of that plugin. For example, the Compiler plugin has two goals: compile and testCompile.</p>



<p>Also, a plugin may define a set of goals that may not necessarily all bound to the same phase but rather could be distributed or used across phases.</p>



<p></p>



<div class="notice2"><strong>TIP:</strong> You can use the following command to list all goals in a specific plugin. For example, to list all goals in the ‘compiler’ plugin, use the following command:
<strong>mvn compiler:help</strong>
<div class="module-icon"></div></div>



<p>Depending on your requirement, you can either choose to use an existing plugin from the Maven repository or you can write your own custom plugin as well. Here is an example of typical &lt;plugin&gt; configuration in pom.xml</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">    &lt;plugins>
        &lt;plugin>
            &lt;groupId>com.adojos&lt;/groupId>
            &lt;artifactId>my-custom-maven-plugin&lt;/artifactId>
            &lt;version>0.0.1-SNAPSHOT&lt;/version>
            &lt;executions>
                &lt;execution>
                    &lt;goals>
                        &lt;goal>my-custom-goal&lt;/goal>
                    &lt;/goals>
                &lt;/execution>
            &lt;/executions>
            &lt;configuration>
                &lt;scope>test&lt;/scope>
            &lt;/configuration>
        &lt;/plugin>
    &lt;/plugins>
</pre>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23537" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23537" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23537" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23537&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23537" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=23537" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=23537', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/maven-build-life-cycles-phases-and-goals/">Maven Build Life Cycles, Phases and Goals</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/maven-build-life-cycles-phases-and-goals/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maven CLI Options and Switches Reference</title>
		<link>https://www.automationdojos.com/maven-cli-options-and-switches-reference/</link>
					<comments>https://www.automationdojos.com/maven-cli-options-and-switches-reference/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Wed, 12 May 2021 09:55:00 +0000</pubDate>
				<category><![CDATA[Github Gists]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven Gists]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache-maven]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[github-gists]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[maven command]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=23530</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/maven-cli-options-and-switches-reference/">Maven CLI Options and Switches Reference</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options.png 575w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Maven offers a good set of commands and CLI Options to carry out wide range of Dev tasks. Most of these commands are in fact Maven build life cycles, phases and goals. Here is a list of common Maven commands along with explanation. But before we go through the Maven commands, it is good idea [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/maven-cli-options-and-switches-reference/">Maven CLI Options and Switches Reference</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/maven-cli-options-and-switches-reference/">Maven CLI Options and Switches Reference</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options.png 575w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-cli-options-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p class="proj-desc-hide">Maven offers a good set of commands and CLI Options to carry out wide range of Dev tasks. Most of these commands are in fact Maven build life cycles, phases and goals.</p>

<p class="proj-desc-hide">Here is a list of common Maven commands along with explanation. But before we go through the Maven commands, it is good idea to understand the structure or syntax of Maven commands along with a brief about the Maven lifecycle, phases and goals.</p>



<div><script src="https://gist.github.com/894345b594b838184f27a8b9be1a8e62.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23530" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23530" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23530" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23530&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23530" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=23530" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=23530', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/maven-cli-options-and-switches-reference/">Maven CLI Options and Switches Reference</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/maven-cli-options-and-switches-reference/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Create Maven Project in Eclipse With Archetype</title>
		<link>https://www.automationdojos.com/create-maven-project-with-archetype/</link>
					<comments>https://www.automationdojos.com/create-maven-project-with-archetype/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Sat, 10 Apr 2021 21:07:00 +0000</pubDate>
				<category><![CDATA[How-To Java]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[maven-project]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=21183</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/create-maven-project-with-archetype/">How To Create Maven Project in Eclipse With Archetype</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-archetype.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-archetype.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-archetype-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-archetype-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-archetype-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-archetype-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Maven Basics Maven automates the steps involved in building a software application like adding the JAR files, compiling code, running unit tests, creating the output jar/war file, etc. This makes the code less error-prone. Maven uses an XML configuration file known as the POM file. Developers need to specify information like the JAR files required [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/create-maven-project-with-archetype/">How To Create Maven Project in Eclipse With Archetype</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/create-maven-project-with-archetype/">How To Create Maven Project in Eclipse With Archetype</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<div role="navigation" aria-label="Table of Contents" class="simpletoc blog-post-toc wp-block-simpletoc-toc"><h2 class="simpletoc-title">Table of Contents</h2>
<ul class="simpletoc-list">
<li><a href="#maven-basics">Maven Basics</a>

</li>
<li><a href="#eclipse-maven-integration">Eclipse Maven Integration</a>

</li>
<li><a href="#create-maven-project-with-archetype-in-eclipse">Create Maven Project with Archetype in Eclipse</a>


<ul><li>
<a href="#create-new-artefact-of-type-other">Create new artefact of type &#8216;Other&#8217;</a>

</li>
<li><a href="#select-maven-project">Select Maven Project</a>

</li>
<li><a href="#uncheck-create-simple-project">Uncheck &#8216;Create Simple Project&#8217;</a>

</li>
<li><a href="#use-filter-mavenarchetypewebapp">Use filter &#8216;maven-archetype-webapp&#8217;</a>

</li>
<li><a href="#select-mavenarchetypewebapp">Select maven-archetype-webapp.</a>

</li>
<li><a href="#input-group-id-and-artifact-id">Input Group Id and Artifact Id</a>

</li>
<li><a href="#verify-new-maven-project-in-eclipse">Verify New Maven project in Eclipse</a>

</li>
<li><a href="#finish">Finish!</a>
</li>
</ul>
</li></ul></div>

<h2 class="wp-block-heading" id="maven-basics">Maven Basics</h2>


<p>Maven automates the steps involved in building a software application like adding the JAR files, compiling code, running unit tests, creating the output jar/war file, etc. This makes the code less error-prone. Maven uses an XML configuration file known as the POM file. Developers need to specify information like the JAR files required by an application, the type of output artifact (jar,war, etc). Maven then uses the instructions in the POM file to build the application.</p>


<h2 class="wp-block-heading" id="eclipse-maven-integration">Eclipse Maven Integration</h2>


<p>Most of the recent Eclipse releases already include Maven. So, developers do not need to do anything special to install Maven in Eclipse. &nbsp;However, some earlier versions of Eclipse do not include Maven, so it needs to be installed explicitly from the Eclipse marketplace. Once Maven is set up with Eclipse, it allows you to easily create a Maven project and use all the Maven features like dependency resolution within Eclipse itself.</p>


<h2 class="wp-block-heading" id="create-maven-project-with-archetype-in-eclipse">Create Maven Project with Archetype in Eclipse</h2>


<p>Maven archetype provides a template that can be used to create a particular type of Maven project. If a Maven project is created with an archetype selection, Maven creates the POM file accordingly. Some of the common Maven archetypes are as follows:</p>



<div class="su-list" style="margin-left:0px">



<ul class="wp-block-list">
<li><i class="sui sui-gear" style="color:#888"></i> <strong>maven-archetype-quickstart</strong> – Can be used to create a basic Maven project</li>



<li><i class="sui sui-gear" style="color:#888"></i> <strong>maven-archetype-j2ee-simple</strong> – Can be used to create a simple j2ee project</li>



<li><i class="sui sui-gear" style="color:#888"></i> <strong>maven-archetype-webapp</strong> – Can be used to create a web application</li>
</ul>



</div>



<p>In order to create a Maven project with a webapp archetype, the following steps need to be followed:</p>


<h3 class="wp-block-heading" id="create-new-artefact-of-type-other">Create new artefact of type &#8216;Other&#8217;</h3>


<p>On Eclipse main menu, navigate to <em>&#8216;File &gt; New&#8217;</em> and select &#8216;Other&#8217;</p>



<figure class="wp-block-image size-large is-resized is-style-default td-img-style-shadow"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-1-690x1024.png" alt="" class="wp-image-21164" width="428" height="631"/></figure>


<h3 class="wp-block-heading" id="select-maven-project">Select <strong>Maven Project</strong></h3>


<p>Select the option &#8216;Maven Project&#8217; and click Next.</p>



<figure class="wp-block-image size-large is-resized is-style-default"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2.png" alt="" class="wp-image-21163" width="568" height="411" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2-300x218.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2-150x109.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2-324x235.png 324w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2-200x145.png 200w" sizes="auto, (max-width: 568px) 100vw, 568px" /></figure>


<h3 class="wp-block-heading" id="uncheck-create-simple-project">Uncheck &#8216;<strong>Create Simple Project</strong>&#8216;</h3>


<p>Leave the <strong>Create a</strong> <strong>Simple Project (skip archetype selection)</strong> checkbox unchecked. Click <strong>Next</strong></p>



<figure class="wp-block-image size-large is-resized is-style-default"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-10.png" alt="" class="wp-image-21170" width="597" height="541" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-10-150x137.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-10-200x182.png 200w" sizes="auto, (max-width: 597px) 100vw, 597px" /></figure>


<h3 class="wp-block-heading" id="use-filter-mavenarchetypewebapp">Use filter &#8216;<strong>maven-archetype-webapp</strong>&#8216;</h3>


<figure class="wp-block-image size-large is-resized is-style-default"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-11-1024x552.png" alt="" class="wp-image-21169" width="701" height="371"/></figure>


<h3 class="wp-block-heading" id="select-mavenarchetypewebapp">Select <strong>maven-archetype-webapp.</strong></h3>


<figure class="wp-block-image size-large is-resized is-style-default"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-12-1024x553.png" alt="" class="wp-image-21168" width="702" height="373"/></figure>


<h3 class="wp-block-heading" id="input-group-id-and-artifact-id">Input <strong>Group Id</strong> and <strong>Artifact Id</strong></h3>


<p>Enter a value for <strong>Group Id</strong> and <strong>Artifact Id</strong>. Change <strong>version</strong> and <strong>package </strong>if required. Click <strong>Finish</strong></p>



<figure class="wp-block-image size-large is-resized is-style-default"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-13-1024x556.png" alt="" class="wp-image-21167" width="716" height="382"/></figure>


<h3 class="wp-block-heading" id="verify-new-maven-project-in-eclipse">Verify New Maven project in Eclipse</h3>


<p>This creates a Maven project in Eclipse with the <strong>Maven directory structure</strong> and <strong>POM file</strong> as follows</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="474" height="303" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-14.png" alt="" class="wp-image-21166" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-14.png 474w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-14-300x192.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-14-150x96.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-14-200x128.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-14-400x256.png 400w" sizes="auto, (max-width: 474px) 100vw, 474px" /></figure>


<h3 class="wp-block-heading" id="finish">Finish!</h3>


<p>Finish! This POM file can then be modified by adding dependencies and other information as required.</p>


[td_smart_list_end]


<hr class="wp-block-separator has-css-opacity"/>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21183" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21183" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21183" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21183&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21183" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=21183" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=21183', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/create-maven-project-with-archetype/">How To Create Maven Project in Eclipse With Archetype</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/create-maven-project-with-archetype/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Create Maven Project in Eclipse Without Archetype</title>
		<link>https://www.automationdojos.com/create-maven-without-archetype/</link>
					<comments>https://www.automationdojos.com/create-maven-without-archetype/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Sun, 10 Jan 2021 15:03:00 +0000</pubDate>
				<category><![CDATA[How-To Java]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[maven-project]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=21159</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/create-maven-without-archetype/">How To Create Maven Project in Eclipse Without Archetype</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-no-archetype.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-no-archetype.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-no-archetype-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-no-archetype-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-no-archetype-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-maven-no-archetype-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Maven is a very popular build and dependency management tool. Eclipse is an IDE that helps developers write and run Java code easily. In this article, I will be explaining how you can create a Maven project in Eclipse. Maven Basics Maven automates the steps involved in building a software application like adding the JAR [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/create-maven-without-archetype/">How To Create Maven Project in Eclipse Without Archetype</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/create-maven-without-archetype/">How To Create Maven Project in Eclipse Without Archetype</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<div role="navigation" aria-label="Table of Contents" class="simpletoc blog-post-toc wp-block-simpletoc-toc"><h2 class="simpletoc-title">Table of Contents</h2>
<ul class="simpletoc-list">
<li><a href="#maven-basics">Maven Basics</a>

</li>
<li><a href="#eclipse-maven-integration">Eclipse Maven Integration</a>

</li>
<li><a href="#creating-a-simple-maven-project">Creating a Simple Maven Project</a>


<ul><li>
<a href="#create-new-artefact-of-type-other">Create new artefact of type &#8216;Other&#8217;</a>

</li>
<li><a href="#select-maven-project-click-next">Select Maven Project. Click Next</a>

</li>
<li><a href="#select-create-a-simple-project">Select &#8216;Create a Simple Project&#8217;</a>

</li>
<li><a href="#enter-value-for-group-id-amp-artifact-id">Enter value for Group Id &amp; Artifact Id.</a>

</li>
<li><a href="#change-version-and-packaging">Change version and packaging</a>

</li>
<li><a href="#new-maven-project-created">New Maven Project Created</a>

</li>
<li><a href="#view-your-pom-file">View Your POM File</a>

</li>
<li><a href="#finish">Finish!</a>
</li>
</ul>
</li></ul></div>


<p>Maven is a very popular build and dependency management tool. Eclipse is an IDE that helps developers write and run Java code easily. In this article, I will be explaining how you can create a Maven project in Eclipse.</p>


<h2 class="wp-block-heading" id="maven-basics">Maven Basics</h2>


<p>Maven automates the steps involved in building a software application like adding the JAR files, compiling code, running unit tests, creating the output jar/war file, etc. This makes the code less error-prone. Maven uses an XML configuration file known as the POM file. Developers need to specify information like the JAR files required by an application, the type of output artifact (jar,war, etc). Maven then uses the instructions in the POM file to build the application.</p>


<h2 class="wp-block-heading" id="eclipse-maven-integration">Eclipse Maven Integration</h2>


<p>Most of the recent Eclipse releases already include Maven. So, developers do not need to do anything special to install Maven in Eclipse. &nbsp;However, some earlier versions of Eclipse do not include Maven, so it needs to be installed explicitly from the Eclipse marketplace. Once Maven is set up with Eclipse, it allows you to easily create a Maven project and use all the Maven features like dependency resolution within Eclipse itself.</p>


<h2 class="wp-block-heading" id="creating-a-simple-maven-project">Creating a Simple Maven Project</h2>


<p>In order to create a simple Maven project in Eclipse, the following steps need to be followed:</p>


<h3 class="wp-block-heading" id="create-new-artefact-of-type-other">Create new artefact of type &#8216;Other&#8217;</h3>


<p>From menu File &gt; New select &#8216;Other&#8217;</p>



<figure class="wp-block-image size-large is-resized is-style-default td-img-style-shadow"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-1-690x1024.png" alt="" class="wp-image-21164" width="428" height="631"/></figure>


<h3 class="wp-block-heading" id="select-maven-project-click-next">Select <strong>Maven Project</strong>. Click <strong>Next</strong></h3>


<p>On the &#8216;new project&#8217; wizard select &#8216;Maven Project&#8217;</p>



<figure class="wp-block-image size-large is-resized is-style-default"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2.png" alt="" class="wp-image-21163" width="618" height="447" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2-300x218.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2-150x109.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2-324x235.png 324w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-2-200x145.png 200w" sizes="auto, (max-width: 618px) 100vw, 618px" /></figure>


<h3 class="wp-block-heading" id="select-create-a-simple-project">Select &#8216;Create a Simple Project&#8217;</h3>


<p>Click the Create a Simple Project (skip archetype selection) checkbox. Click Next</p>



<figure class="wp-block-image size-large is-resized is-style-default"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-3.png" alt="" class="wp-image-21162" width="628" height="578" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-3-300x277.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-3-150x138.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-3-455x420.png 455w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-3-200x185.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-3-400x369.png 400w" sizes="auto, (max-width: 628px) 100vw, 628px" /></figure>


<h3 class="wp-block-heading" id="enter-value-for-group-id-amp-artifact-id">Enter value for <strong>Group Id</strong> &amp; <strong>Artifact Id</strong>.</h3>


<figure class="wp-block-image size-large is-resized is-style-default"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-4.png" alt="" class="wp-image-21161" width="656" height="598" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-4-300x274.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-4-150x137.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-4-696x636.png 696w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-4-460x420.png 460w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-4-200x183.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-4-400x366.png 400w" sizes="auto, (max-width: 656px) 100vw, 656px" /></figure>


<h3 class="wp-block-heading" id="change-version-and-packaging">Change <strong>version</strong> and <strong>packaging</strong></h3>


<p>Change <strong>version</strong> and <strong>packaging</strong> if required (This is an optional step). Click <strong>Finish</strong></p>



<figure class="wp-block-image size-large is-resized is-style-default"><img loading="lazy" decoding="async" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-5.png" alt="" class="wp-image-21160" width="609" height="555" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-5-150x138.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-5-200x183.png 200w" sizes="auto, (max-width: 609px) 100vw, 609px" /></figure>


<h3 class="wp-block-heading" id="new-maven-project-created">New Maven Project Created</h3>


<p>This creates a Maven project in Eclipse with the <strong>Maven directory structure</strong> and <strong>POM file</strong> as follows</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="294" height="365" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-6.png" alt="" class="wp-image-21158" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-6.png 294w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-6-242x300.png 242w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-6-150x186.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-6-161x200.png 161w" sizes="auto, (max-width: 294px) 100vw, 294px" /></figure>


<h3 class="wp-block-heading" id="view-your-pom-file">View Your POM File</h3>


<p>The default POM created has the group id, artifact id, version and packaging specified at the time of creation as follows</p>



<figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1024" height="190" src="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-7-1024x190.png" alt="" class="wp-image-21157" srcset="https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-7-1024x190.png 1024w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-7-300x56.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-7-768x143.png 768w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-7-150x28.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-7-696x129.png 696w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-7-200x37.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-7-400x74.png 400w, https://www.automationdojos.com/wp-content/uploads/2021/10/post-create-maven-proj-7.png 1045w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>


<h3 class="wp-block-heading" id="finish">Finish!</h3>


<p>This POM file can then be modified by adding dependencies and other information as required.</p>


[td_smart_list_end]


<hr class="wp-block-separator has-css-opacity"/>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21159" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21159" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21159" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21159&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D21159" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=21159" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=21159', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/create-maven-without-archetype/">How To Create Maven Project in Eclipse Without Archetype</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/create-maven-without-archetype/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Configuring Maven Compiler Plugin (Java)</title>
		<link>https://www.automationdojos.com/configuring-maven-compiler-plugin-jdk/</link>
					<comments>https://www.automationdojos.com/configuring-maven-compiler-plugin-jdk/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Mon, 10 Aug 2020 10:09:00 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache-maven]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[maven compiler]]></category>
		<category><![CDATA[maven plugin]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=23452</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/configuring-maven-compiler-plugin-jdk/">Configuring Maven Compiler Plugin (Java)</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-compiler-plugin.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-compiler-plugin.png 575w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-compiler-plugin-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-compiler-plugin-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-compiler-plugin-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2022/03/post-maven-compiler-plugin-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>1. What is Maven Compiler Plugin The ‘Maven Compiler Plugin’ or more commonly known as &#8216;Maven Java Compiler&#8217; is used to compile the source code of your project/application. Internally this plugin uses the standard &#8216;javac&#8217; compiler (JDK) and as of version 3.0 of this plugin the default compiler is javax.tools.JavaCompiler Unlike other Maven plugins, the [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/configuring-maven-compiler-plugin-jdk/">Configuring Maven Compiler Plugin (Java)</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/configuring-maven-compiler-plugin-jdk/">Configuring Maven Compiler Plugin (Java)</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<h2 class="simpletoc-title">Table of Contents</h2>
<ul class="simpletoc-list">
<li><a href="#1-what-is-maven-compiler-plugin">1. What is Maven Compiler Plugin</a>

</li>
<li><a href="#2-default-configuration">2. Default Configuration</a>

</li>
<li><a href="#3-common-compilation-error">3. Common Compilation Error</a>

</li>
<li><a href="#4-custom-configuration-java-8-or-earlier">4. Custom Configuration Java 8 or Earlier</a>


<ul><li>
<a href="#41-configure-using-pom-properties">4.1. Configure using POM Properties</a>

</li>
<li><a href="#42-configure-using-sourcenbspampnbsptarget">4.2. Configure using -source&nbsp;&amp;&nbsp;-target</a>

</li>
<li><a href="#43-configure-using-compilerversion">4.3. Configure using ‘compilerVersion’</a>


<ul><li>
<a href="#431-improvise-use-variable-for-path">4.3.1. Improvise – Use variable for Path</a>

</li>
<li><a href="#432-improvise-pass-args-to-compiler">4.3.2. Improvise – Pass args to compiler</a>


<ul><li>
<a href="#method-1-using-ltconfigurationgt-element">Method 1: Using &lt;configuration&gt; element</a>

</li>
<li><a href="#method-2-using-explicit-ltcompilerargsgt">Method 2: Using explicit &lt;compilerArgs&gt;</a>

</li>
</ul>
</li>
</ul>
</li>
</ul>
<li><a href="#5-custom-configuration-java-9-and-beyond">5. Custom Configuration Java 9 and Beyond</a>


<ul><li>
<a href="#51-configure-using-pom-properties">5.1. Configure using POM Properties</a>

</li>
<li><a href="#52-configure-using-plugin-ltconfigurationgt">5.2. Configure using plugin &lt;configuration&gt;</a>
</li>
</ul>
</li></ul>

<h2 class="wp-block-heading" id="1-what-is-maven-compiler-plugin">1. What is Maven Compiler Plugin</h2>


<p>The ‘Maven Compiler Plugin’ or more commonly known as &#8216;Maven Java Compiler&#8217; is used to compile the source code of your project/application. </p>



<p>Internally this plugin uses the standard <strong>&#8216;javac&#8217;</strong> compiler (JDK) and as of version 3.0 of this plugin the default compiler is <em>javax.tools.JavaCompiler</em></p>



<p>Unlike other Maven plugins, the ‘maven compiler plugin’ is <strong>‘in-built’</strong> and <strong>‘implicit’ </strong>in nature. This plugin has two goals, which are already bound to specific phases of the default lifecycle:</p>



<div class="su-list" style="margin-left:0px"><ul><li><i class="sui sui-gear" style="color:#979594"></i> compile: compile main source files</li> <li><i class="sui sui-gear" style="color:#979594"></i> testCompile: compile test source files</li></ul></div>



<p>As mentioned earlier, the maven compiler plugin is called <em>implicitly</em> and <em>automatically</em> by the maven lifecycle in the appropriate phase. Hence you don´t necessarily need to define it inside ‘pom.xml’ it shall be downloaded and executed automatically by maven as and when required. However, we can certainly define and configure custom behavior and attributes for this plugin by specifying it in the ‘pom.xml’.</p>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h2 class="wp-block-heading" id="2-default-configuration">2. Default Configuration</h2>


<p>As per the default behavior, the ‘maven compiler plugin’ compiles source code compatible with <span class="su-label su-label-type-default"><em>Java 5</em></span> (also written as Java 1.5), <strong>irrespective </strong>of the JDK installed on your machine. However, with custom configuration in your ‘pom.xml’ you can override this behavior and specify your own version of compiler and compatibility version.</p>



<div class="notice2">
<p><strong>Note:</strong> The java version used to launch Maven itself (Maven runtime) can be set to a different version than the version used for compiling your source code or project. This can be done using custom configuration in your pom.xml as explained in below examples.</p><p>You can find out java version for &#8216;Maven runtime&#8217; by typing the command <strong><i>&#8216;mvn -v&#8217;</i></strong> or <strong><i>&#8216;mvn -version&#8217;</i></strong></p>
<div class="module-icon"></div>
</div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h2 class="wp-block-heading" id="3-common-compilation-error">3. Common Compilation Error</h2>


<p>While starting with Maven projects, it is very common to encounter the below error associated with this plugin. This is nothing but the default behavior as mentioned in the above paragraph and can be rectified by using one of the below mentioned custom configurations for your maven java compiler.</p>



<pre class="wp-block-code"><code>&#091;INFO] -------------------------------------------------------------
&#091;ERROR] COMPILATION ERROR :
&#091;INFO] -------------------------------------------------------------
&#091;ERROR] Source option 5 is no longer supported. Use 6 or later.
&#091;ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
&#091;INFO] 2 errors
&#091;INFO] -------------------------------------------------------------
</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="856" height="747" src="https://www.automationdojos.com/wp-content/uploads/2020/08/post-maven-compiler-plugin01.png" alt="" class="wp-image-23455" srcset="https://www.automationdojos.com/wp-content/uploads/2020/08/post-maven-compiler-plugin01.png 856w, https://www.automationdojos.com/wp-content/uploads/2020/08/post-maven-compiler-plugin01-300x262.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/08/post-maven-compiler-plugin01-768x670.png 768w, https://www.automationdojos.com/wp-content/uploads/2020/08/post-maven-compiler-plugin01-150x131.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/08/post-maven-compiler-plugin01-696x607.png 696w, https://www.automationdojos.com/wp-content/uploads/2020/08/post-maven-compiler-plugin01-481x420.png 481w, https://www.automationdojos.com/wp-content/uploads/2020/08/post-maven-compiler-plugin01-200x175.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/08/post-maven-compiler-plugin01-400x349.png 400w" sizes="auto, (max-width: 856px) 100vw, 856px" /></figure>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h2 class="wp-block-heading" id="4-custom-configuration-java-8-or-earlier">4. Custom Configuration Java 8 or Earlier</h2>


<p>If you are using Java 8 or earlier, you can set the Maven Java Compiler version in your POM file using one of the following three methods:</p>



<div class="su-list" style="margin-left:0px"><ul><li><i class="sui sui-check" style="color:#41a12c"></i> Using POM Properties</li> <li><i class="sui sui-check" style="color:#41a12c"></i> Using -source and -target values in compiler configuration</li> <li><i class="sui sui-check" style="color:#41a12c"></i> Using compilerVersion in compiler configuration</li></ul></div>



<p>Let us start with a standard bare-bone ‘pom.xml’ file and insert our custom configuration for ‘Maven Compiler Plugin’ eventually by three different methods.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;project 
	xmlns="http://maven.apache.org/POM/4.0.0" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
		http://maven.apache.org/maven-v4_0_0.xsd">
  &lt;modelVersion>4.0.0&lt;/modelVersion>
  &lt;groupId>com.testoxide&lt;/groupId>
  &lt;artifactId>maven-quick-start&lt;/artifactId>
  &lt;version>1.0&lt;/version>
&lt;/project></pre>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="41-configure-using-pom-properties">4.1. Configure using POM Properties</h3>


<p>In this method rather than tweaking the ‘maven compiler’ configuration or ‘build’ configuration’ directly, you can use the <strong>POM properties</strong> to set the compiler (JDK) versions.</p>



<p>This is the most simple but probably least reliable way. However, which option works best for you depends on the setup of your project and specific requirements i.e. depend on a case by case basis.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;project 
	xmlns="http://maven.apache.org/POM/4.0.0" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
		http://maven.apache.org/maven-v4_0_0.xsd">
  &lt;modelVersion>4.0.0&lt;/modelVersion>
  &lt;groupId>com.testoxide&lt;/groupId>
  &lt;artifactId>maven-quick-start&lt;/artifactId>
  &lt;version>1.0&lt;/version>
    &lt;properties>
    &lt;maven.compiler.source>1.8&lt;/maven.compiler.source>
    &lt;maven.compiler.target>1.8&lt;/maven.compiler.target>
  &lt;/properties>
&lt;/project></pre>



<p>Using the above configuration should give you output classes both <em>compiled and compatible with the specified java (compiler) version</em> which is Java 8 in this case.</p>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="42-configure-using-sourcenbspampnbsptarget"> 4.2. Configure using -source &amp; -target</h3>


<p>Another, preferred way for forcing a specific compiler version is by modifying the default parameter values of ‘-source’ and ‘target’ directly in the plugin settings as below.</p>



<p>Here we are setting the JDK/JRE version for both source and target to 1.8</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;project 
	xmlns="http://maven.apache.org/POM/4.0.0" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
		http://maven.apache.org/maven-v4_0_0.xsd">
  &lt;modelVersion>4.0.0&lt;/modelVersion>
  &lt;groupId>com.testoxide&lt;/groupId>
  &lt;artifactId>maven-quick-start&lt;/artifactId>
  &lt;version>1.0&lt;/version>

  &lt;build>
    &lt;plugins>
      &lt;plugin>
        &lt;groupId>org.apache.maven.plugins&lt;/groupId>
        &lt;artifactId>maven-compiler-plugin&lt;/artifactId>
        &lt;version>3.8.1&lt;/version>
        &lt;configuration>
          &lt;source>1.8&lt;/source>
          &lt;target>1.8&lt;/target>
        &lt;/configuration>
      &lt;/plugin>
    &lt;/plugins>
  &lt;/build>

&lt;/project></pre>



<div class="attention2"><strong>NOTE:</strong> In some cases, problem with this method is that it does not ‘guarantee’ that the maven compiler would be able to strictly adhere to above settings due to unintended usage of APIs that only exist in JREs which would make your code fail at runtime with a linkage error. For further reference on this read https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html<div class="module-icon"></div></div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h3 class="wp-block-heading" id="43-configure-using-compilerversion"> 4.3. Configure using ‘compilerVersion’</h3>


<p>You can use this method to compile your code with a <em>‘very specific’ JDK version, even if it is different than the one used to launch Maven itself</em>. This is probably the most <em>precise </em>of all methods.</p>



<p>Here ‘compilerVersion’&nbsp;parameter can be used as part of ‘build configuration’ to specify the version of the compiler that the plugin will use. However, you also need to <strong><em>set&nbsp;fork&nbsp;to&nbsp;true</em></strong>&nbsp;for this to work</p>



<p>Using the below ‘POM’ configuration, it is still possible to tell the ‘Maven Compiler Plugin’ the specific JDK to use during compilation. But such configuration will be specific to this plugin, and will not affect others.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;project 
	xmlns="http://maven.apache.org/POM/4.0.0" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
		http://maven.apache.org/maven-v4_0_0.xsd">
  &lt;modelVersion>4.0.0&lt;/modelVersion>
  &lt;groupId>com.testoxide&lt;/groupId>
  &lt;artifactId>maven-quick-start&lt;/artifactId>
  &lt;version>1.0&lt;/version>
  
  &lt;build>
    &lt;plugins>
      &lt;plugin>
        &lt;groupId>org.apache.maven.plugins&lt;/groupId>
        &lt;artifactId>maven-compiler-plugin&lt;/artifactId>
        &lt;version>3.8.1&lt;/version>
        &lt;configuration>
          &lt;verbose>true&lt;/verbose>
          &lt;fork>true&lt;/fork>
          &lt;executable>&lt;!-- path-to-javac -->&lt;/executable>
          &lt;compilerVersion>1.3&lt;/compilerVersion>
        &lt;/configuration>
      &lt;/plugin>
    &lt;/plugins>
  &lt;/build>
 
&lt;/project></pre>



<div class="attention2"><strong>NOTE:</strong> Please note that you need to set the ‘fork’ value to ‘true’ for this method to work.  This allows running the compiler in a separate process. If false it uses the built-in compiler, while if true it will use the explicitly mentioned executable.
Default value is: false.<div class="module-icon"></div></div>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h4 class="wp-block-heading" id="431-improvise-use-variable-for-path">4.3.1. Improvise – Use variable for Path</h4>


<p>In the above ‘pom.xml’ snippet, rather than hardcoding the path to java compiler, you can replace it with a variable. We can do so by using the following property: &lt;executable&gt;${JAVA_1_4_HOME}/bin/javac&lt;/executable&gt;</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;project 
	xmlns="http://maven.apache.org/POM/4.0.0" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
		http://maven.apache.org/maven-v4_0_0.xsd">
  &lt;modelVersion>4.0.0&lt;/modelVersion>
  &lt;groupId>com.testoxide&lt;/groupId>
  &lt;artifactId>maven-quick-start&lt;/artifactId>
  &lt;version>1.0&lt;/version>
  
  &lt;build>
    &lt;plugins>
      &lt;plugin>
        &lt;groupId>org.apache.maven.plugins&lt;/groupId>
        &lt;artifactId>maven-compiler-plugin&lt;/artifactId>
        &lt;version>3.8.1&lt;/version>
        &lt;configuration>
          &lt;verbose>true&lt;/verbose>
          &lt;fork>true&lt;/fork>
          &lt;executable>${JAVA_1_8_HOME}/bin/javac&lt;/executable>
          &lt;compilerVersion>1.8&lt;/compilerVersion>
        &lt;/configuration>
      &lt;/plugin>
    &lt;/plugins>
  &lt;/build>
  
&lt;/project></pre>



<p>The best part of using the above property is that different users can specify their own values for this property in their ‘settings.xml’ file, keeping your project portable for different users and machine configurations.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;settings>
  [...]
  &lt;profiles>
    [...]
    &lt;profile>
      &lt;id>compiler&lt;/id>
        &lt;properties>
          &lt;JAVA_1_4_HOME>C:\Program Files\Java\j2sdk1.4.2_09&lt;/JAVA_1_4_HOME>
        &lt;/properties>
    &lt;/profile>
  &lt;/profiles>
  [...]
  &lt;activeProfiles>
    &lt;activeProfile>compiler&lt;/activeProfile>
  &lt;/activeProfiles>
&lt;/settings></pre>



<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>


<h4 class="wp-block-heading" id="432-improvise-pass-args-to-compiler">4.3.2. Improvise – Pass args to compiler</h4>


<p>If you wish to pass some arguments to the maven java compiler, you can do so in two ways.</p>


<h5 class="wp-block-heading" id="method-1-using-ltconfigurationgt-element">Method 1: Using &lt;configuration&gt; element</h5>


<p>You can pass the compiler arguments inside the ‘configuration’ part of the compiler plugin itself. A very common example is to pass min and max memory values as below.</p>



<p>Here we are passing the following arguments related to <em>max</em> and <em>min memory</em> to the compiler:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">           &lt;meminitial>128m&lt;/meminitial>
           &lt;maxmem>512m&lt;/maxmem>

&lt;project 
	xmlns="http://maven.apache.org/POM/4.0.0" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
		http://maven.apache.org/maven-v4_0_0.xsd">
  &lt;modelVersion>4.0.0&lt;/modelVersion>
  &lt;groupId>com.testoxide&lt;/groupId>
  &lt;artifactId>maven-quick-start&lt;/artifactId>
  &lt;version>1.0&lt;/version>
  
  &lt;build>
    &lt;plugins>
      &lt;plugin>
        &lt;groupId>org.apache.maven.plugins&lt;/groupId>
        &lt;artifactId>maven-compiler-plugin&lt;/artifactId>
        &lt;version>3.8.1&lt;/version>
        &lt;configuration>
          &lt;verbose>true&lt;/verbose>
          &lt;fork>true&lt;/fork>
          &lt;executable>${JAVA_1_8_HOME}/bin/javac&lt;/executable>
          &lt;compilerVersion>1.3&lt;/compilerVersion>
           &lt;meminitial>128m&lt;/meminitial>
           &lt;maxmem>512m&lt;/maxmem>
        &lt;/configuration>
      &lt;/plugin>
    &lt;/plugins>
  &lt;/build>
  
&lt;/project></pre>



<div class="attention2"><strong>NOTE:</strong> The fork value needs to be set to true in order for these memory settings to work.  Without fork value being true these memory parameters set for compiler will not work.<div class="module-icon"></div></div>



<div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div>


<h5 class="wp-block-heading" id="method-2-using-explicit-ltcompilerargsgt">Method 2: Using explicit &lt;compilerArgs&gt;</h5>


<p>You should use <em>&#8216;&lt;compilerArgs&gt;&#8217;</em> element to pass specific compiler arguments that are not handled by the Compiler Plugin itself but are supported by the&nbsp;compilerId&nbsp;selected. For such arguments, use the Compiler Plugin&#8217;s&nbsp;&lt;compilerArgs&gt;&nbsp;parameter.</p>



<p>The following example passes compiler arguments to the&nbsp;javac&nbsp;compiler:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;project 
	xmlns="http://maven.apache.org/POM/4.0.0" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
		http://maven.apache.org/maven-v4_0_0.xsd">
  &lt;modelVersion>4.0.0&lt;/modelVersion>
  &lt;groupId>com.testoxide&lt;/groupId>
  &lt;artifactId>maven-quick-start&lt;/artifactId>
  &lt;version>1.0&lt;/version>
  
  &lt;build>
    &lt;plugins>
      &lt;plugin>
        &lt;groupId>org.apache.maven.plugins&lt;/groupId>
        &lt;artifactId>maven-compiler-plugin&lt;/artifactId>
        &lt;version>3.8.1&lt;/version>
        &lt;configuration>
          &lt;verbose>true&lt;/verbose>
          &lt;fork>true&lt;/fork>
          &lt;executable>${JAVA_1_8_HOME}/bin/javac&lt;/executable>
          &lt;compilerVersion>1.3&lt;/compilerVersion>
           &lt;meminitial>128m&lt;/meminitial>
           &lt;maxmem>512m&lt;/maxmem>
          &lt;compilerArgs>
            &lt;arg>-verbose&lt;/arg>
            &lt;arg>-Xlint:all,-options,-path&lt;/arg>
           &lt;arg>-Xmaxerrs&lt;/arg>
           &lt;arg>1000&lt;/arg>
         &lt;arg>-J-Duser.language=en_us&lt;/arg>
          &lt;/compilerArgs>
        &lt;/configuration>
      &lt;/plugin>
    &lt;/plugins>
  &lt;/build>
  
&lt;/project></pre>



<div class="attention2"><strong>NOTE:</strong> Please note that you need to set the ‘fork’ value to ‘true’ for this method to work. Without fork value being set to true the <compilerArgs> parameters will not be picked up. Default value is: false.<div class="module-icon"></div></div>


<h2 class="wp-block-heading" id="5-custom-configuration-java-9-and-beyond">5. Custom Configuration Java 9 and Beyond</h2>


<p>Starting from JDK 9, we can use a new command-line option i.e. &#8216;-release&#8217; which is accepted by the javac executable and can be used to specify against which Java SE release you want to build the project.</p>



<p>This new argument replaces the traditional &#8216;source&#8217; and &#8216;target&#8217; properties used for Java 8 or earlier and will automatically configure the compiler to produce class files compatible with the given platform version which should be Java 9 or above. You can implement this &#8216;-release&#8217; value in the following two ways :</p>


<h3 class="wp-block-heading" id="51-configure-using-pom-properties">5.1. Configure using POM Properties</h3>


<p>In this method, you can specify the Java compiler version&nbsp;using the &#8216;maven.compiler.release&#8217; element inside the POM Properties. Here is how the Maven Java compiler release element look inside pom properties:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;project 
   xmlns="http://maven.apache.org/POM/4.0.0" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
      http://maven.apache.org/maven-v4_0_0.xsd">
  &lt;modelVersion>4.0.0&lt;/modelVersion>
  &lt;groupId>com.testoxide&lt;/groupId>
  &lt;artifactId>maven-quick-start&lt;/artifactId>
  &lt;version>1.0&lt;/version>
    &lt;properties>
    &lt;maven.compiler.release>11&lt;/maven.compiler.release>
  &lt;/properties>
&lt;/project></pre>


<h3 class="wp-block-heading" id="52-configure-using-plugin-ltconfigurationgt">5.2. Configure using plugin &lt;configuration&gt;</h3>


<p>In this method, instead of the&nbsp;<em>source</em>&nbsp;and&nbsp;<em>target</em>&nbsp;properties (as mentioned in section 4.2 above), you need to use the&nbsp;&#8216;-<em>release</em>&#8216;&nbsp;property inside the Maven Java compiler plugin&#8217;s &#8216;&lt;configuration&gt;&#8217; element. Given below is the snippet for such implementation:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="xml" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;project 
   xmlns="http://maven.apache.org/POM/4.0.0" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
      http://maven.apache.org/maven-v4_0_0.xsd">
  &lt;modelVersion>4.0.0&lt;/modelVersion>
  &lt;groupId>com.testoxide&lt;/groupId>
  &lt;artifactId>maven-quick-start&lt;/artifactId>
  &lt;version>1.0&lt;/version>
  &lt;build>
    &lt;plugins>
      &lt;plugin>
        &lt;groupId>org.apache.maven.plugins&lt;/groupId>
        &lt;artifactId>maven-compiler-plugin&lt;/artifactId>
        &lt;version>3.8.1&lt;/version>
        &lt;configuration>
          &lt;release>11&lt;/release>
        &lt;/configuration>
      &lt;/plugin>
    &lt;/plugins>
  &lt;/build>
&lt;/project></pre>



<div class="attention2"><strong>NOTE:</strong> <p>The value in the &#8216;-release&#8217; parameter follows the new version naming scheme adopted since Java 9. As such, the release number does not start with 1.x anymore.</p><p>Also note that &#8216;-release&#8217; parameter is available for maven-compiler-plugin starting  3.6 version</p>
<div class="module-icon"></div></div>



<p></p>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23452" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23452" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23452" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23452&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23452" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=23452" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=23452', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/configuring-maven-compiler-plugin-jdk/">Configuring Maven Compiler Plugin (Java)</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/configuring-maven-compiler-plugin-jdk/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Create Maven Project Using Command Line</title>
		<link>https://www.automationdojos.com/create-maven-project-using-command-line/</link>
					<comments>https://www.automationdojos.com/create-maven-project-using-command-line/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Fri, 17 Jul 2020 12:41:00 +0000</pubDate>
				<category><![CDATA[Github Gists]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven Gists]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache-maven]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github-gists]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[maven command]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=23522</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/create-maven-project-using-command-line/">How To Create Maven Project Using Command Line</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01.png 575w, https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Maven project can be easily created using built-in plugins from the popular IDEs such as Eclipse and IntelliJ IDEA. However, in scenarios where you don&#8217;t or cannot use IDE, we can also create a maven project from the Maven native command line without using any IDE. In this article we would create a simple Java [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/create-maven-project-using-command-line/">How To Create Maven Project Using Command Line</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/create-maven-project-using-command-line/">How To Create Maven Project Using Command Line</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01.png 575w, https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/07/post-maven-commandline01-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p class="proj-desc-hide">Maven project can be easily created using built-in plugins from the popular IDEs such as Eclipse and IntelliJ IDEA. However, in scenarios where you don&#8217;t or cannot use IDE, we can also create a maven project from the Maven native command line without using any IDE. In this article we would create a simple Java project using Maven command line with and without archetype.</p>

<p class="proj-desc-hide">Maven archetypes is a maven project templating toolkit which can be used to generate a skeleton maven project of different types, such as JAR, web application, maven site, etc. Once you create your project using one of the available archetype, you can easily tweak the generated project structure or artefacts including auto-generated pom.xml as per your project requirement.</p>



<div><script src="https://gist.github.com/2aaf3abeee9422e1840235636dea9c06.js"></script></div>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23522" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23522" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23522" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23522&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D23522" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=23522" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=23522', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/create-maven-project-using-command-line/">How To Create Maven Project Using Command Line</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/create-maven-project-using-command-line/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Create Singleton Class in Java</title>
		<link>https://www.automationdojos.com/how-to-create-singleton-class-in-java/</link>
					<comments>https://www.automationdojos.com/how-to-create-singleton-class-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Wed, 15 Jul 2020 09:05:00 +0000</pubDate>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[How-To Java]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java-class]]></category>
		<category><![CDATA[java-design-patterns]]></category>
		<category><![CDATA[singleton-class]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=22511</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/how-to-create-singleton-class-in-java/">How To Create Singleton Class in Java</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p>
<p>Design patterns Overview Design patterns are basically solutions to programming problems that developers normally encounter during software development. Design patterns were first documented by four authors known as the Gang of Four (GoF). Design patterns are broadly classified into creational, structural, and behavioral patterns. Creational patterns aid in object creation, structural patterns help to alter [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/how-to-create-singleton-class-in-java/">How To Create Singleton Class in Java</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/how-to-create-singleton-class-in-java/">How To Create Singleton Class in Java</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="575" height="345" src="https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1.png 575w, https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2021/11/java-howto-singleton-1-400x240.png 400w" sizes="auto, (max-width: 575px) 100vw, 575px" /></p><h2 class="simpletoc-title">Table of Contents</h2>
<ul class="simpletoc-list">
<li><a href="#design-patterns-overview">Design patterns Overview</a>

</li>
<li><a href="#introduction-to-singleton-pattern">Introduction to Singleton Pattern</a>

</li>
<li><a href="#singleton-pattern-implementation">Singleton Pattern Implementation</a>


<ul><li>
<a href="#eager-initialization">Eager Initialization</a>

</li>
<li><a href="#lazy-initialization">Lazy Initialization</a>

</li>
<li><a href="#static-block-initialization">Static block Initialization</a>

</li>
</ul>
<li><a href="#advantages-of-singleton">Advantages of Singleton</a>

</li>
<li><a href="#disadvantages-of-singleton">Disadvantages of Singleton</a>

</li>
<li><a href="#conclusion">Conclusion</a>
</li></ul>

<h2 class="wp-block-heading" id="design-patterns-overview">Design patterns Overview</h2>


<p>Design patterns are basically solutions to programming problems that developers normally encounter during software development. Design patterns were first documented by four authors known as the <a href="https://en.wikipedia.org/wiki/Design_Patterns" target="_blank" rel="noreferrer noopener">Gang of Four (GoF)</a>. </p>



<p>Design patterns are broadly classified into creational, structural, and behavioral patterns. Creational patterns aid in object creation, structural patterns help to alter the structure of an object while behavioral patterns mostly have to do with algorithms.</p>


<h2 class="wp-block-heading" id="introduction-to-singleton-pattern">Introduction to Singleton Pattern</h2>


<p>Singleton is a creational design pattern; it helps in creating an object of a class. The Singleton pattern ensures that there is only one instance of a class. It is generally used for a class that consumes a lot of memory or one that uses expensive resources. Singleton ensures that there is only one instance of the class, thus saving on memory and other resources. The singleton pattern is mostly used for database connections, caching, logging, and other programming situations that mandate having a single object of a class.</p>


<h2 class="wp-block-heading" id="singleton-pattern-implementation">Singleton Pattern Implementation</h2>


<p>There are three main ways in which the singleton pattern can be implemented. All the approaches make use of a static instance, a private constructor, and a public getter method.</p>


<div class="su-note"  style="border-color:#dcdcdc;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#f6f6f6;border-color:#ffffff;color:#444444;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;">


<h3 class="wp-block-heading" id="eager-initialization">Eager Initialization</h3>


<p>In this approach, the Singleton instance is created at the time the class is loaded. The following code demonstrates creating a Singleton class using this approach:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="java" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">class MySingleton {
   private static MySingleton mySingleton = new MySingleton();
   private MySingleton() {
   }
   public static MySingleton getMySingleton() {
      return mySingleton;
   }
}</pre>



<p>This code specifies a class called&nbsp;<strong>MySingleton</strong>. It has a private static instance field called&nbsp;<strong>mySingleton</strong>&nbsp;that is initialized at the time of creation. It also has a private constructor. Finally, there is a public getter method called&nbsp;<strong>getMySingleton().</strong>&nbsp;This method returns the&nbsp;<strong>mySingleton</strong> instance.&nbsp;</p>



<p>So, in this approach, the singleton instance is created much before it is used. If the singleton is a heavy class using a lot of resources, then this approach is not appropriate.</p>


</div></div>
<div class="su-spacer" style="height:15px"></div>


<div class="su-note"  style="border-color:#d1cec9;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#ebe8e3;border-color:#ffffff;color:#444444;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;">


<h3 class="wp-block-heading" id="lazy-initialization">Lazy Initialization</h3>


<p>In this approach, the Singleton instance is created when it is first requested. The following code demonstrates this:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="java" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">public class MySingleton {
private static MySingleton mySingleton;
   private MySingleton() {
   }
   public static MySingleton getMySingleton() {
      if (mySingleton == null) {
         mySingleton = new MySingleton();
      }
      return mySingleton;
   }
}</pre>



<p>This approach is similar to the eager initialization approach in that it has a private static instance field, a private constructor and a public getter method. The only difference is that the singleton instance is not created at start-up. Instead, the&nbsp;<strong>getMySingleton()</strong>&nbsp;method checks if an instance of the singleton class exists. If so, it just returns it. If an instance does not exist, it creates it via the private constructor.</p>



<p>So, in this approach the singleton instance is created when it is first requested. This is the preferred approach for singleton classes that use a lot of resources.</p>


</div></div>
<div class="su-spacer" style="height:15px"></div>


<div class="su-note"  style="border-color:#dcdcdc;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#f6f6f6;border-color:#ffffff;color:#444444;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;">


<h3 class="wp-block-heading" id="static-block-initialization">Static block Initialization</h3>


<p>In this approach, the singleton instance is created within a static block. The following code demonstrates this:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="java" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">class MySingleton {
   private static MySingleton mySingleton;
   private MySingleton() {
   }
   
   static {
      mySingleton = new MySingleton();
   }
   public static MySingleton getMySingleton() {
      return mySingleton;
   }
   
}</pre>



<p>Just like the previous approaches, this code defines a private static instance, a private constructor and a public getter method. In addition, this code also defines a static block. The singleton instance&nbsp;<strong>mySingleton</strong>&nbsp;is created in this static block. Since a static block is executed only once this ensures that there is only one instance of the singleton. Since the static block is executed when the class is loaded, the singleton instance is created at start-up just like it is done in the eager initialization approach.</p>



<p>The advantage of this approach over the eager initialization approach is that, exception handling code can be added in the static block. So, if there is an error while creating the singleton instance, an appropriate exception can be thrown.</p>


</div></div>
<div class="su-spacer" style="height:5px"></div>


<h2 class="wp-block-heading" id="advantages-of-singleton">Advantages of Singleton</h2>


<p>There are several advantages of using a singleton class. &nbsp;It helps it saving on memory and other resources by ensuring that there is only one instance of the class. It provides global access to the singleton instance. It gives a class control over the instantiation process.</p>


<h2 class="wp-block-heading" id="disadvantages-of-singleton">Disadvantages of Singleton</h2>


<p>The Singleton pattern has some disadvantages too. For one, singleton objects are often used as global variables which is against object-oriented principles like encapsulation. Secondly, singletons make unit testing difficult. A class that uses a singleton object cannot be tested by itself.</p>


<h2 class="wp-block-heading" id="conclusion">Conclusion</h2>


<p>So, in this article, we understood the basics of the singleton design pattern. We also saw some of the ways in which you can implement the singleton pattern in Java. Finally, we understood some of the advantages and disadvantages of the singleton pattern.</p>
<div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/category/programming/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22511" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=Programming&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22511" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22511" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/category/programming/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22511&title=Programming" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=Programming https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D22511" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=22511" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=22511', 'Programming', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/how-to-create-singleton-class-in-java/">How To Create Singleton Class in Java</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/how-to-create-singleton-class-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
