you can use the war:exploded goal and configure it to deploy your
files on your tomcat server by adding in the pom.xml these lines

 <build>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-war-plugin</artifactId>
       <configuration>
         <webappDirectory>../../bodet/tomcat</webappDirectory>
       </configuration>
     </plugin>


On 5/3/06, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
Hi all

I'm trying to convert our existing ant-based build to Maven 2. So far
things have been going rather well. The new Maven book is a great
resource. Anyway building jars and assembling a war file is working
fine, although we haven't been using wars before.

The next step is to allow the developer to deploy the assembled webapp
to the development server, we're using Tomcat. With the ant-based build
this is a simple <copy> since we have direct file access to the
developer server.

In Maven 2 I have so far seen the Cargo plugin and a Tomcat plugin, but
both of these seems overkill for our current needs. I would like to
explode the contents of the war to a certain file path. Can I just use
   mvn war:exploded
for this, provided that I configure "webappDirectory" to point to the
developer server?

--
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to