Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Jar Settings

maven.has.jar.resource.patternsYes This is a calculated property based on the value of the
<build>
  <resources>
  </resources>
</build>
section of your project descriptor. If there are includes or excludes elements, this property will be set to true
maven.jar.excludesYes Specifies a list of patterns to exclude from the jar process. The default value is **/package.html, and is used by the "java:jar" goal.
maven.jar.indexYes Whether to create an index list to speed up classloading. This is a JDK 1.3+ specific feature. Defaults to false.
maven.jar.manifestYes Specifies the manifest to be used in the creation of a jar. This file is 'merged' with the default manifest created by Maven. Any values specified in the file referenced by this property will override Maven's defaults.
maven.jar.manifest.extensions.addYes Tells maven to add extension information the the jar manifest. This can cause some applications to break, so it has been disabled by default. Set to 'true' to enable extension information.
maven.jar.mainclassYes Specifies the Main-Class attribute for your manifest. If not set, no MainClass attribute will be added to the manifest.
maven.jarResources.basedirYes The base directory from which resources to be included in a jar can be found. Defaults to the base directory of the project.

Deploy Settings

PropertyOptional?Description
maven.repo.centralYes Central repository for maven artifacts
maven.repo.central.directoryYes Directory to deploy jars into on the remote repository
maven.repo.localYes The local repository to store maven artifacts, including jar file dependencies
maven.usernameYes This is the user name used to log in to the remote repository
maven.remote.groupYes The name of the Unix group that should own deployed artifacts. Default to maven

Other Settings

PropertyOptional?Description
maven.build.destYesThe directory for compiled classes
maven.build.dirYes Used by the jar:jar goal for
  • a temporary manifest file, if one is not specified
  • the assembled jar file
maven.dependency.classpathYes This property holds the Ant path of all the dependent jar files listed in the dependencies block of your project descriptor
maven.final.nameYes Usually this property is set to ${project.id}-${project.currentVersion} but the snapshot goal overwrites it to be the snapshot signature
user.nameYes Used by the java:jar goal as the default value of the Built-By attribute of the manifest if one is not specified.