Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven Version Tag

I am wondering what does this mean:

<version>${artifactId.version}</version>

Does this mean that version is always the current one?

like image 768
ilija Avatar asked Dec 15 '11 12:12

ilija


People also ask

What is Maven version?

Apache Maven 3.8.6 is the latest release and recommended version for all users.

What is name tag in Maven?

name: This element indicates the display name used for the project. This is often used in Maven's generated documentation. I usually find <name> tag defined in every single pom.


1 Answers

It means that the version is defined by <artifactId.version> property:

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <artifactId.version>3.0.0.1</artifactId.version>
</properties>

In this example, the version would be 3.0.0.1.

Pay attention, also, to use the <project.build.sourceEncoding> and set the versions accordingly to your project needs.

like image 124
falsarella Avatar answered Nov 15 '22 09:11

falsarella