<div dir="ltr" style="text-align: justify;">
<div dir="ltr" style="text-align: justify;"><b>Maven Directory Structure</b><br />
Maven has own standard for directory structure to create in a project. So we no need specify any directory on the project level for sources, resources, tests, plugins etc. And also we don&#8217;t need to configure for creating directory structure on the pom.xml file it is internal functionality of maven.</p>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2016/10/Maven-dirctory-structure.png" border="0" /></div>
<p><i><b>@ImageSource-Wikipedia.com</b></i></p>
<p>&#8211; src<br />
&#8211; main<br />
&#8211; java<br />
&#8211; resources<br />
&#8211; webapp<br />
&#8211; test<br />
&#8211; java<br />
&#8211; resources</p>
<p>&#8211; target</p>
</div>
<h2><b>Directories level on project created by Maven</b><br />
<b></b></h2>
<h3><b>Source Directory</b><br />
<b></b></h3>
<p><b>-src </b>This is src directory which contains two more such as <b>main </b>and <b>test </b>directories inside. The main directory is for your source code and test directory is for test code.</p>
<p><b>-main </b>Under the main directory there are many more directories such as <b>java</b>, <b>resources</b>, <b>webapps </b>etc.</p>
<p><b>-java</b> The <b>java </b>directory contains all java codes and packages</p>
<p><b>-resources </b>The <b>resources </b>directory contains other resources needed by your project. This could be property files used for internationalization of an application, or something else.</p>
<p><b>-webapp</b> The <b>webapp </b>directory contains your Java web application, if your project is a web application.</p>
<p><b>-test </b> Under test directory contains two directories such as <b>java </b>and <b>resources</b>.</p>
<h3><b>Target Directory</b><br />
<b></b></h3>
<p><b>-target</b> The target directory is created by Maven. It contains all the compiled classes, JAR files etc. produced by Maven. When executing the clean build phase, it is the target directory which is cleaned.</p>
<p> ;</p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/maven-pom-xml-file/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/maven-settings-file/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '105'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…