10

The spring source code examples use maven tomcat plugin and i am able to run these projects using the command mvn tomcat:run but what i dont see the application is not deployed in local tomcat server("C:\apache tomcat\webapps\")..

And how it is different from cargo plugin? (In this case when i ran the command mvn cargo:redeploy, i see the application deployed in the location "C:\apache tomcat\webapps\")

If i add cargo plugin to the POM of spring examples (like mvn-showcase,petclinic)..will it screw up the things?

Colin Hebert
  • 91,525
  • 15
  • 160
  • 151
javanoob
  • 6,070
  • 16
  • 65
  • 88

2 Answers2

7

The spring source code examples use maven tomcat plugin and i am able to run these projects using the command mvn tomcat:run but what i dont see the application is not deployed in local tomcat server("C:\apache tomcat\webapps\")

The command tomcat:run starts an embedded Tomcat, it doesn't deploy an application to your local Tomcat (why does it matter anyway?).

And how it is different from cargo plugin?

Cargo is a container agnostic tool so you could configure it to use a remote container, a locally installed container, an embedded container (as long as implementations are provided for a given container) and still use an unified API (or set of commands).

In this case when I ran the command mvn cargo:redeploy, I see the application deployed in the location "C:\apache tomcat\webapps\"

Cargo doesn't support running Tomcat+6.x in embedded mode. So you are very likely using it with a locally installed container and your app gets physically deployed on it.

If i add cargo plugin to the POM of spring examples (like mvn-showcase,petclinic)..will it screw up the things?

It won't screw up anything, why would it.

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
  • Pascal, Thanks for your reply..Somehow i disliked using tomcat embedded container.I will add cargo plugin to these examples..Thanks for your time – javanoob Sep 26 '10 at 05:58
0

You can use tomcat maven plugin and deploy it to external tomcat server. see this link for all the available goals. tomcat-run will start a embedded server but tomcat:deploy works for external tomcat.

user897493
  • 241
  • 2
  • 4