Hi Trent,
> -----Original Message-----
> From: Trent Rosenbaum [mailto:[EMAIL PROTECTED]
> Sent: lundi 4 décembre 2006 14:49
> To: [email protected]
> Subject: Re: [mojo-user] Cargo and Tomcat plugin (was RE: [mojo-user]
> New snapshot of tomcat-maven-plugin deployed)
>
> Hi there Vincent,
>
> I can say that I choose the small plugins over Cargo because they are
> so easy to load up and start using. There is very little I need to
> change to start developing.
>
> I keep looking at Cargo from time to time to see if the docs have been
> updated. I even say that I will get an example running and then just
> get put off by what I see as a huge amount of configuration.
Cool, that's interesting feedback! Here's what you need to get cargo working
with Jetty for example:
[nothing]
That's right, nothing. You can just type "mvn cargo:start" in a WAR packaging
module and it'll deploy it and start jetty.
Ok I'm cheating as jetty is the default container in Cargo... ;-)
For tomcat here's what you would have to write:
<configuration>
<container>
<containerId>tomcat5x</container>
<home>path/to/your/tomcat/install</home>
</container>
</configuration>
That's all. Running "mvn cargo:start" would then do the same for Tomcat.
Ok it's true that a Tomcat plugin wouldn't even need the <containerId> as it
knows it's starting tomcat but I think this is a marginal overhead.
The example I have above is probably too simplistic. I would be every
interested if you could send in reply a typical Tomcat plugin configuration for
a given use case so that I can see what would be the equivalent Cargo
configuration. If I can understand the overhead of using Cargo then maybe we
could improve things in Cargo or maybe it's just not possible because we are
generic (I do hope and think it's possible to reach some good compromise).
Maybe the feeling you have is caused by the scope of Cargo and the rather large
documentation. Maybe some more focused tutorials would solve that?
> Do not
> get me wrong I see the point in Cargo and through my past experience I
> think companies I have worked for would benefit. At this point I am
> really using maven to explore other problems. The tomcat plugin
> allows me to get something running. I can then throw it away with
> little impact to my time.
Sure, np with that
> If I get time this week I think your email might encourage me to try
> Cargo again, but I still think I will be straight back to tomcat.
Ok cool.
Thanks. Your email does help a lot! Let's try to get to the bottom of it.
-Vincent
> On 04/12/06, Vincent Massol <[EMAIL PROTECTED]> wrote:
> > Hi everyone,
> >
> > I'm curious to understand the differences between the tomcat m2
> plugin and
> > the cargo m2 plugin. Are they doing the same thing? If not, could
> this be
> > re-incorporated in the cargo plugin? Also do you know why would users
> pick,
> > say, the tomcat plugin over the cargo plugin? Is the configuration
> simpler,
> > etc?
> >
> > This is all driven by a desire to improve Cargo. I'm just curious to
> see how
> > we could make it even better.
> >
> > Also, I see lot of work duplication between what we do in cargo and
> what is
> > done on the various container specific plugins in m2. That's a pity
> as we
> > could work together on this I guess.
> >
> > Thanks
> > -Vincent
> >
> > PS: The in-place web development stuff is supported for Tomcat in
> Cargo.
> > Check a working example in http://tinyurl.com/hcmd5 It's not
> documented on
> > the web site though.
> >
> > > -----Original Message-----
> > > From: Mark Hobson [mailto:[EMAIL PROTECTED]
> > > Sent: dimanche 3 décembre 2006 22:12
> > > To: [email protected]
> > > Subject: Re: [mojo-user] New snapshot of tomcat-maven-plugin
> deployed
> > >
> > > On 02/12/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> > > > This functionality works great - thanks for adding it! How hard
> do
> > > > you think it'll be to add the run-war functionality? Do you need
> a
> > > > patch for this?
> > >
> > > No worries, I've added tomcat:run-war and deployed a new snapshot.
> > > Give it a go and let me know if you have any probs.
> > >
> > > Mark
> >
> >
> >
> >
> >
> >
> >
> >
> >
> _______________________________________________________________________
> ____
> > Découvrez une nouvelle façon d'obtenir des réponses à toutes vos
> questions !
> > Profitez des connaissances, des opinions et des expériences des
> internautes sur Yahoo! Questions/Réponses
> > http://fr.answers.yahoo.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> > http://xircles.codehaus.org/manage_email
> >
> >
___________________________________________________________________________
D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions !
Profitez des connaissances, des opinions et des exp�riences des internautes sur
Yahoo! Questions/R�ponses
http://fr.answers.yahoo.com
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email