I work with Maven2. I want to know is there a way to hide the version of the jar after the build with packaging type "ear".
For example if:
- I use junit with version 5 i want to get it in my ear with the name junit.jar and not junit-5.jar.
- I use an external jar named "file.jar" and i do build with type of packaging "ear" and i want that after the build this jar will added in the ear with his same original name "file.jar" and not "file-version.jar".
I'm not using plugin, i'm just dependency: I have this pom for example:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>project</groupId>
<artifactId>project</artifactId>
<version>1</version>
<packaging>ear</packaging>
<dependencies>
<dependency>
<groupId>file</groupId>
<artifactId>file</artifactId>
<version>1</version> // just because it can't be empty
<type>jar</type>
</dependency>
</dependencies>
</project>
And I have installed the file.jar in my local repository by using mvn install:install-file
And I want to have as artifact an ear "project.ear" that contains the file.jar without the version name (not file-1.jar)!