Skip to main content

Shared library for two projects



I'm running two webapps (based on Spring, JPA and JSF) on the same tomcat server. Now my WARs beginning to get big in size which I would like to change. For development I'm using the embedded jetty/tomcat plugin - maybe this is interesting.





What I want to achieve is: Creating a jar which holds the classes which are needed for both projects, e.g. Spring, Hibernate and MySQL - I want to build those as a seperate JAR and deploy this on the server. My next thought was to provide this bundle to my projects as dependency with provided scope. That would shrink my WAR files.





Can I achieve this on a really simple way? It would be great if I could use the embedded jetty/tomcat server for development.


Comments

  1. I think your are more or less asking what has already been discussed here; just add the dependencies you need.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?