I can generate jar file with all dependencies by following this post here.
The problem is the jasper reports dependencies, when I package the jar it overrides the property file of Jasper reports dependencies, the jasperreports-extension.property
. I noticed because both jasperreports
and jasperreports-fonts
has the same file but with different content.
<!-- https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports -->
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>5.6.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports-fonts -->
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
<version>5.6.1</version>
</dependency>
so, which ever comes first, it's the only one written on generated jar.
How can I generate a jar that will only append the content of the second file if there's a same filename in property files?