Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the value of project.build.finalName?

Tags:

maven

The Maven documentation talks about a property called project.build.finalName, but I couldn't find a definition of the value it is set to based on other values in the pom.xml.

How is the value of project.build.finalName computed in absence of an overriding property definition in the pom.xml?

like image 637
Feuermurmel Avatar asked Dec 31 '13 15:12

Feuermurmel


People also ask

What is project build outputDirectory in Maven?

outputDirectory and testOutputDirectory provide access to the directories where Maven is going to put bytecode or other build output.

What is the default build file name in Maven?

Name of the generated JAR. Default value is: ${project. build. finalName}.

Which refers to the name of the project in Maven?

Its name is project. xml and it is located in the root directory of each project. Artifact: An artifact is something that is either produced or used by a project. Examples of artifacts produced by Maven for a project include: JARs, source and binary distributions, WARs.

What is ${ Basedir?

${project. basedir} is the root directory of your project.


1 Answers

Google that... Look at the Maven POM reference: http://maven.apache.org/pom.html#BaseBuild_Element

finalName: This is the name of the bundled project when it is finally built (sans the file extension, for example: my-project-1.0.jar). It defaults to ${artifactId}-${version}. The term "finalName" is kind of a misnomer, however, as plugins that build the bundled project have every right to ignore/modify this name (but they usually do not). For example, if the maven-jar-plugin is configured to give a jar a classifier of test, then the actual jar defined above will be built as my-project-1.0-test.jar.

like image 85
Dan Avatar answered Sep 21 '22 14:09

Dan