What is the value of project.build.finalName?

后端 未结 4 557
说谎
说谎 2021-02-05 02:56

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

相关标签:
4条回答
  • 2021-02-05 03:05

    The final value is composed of the artifact groupId concatenated to the artifact id that you have declared in your pom.xml file

    0 讨论(0)
  • 2021-02-05 03:15

    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.

    0 讨论(0)
  • 2021-02-05 03:25

    In the IntelliJ Idea, Right-click on the project top folder and then click Maven => Show Effective POM to view the effective pom file. In that file, search for "finalName" to know it.

    0 讨论(0)
  • 2021-02-05 03:27

    In the Eclipse Maven POM Editor, the "Effective POM" tab, you can see the value explicitly.

    0 讨论(0)
提交回复
热议问题