Context
We have this application, using about 60 coding projects.
We have several products that are realized using this same code base, so we follow the maven best-practices : we assemble each product using an assembly project, using the assembly plugin.
We have an historical assembly using Ant, that need many improvements. In a first phase, I am trying to obtain the same result using a clean Maven assembly. Later on, I will improve that one.
Question
In my assembly, I want to have the same jar artifact in several versions. I want:
commons-beanutils-1.7.0.jar
commons-beanutils-1.8.0.jar
I list both in my assembly project dependencies in my pom, but only one shows (the 1.8.0). How could I do it?
This is my pom.xml for the assembly project. Everything works if I specify only one or the other, except I don't get the other one obviously.
pom.xml:
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.8.0</version>
</dependency>