I've tried to do this for the current AppFuse dependencies - so there shouldn't be any JARs in your final WAR that you don't need in there. While we may only use parts of each libraries, all of them are likely required by one feature or another.
You might try using the minijar-maven-plugin to create a JAR that only includes the classes needed by your application: http://mojo.codehaus.org/minijar-maven-plugin If you use this and you're successful - we'd love to hear about it. Thanks, Matt On 10/19/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: > You can by manipulating the transitive dependencies inherited through the > poms. Just a quick word of warning: the process is a little mind bending, > and is time consuming. That said, I'm sure the AppFuse community would love > a leaner, meaner AppFuse deployment, so if you do decide to go ahead please > do share your changes with us! > > To see which dependencies are being included and where they are coming from, > run mvn with the -X switch and pipe the output to a log file, e.g. mvn -X > package > mvn.log. > > You can then scan through the inheritance tree to find out how certain jar > files are finding their way into the war and insert appropriate <excludes> > to the dependencies in the pom.xml file. > > I believe it has not been done on the project as a whole simply because > there are no real issues for most users with a largish war file. > > Mike > > > On 10/19/07, Micke <[EMAIL PROTECTED]> wrote: > > > > Can I in a simple way shrink the size of the generated war? Is the minimum > > size of a webapp based on appfuse ~20 MB? I'm pretty sure that I don't > need > > all the included jar-files that is downloaded for me. > > > > Thanks, > > Mike > > -- > > View this message in context: > http://www.nabble.com/Size-of-deployed-war-tf4653040s2369.html#a13294063 > > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
