<?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>What is POM Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/what-is-pom/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/what-is-pom/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:53:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Project Object Model &#8211; What is POM?</title>
		<link>https://www.scmgalaxy.com/tutorials/what-is-pom/</link>
					<comments>https://www.scmgalaxy.com/tutorials/what-is-pom/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 14 Apr 2010 11:04:22 +0000</pubDate>
				<category><![CDATA[Build Tools]]></category>
		<category><![CDATA[About POM]]></category>
		<category><![CDATA[Minimal POM]]></category>
		<category><![CDATA[POM]]></category>
		<category><![CDATA[POM Guide]]></category>
		<category><![CDATA[POM in Maven]]></category>
		<category><![CDATA[POM Introduction]]></category>
		<category><![CDATA[POM Overview]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[Project inheritance]]></category>
		<category><![CDATA[Project Object Model]]></category>
		<category><![CDATA[Start]]></category>
		<category><![CDATA[Super POM]]></category>
		<category><![CDATA[What is POM]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/04/14/what-is-pom/</guid>

					<description><![CDATA[<p>What is POM A Project Object Model or POM is the fundamental unit of work in Maven. It is an [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-pom/">Project Object Model &#8211; What is POM?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4279" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/pom.png" alt="pom" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/pom.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/pom-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><b>What is POM</b><br />
A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects. Examples for this are the build directory, which is target; the source directory, which is src/main/java; the test source directory, which is src/main/test; and so on.<br />
The POM was renamed from project.xml in Maven 1 to pom.xml in Maven 2. When executing a task or goal, Maven looks for the POM in the current directory. It reads the POM, gets the needed configuration information, then executes the goal.<br />
Some of the configuration that can be specified in the POM are the project dependencies, the plugins or goals that can be executed, the build profiles, and so on. Other information such as the project version, description, developers, mailing lists and such can also be specified.</p>
<p><b>Super POM</b><br />
The Super POM is Maven&#8217;s default POM. All POMs extend the Super POM unless explicitly set, meaning the configuration specified in the Super POM is inherited by the POMs you created for your projects. The snippet below is the Super POM for Maven 2.0.x.<br />
The snippet below is the Super POM for Maven 2.0.x.<br />
4.0.0<br />
Maven Default Project</p>
<p>central<br />
Maven Repository Switchboard<br />
default<br />
http://repo1.maven.org/maven2</p>
<p>false</p>
<p>central<br />
Maven Plugin Repository<br />
http://repo1.maven.org/maven2<br />
default</p>
<p>false</p>
<p>never</p>
<p>target<br />
target/classes<br />
${artifactId}-${version}<br />
target/test-classes<br />
src/main/java<br />
src/main/scripts<br />
src/test/java</p>
<p>src/main/resources</p>
<p>src/test/resources</p>
<p>target/site<br />
release-profile</p>
<p>performRelease</p>
<p>true<br />
org.apache.maven.plugins<br />
maven-source-plugin</p>
<p>attach-sources</p>
<p>jar</p>
<p>true<br />
org.apache.maven.plugins<br />
maven-javadoc-plugin</p>
<p>attach-javadocs</p>
<p>jar</p>
<p>true<br />
org.apache.maven.plugins<br />
maven-deploy-plugin</p>
<p>true</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a id="Minimal_POM" class="mceItemAnchor" name="Minimal_POM"></a><b>Minimal POM</b><b> </b><br />
The minimum requirement for a POM are the following:</p>
<ul type="disc">
<li>project root</li>
<li>modelVersion &#8211; should be set to 4.0.0</li>
<li>groupId &#8211; the id of the project&#8217;s group.</li>
<li>artifactId &#8211; the id of the artifact (project)</li>
<li>version &#8211; the version of the artifact under the specified group</li>
</ul>
<p>Here&#8217;s an example:</p>
<pre></pre>
<pre>  4.0.0</pre>
<pre>  com.mycompany.app</pre>
<pre>  my-app</pre>
<pre>  1</pre>
<pre></pre>
<p>A POM requires that its groupId, artifactId, and version be configured. These three values form the project&#8217;s fully qualified artifact name. This is in the form of ::. As for the example above, its fully qualified artifact name is &#8220;com.mycompany.app:my-app:1&#8221;.<br />
Every Maven project has a packaging type. If it is not specified in the POM, then the default value &#8220;jar&#8221; would be used.<br />
<b>Project inheritance</b><br />
Elements in the POM that are merged are the following:</p>
<ul type="disc">
<li>dependencies</li>
<li>developers and contributors</li>
<li>plugin lists (including reports)</li>
<li>plugin executions with matching ids</li>
<li>plugin configuration</li>
<li>resources</li>
</ul>
<p>The Super POM is one example of project inheritance, however you can also introduce your own parent POMs by specifying the parent element in the POM, as demonstrated in the following examples.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/what-is-pom/">Project Object Model &#8211; What is POM?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/what-is-pom/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
