Skip to content

Commit 3098501

Browse files
committed
pom.xml: use tomcat-maven-plugin instead of cargo-maven2-plugin for deploying.
mvn tomcat:deploy now deploys to Tomcat at localhost. To make this work additional steps required: - configure tomcat_users.xml - configure ~/.m2/settings.xml @see http://www.captaindebug.com/2012/03/configuring-maven-tomcat-plugin.html
1 parent f21030c commit 3098501

File tree

1 file changed

+7
-32
lines changed

1 file changed

+7
-32
lines changed

pom.xml

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030

3131
<java.version>1.6</java.version>
3232

33-
<tomcat.dir>/usr/share/tomcat6</tomcat.dir>
3433
<env.root.dir>src/env</env.root.dir>
3534

3635
<jetty.host>127.0.0.1</jetty.host>
3736
<jetty.port>8081</jetty.port>
3837

3938
<compiler.plugin.version>2.4</compiler.plugin.version>
39+
<tomcat.plugin.version>1.1</tomcat.plugin.version>
4040
<jetty.plugin.version>8.1.5.v20120716</jetty.plugin.version>
4141
<javadoc.plugin.version>2.8.1</javadoc.plugin.version>
4242

@@ -383,39 +383,14 @@
383383
</plugin>
384384

385385
<plugin>
386-
<groupId>org.codehaus.cargo</groupId>
387-
<artifactId>cargo-maven2-plugin</artifactId>
388-
<version>1.1.4</version>
386+
<groupId>org.codehaus.mojo</groupId>
387+
<artifactId>tomcat-maven-plugin</artifactId>
388+
<version>${tomcat.plugin.version}</version>
389389
<configuration>
390-
<wait>false</wait>
391-
<container>
392-
<containerId>tomcat6x</containerId>
393-
<type>installed</type>
394-
<home>${tomcat.dir}</home>
395-
</container>
396-
<configuration>
397-
<type>existing</type>
398-
<home>${tomcat.dir}</home>
399-
</configuration>
400-
<deployer>
401-
<type>installed</type>
402-
<deployables>
403-
<deployable>
404-
<groupId>${project.groupId}</groupId>
405-
<artifactId>${project.artifactId}</artifactId>
406-
<type>${project.packaging}</type>
407-
</deployable>
408-
</deployables>
409-
</deployer>
390+
<path>/</path>
391+
<server>tomcat-at-localhost</server>
392+
<url>http://localhost:8080/manager/text</url>
410393
</configuration>
411-
<executions>
412-
<execution>
413-
<phase>deploy</phase>
414-
<goals>
415-
<goal>deployer-deploy</goal>
416-
</goals>
417-
</execution>
418-
</executions>
419394
</plugin>
420395

421396
<plugin>

0 commit comments

Comments
 (0)