<?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>Maven Properties Guide Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/maven-properties-guide/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/maven-properties-guide/</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>Properties in Maven &#8211; List of Maven Properties</title>
		<link>https://www.scmgalaxy.com/tutorials/properties-in-maven/</link>
					<comments>https://www.scmgalaxy.com/tutorials/properties-in-maven/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 14 Apr 2010 11:01:31 +0000</pubDate>
				<category><![CDATA[Apache Maven]]></category>
		<category><![CDATA[List of Maven Properties]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Maven Build in properties]]></category>
		<category><![CDATA[Maven Pom/Project properties]]></category>
		<category><![CDATA[Maven Properties]]></category>
		<category><![CDATA[Maven Properties Cheatsheet]]></category>
		<category><![CDATA[Maven Properties Guide]]></category>
		<category><![CDATA[Maven Properties Instructions]]></category>
		<category><![CDATA[Maven Properties List]]></category>
		<category><![CDATA[Maven Properties References]]></category>
		<category><![CDATA[Maven Properties Tutorials]]></category>
		<category><![CDATA[POM]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[Properties in Maven]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/04/14/properties-in-maven/</guid>

					<description><![CDATA[<p>Intro It is a collection of things found in the offcial maven documentation and postings to the maven user mailing [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/properties-in-maven/">Properties in Maven &#8211; List of Maven Properties</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-4272" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/properties-in-maven.png" alt="properties-in-maven" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/properties-in-maven.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/properties-in-maven-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><b>Intro</b><br />
It is a collection of things found in the offcial maven documentation and postings to the maven user mailing list.<br />
<b>Build in properties</b></p>
<ul type="disc">
<li>${basedir} represents the directory containing pom.xml</li>
<li>${version} equivalent to ${project.version} or ${pom.version}</li>
</ul>
<p><b>Pom/Project properties</b><br />
All elements in the pom.xml, can be referenced with the project. prefix or using pom. as prefix. This list is just an example of some commonly used elements.</p>
<ul type="disc">
<li>${project.build.directory} results in the path to your &#8220;target&#8221; dir, this is the same as ${pom.project.build.directory}</li>
<li>${project.build.outputDirectory} results in the path to your &#8220;target/classes&#8221; dir</li>
<li>${project.name} or ${pom.name} refers to the name of the project.</li>
<li>${project.version} or ${pom.version} refers to the version of the project.</li>
<li>${project.build.finalName} refers to the final name of the file created when the built project is packaged</li>
</ul>
<p><b>Local user settings</b><br />
Similarly, values in the user&#8217;s settings.xml can be referenced using property names with settings. prefix.</p>
<ul type="disc">
<li>${settings.localRepository} refers to the path of the user&#8217;s local repository.</li>
<li>${maven.repo.local} also works for backward compatibility with maven1 ??</li>
</ul>
<p><b>Environment variables</b><br />
Environment variables can be referenced using the env prefix</p>
<ul type="disc">
<li>${env.M2_HOME} returns the Maven2 installation path.</li>
<li>${java.home} specifies the path to the current JRE_HOME environment use with relative paths to get for example:<br />
${java.home}../bin/java.exe</li>
</ul>
<p><b>Java system properties</b><br />
All Java System Properties defined by the JVM.<br />
<b>Custom properties in the POM</b><br />
User defined properties in the pom.xml.<br />
&#8230;<br />
hello<br />
&#8230;</p>
<ul type="disc">
<li>${my.filter.value} will result in hello if you inserted the above XML fragment in your pom.xml</li>
</ul>
<p><b>Parent Project variables</b><br />
How can parent project variables be accessed?<br />
You can use the prefix: ${project.parent}.<br />
A good way to determine possible variables is to have a look directly at the API. I&#8217;m currently using Maven 2.2.1, and to access the Parent you can use ${project.parent}. This will return an <a href="http://maven.apache.org/ref/2.0.4/maven-project/apidocs/org/apache/maven/project/MavenProject.html">org.apache.maven.project.MavenProject</a> instance.<br />
To access the parent version: ${parent.version}.<br />
<b>Reflection Properties</b><br />
The pattern ${someX.someY.someZ} can simply sometimes mean getSomeX().getSomeY().getSomeZ(). Thus, properties such as ${project.build.directory} is translated to getProject().getBuild().getDirectory().<br />
<b>List of Maven Properties</b></p>
<p>project (from [1])<br />
o project.distributionManagementArtifactRepository<br />
o project.artifact<br />
o project.parent<br />
o project.file<br />
o project.artifacts<br />
o project.parentArtifact<br />
o project.pluginArtifacts<br />
o project.remoteArtifactRepositories<br />
o project.pluginArtifactRepositories<br />
o project.attachedArtifact<br />
* settings (from [2])<br />
o settings.offilne<br />
o settings.interactive<br />
* rootless (from [3])<br />
o localRepository<br />
o reactorProjects<br />
* java properties (from [4])<br />
o java.version<br />
o java.vendor<br />
o java.vendor.url<br />
o java.home<br />
o java.vm.specification.version<br />
o java.vm.specification.vendor<br />
o java.vm.specification.name<br />
o java.vm.version<br />
o java.vm.vendor<br />
o java.vm.name<br />
o java.specification.version<br />
o java.specification.vendor<br />
o java.specification.name<br />
o java.class.version<br />
o java.class.path<br />
o java.library.path<br />
o java.io.tmpdir<br />
o java.compiler<br />
o java.ext.dirs<br />
o os.name<br />
o os.arch<br />
o os.version<br />
o file.separator<br />
o path.separator<br />
o line.separator<br />
o user.name<br />
o user.home<br />
o user.dir</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/properties-in-maven/">Properties in Maven &#8211; List of Maven Properties</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/properties-in-maven/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
