I started building my web application using the architecture of JBoss7.1 quickstarts.
I like it but now I need to add some libraries to my project, so I add several dependencies to pom.xml. For example, this is for JasperReports:
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>5.0.0</version>
</dependency>
And so on, for other libraries. Unfortunately after building my project, I notice that the war's size produced by "mvn package" is.... 36MB?!? That's too much, I have to upload that thing to a remote server, quickly!
The bulky stuff is all stored inside /WEB-INF/lib and is indeed a set of JARs (the libraries I've included as dependencies).
What's the best practice for not having to include each time that unnecessary payload in my war?
I imagine I should include somewhere in JBoss environment the JARs and declare maven dependencies in a different way, maybe... but how?