> -----Original Message----- > From: Tom Bostelmann [mailto:[EMAIL PROTECTED] > Sent: Monday, January 10, 2005 10:10 PM > To: Maven Users List > Subject: Maven project for a running environment? > > > Is anyone using Maven to create a running environment like, for > instance, CATALINA_BASE? > > > > I was wondering if it's possible to have a project that > creates a Tomcat > running environment that might look like: > > > > conf/ > > logs/ > > shared/lib/ > > temp/ > > webapps/ > > > > Then, I'd like to have dependencies for that project be other > 'war'-type > projects. I would create a maven goal that would iterate through the > dependencies and put the artifacts in their respective places. > > > > Is it possible? Is it a bad idea? >
Tom if you wish I can send you my plugins which does exactly that. It is limited to tomcat at the momemt and I haven't used it for months but I hope it will be still working. I believe that this pattern can be generalize and single plugin can be used for creating most of the runtime env. The idea is that you need merge artifacts deployed to the repository and specified in pom into the single artifact. What does it mean "to merge" may vary but it can be easly cotrolled per artifact type. You are free to select which artifact you need (e.g. if you need scripts for both windows and unix) and easly provide your own replecment for some defult artifacts (e.g. your customized scripts). In any of those cases you just need to create appropiate zips (e.g. tomcat-base.zip tomcat-windows-scrips.zip and tomcat-unix-scripts.zip) and list wars which you want to use (you are not required to ship you runtime with manager and admin webapps). Michal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
