maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <>
Subject RE: Deploying war from dependency with tomcat7-maven-plugin
Date Tue, 10 Sep 2013 09:55:11 GMT
 Oliver wrote this plugin so I will reference his doc 

> From:
> Date: Mon, 9 Sep 2013 11:18:50 +0800
> Subject: Deploying war from dependency with tomcat7-maven-plugin
> To:
> Hello all,
> I'm trying to use the tomcat7-maven-plugin, specifically running the *mvn
> tomcat7:run* command.

     <!-- assume ROOT --->

       <!-- extra dependencies to add jdbc driver mail jars -->

> However, in my case I have two requirements that are different than the
> documentation provides for and I'm wondering if it is possible with the
> current tomcat7-maven-plugin.
> 1. need to deploy several jars to the global tomcat classpath (i.e. same as
> copying them into <tomcat.home>/lib/ext/ folder in a standalone install).


MG>as with tomcat7-maven-plugin bind to package phase

> 2. need to deploy a war to the ROOT context
MG>see ROOT above
 >but instead of packaging the current project from source, I just need to point to an
existing WAR as a dependency.
MG>maven dependency implies required sub-artifact of current artifact you are processing
MG>can i assume you want to replace an 'already deployed war'?
MG>then you will want mvn package tomcat7:redeploy
> So in my project there will be no webapp source. I simply want to run a
> tomcat with some extra jars in /lib/ext/ directory
> and also deploy a war
> that is obtained via a <dependency> with war type instead of packaged from
> source
> Thanks in advance for any help!
> -- 
> Greg Amerson
> Liferay Developer Tools
> Liferay, Inc.

MG>Oliver please check accuracy  		 	   		  
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message