That's a great use case to bring up. Sounds like the beginnings of a new 
plugin. It could parse a project's pom for provided dependencies and 
retrieve those from maven repository and put them all in a specified dir. 
Or it could go even further and have a new project type of tomcat-manager 
that specifies which projects should be deployed in this instance of 
tomcat. It could retrieve those wars from maven, plus parse for their 
provided dependencies and populate the shared directory.

Maven may not do everything you want out of the box, but I've been 
impressed with the foundations it is laying and the possibilities. YMMV.

Greg Vaughn
[EMAIL PROTECTED]



"Attila Mezei-Horvati" <[EMAIL PROTECTED]> 
10/25/2006 01:41 PM
Please respond to
"Maven Users List" <users@maven.apache.org>


To
users@maven.apache.org
cc

Subject
dependcy vs one lib of jars






I was reading a lot about how one of maven's best
features is the dependency handling: there is no need
for a directory of jar files. Everything is specified
in the dependency management and the repository has
the needed jars. Sounds good.

One of my coworkers raised however an issue the other
day which I couldn't answer. Any ideas welcome.

Here is the story: building with ant, our project had
one directory with all the jar files. On our
production server the contents of this dir was in the
tomcat/shared library (we have several apps running on
the servers and they share a lot of the dependencies).
Keeping it up to date with new jars was as easy as
synching with our ext_libs folder.

Now, we use maven. There is no more ext libs folder.
The dependencies however are not included in the wars
(scope: provided). They are already in the shared lib
of tomcat. 

Question is: how are we supposed to generate the
contents of the tomcat ext libs folder at this point?
Looking up 100 dependencies from several pom files and
extracting the jars from the repository doesn't seem
so great. It seems as with the dependency managament
suddenly we lost the ease of keeping our production
server shared library up to date.

I wonder if there is some solution to this. 

Attila





======================================================================
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
======================================================================

Reply via email to