You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paulwintech <pa...@gmail.com> on 2010/07/08 21:17:35 UTC
Maven Plugins
Hi,
Im a new user in maven. I have few doubts.
1. I have some BAT files that has to executed via maven
2. While executing my default commands.. I need to echo the status like
"Started first task"
3. When the task gets failed user should get error message popup etc.,
4. (a) Automatic repository update through maven
(b) Maven calling ant to build .war
(c) Copying the new created build file(.war) to local folder with date/time
(d) Auto upload/deploy from build machine to server
(e) Testing particular URLs/products to test the site flow
(f) Sending mail regarding deployment status
5. Below is my example pom.xml, which im trying only (a)
4.0.0
com.test.example
test
1.0-SNAPSHOT
war
mctest
http://maven.apache.org
UTF-8
junit
junit
3.8.1
test
org.codehaus.mojo
exec-maven-plugin
1.1.1
exec
D:\
"D:\test.bat"
Thanks
Paulwintech
--
View this message in context: http://maven.40175.n5.nabble.com/Maven-Plugins-tp1045208p1045208.html
Sent from the Maven - Users mailing list archive at Nabble.com.
RE: Maven Plugins
Posted by Martin Gainty <mg...@hotmail.com>.
possibly posting a lucene engine filled with a compendium of past responses and a collection of the more erudite
responses from maven dev
then again if folks could simply follow the link there would be no reason to engage in any conversation on the topic?
thanks Steve..back to the plugin
Martin
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." -Einstein
______________________________________________
Verzicht und Vertraulichkeitanmerkung
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Date: Sun, 11 Jul 2010 06:33:21 +0100
> Subject: Re: Maven Plugins
> From: stephen.alan.connolly@gmail.com
> To: users@maven.apache.org
>
> Does Martin have a FAQ entry yet?
>
> On 11 July 2010 05:11, Wayne Fay <wa...@gmail.com> wrote:
>
> > Another brilliant and oh so helpful post by Martin the Robot!
> >
> > Wayne
> >
> > On Sat, Jul 10, 2010 at 8:21 PM, Martin Gainty <mg...@hotmail.com>
> > wrote:
> > >
> > > good call ron
> > >
> > >
> > >
> > > i would suggest reading up on maven logging api
> > >
> > >
> > http://maven.apache.org/ref/2.2.1/maven-plugin-api/apidocs/org/apache/maven/plugin/logging/Log.html
> > >
> > >
> > >
> > > in the event the maven logging doesnt provide appenders you can use
> > SMTPAppender from Log4j to log all events and transmit the log via the
> > configured SMTP Server
> > >
> > >
> > http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html
> > >
> > >
> > > Martin Gainty
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
Re: Maven Plugins
Posted by Stephen Connolly <st...@gmail.com>.
Does Martin have a FAQ entry yet?
On 11 July 2010 05:11, Wayne Fay <wa...@gmail.com> wrote:
> Another brilliant and oh so helpful post by Martin the Robot!
>
> Wayne
>
> On Sat, Jul 10, 2010 at 8:21 PM, Martin Gainty <mg...@hotmail.com>
> wrote:
> >
> > good call ron
> >
> >
> >
> > i would suggest reading up on maven logging api
> >
> >
> http://maven.apache.org/ref/2.2.1/maven-plugin-api/apidocs/org/apache/maven/plugin/logging/Log.html
> >
> >
> >
> > in the event the maven logging doesnt provide appenders you can use
> SMTPAppender from Log4j to log all events and transmit the log via the
> configured SMTP Server
> >
> >
> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html
> >
> >
> > Martin Gainty
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Maven Plugins
Posted by Wayne Fay <wa...@gmail.com>.
Another brilliant and oh so helpful post by Martin the Robot!
Wayne
On Sat, Jul 10, 2010 at 8:21 PM, Martin Gainty <mg...@hotmail.com> wrote:
>
> good call ron
>
>
>
> i would suggest reading up on maven logging api
>
> http://maven.apache.org/ref/2.2.1/maven-plugin-api/apidocs/org/apache/maven/plugin/logging/Log.html
>
>
>
> in the event the maven logging doesnt provide appenders you can use SMTPAppender from Log4j to log all events and transmit the log via the configured SMTP Server
>
> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html
>
>
> Martin Gainty
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven Plugins
Posted by Martin Gainty <mg...@hotmail.com>.
good call ron
i would suggest reading up on maven logging api
http://maven.apache.org/ref/2.2.1/maven-plugin-api/apidocs/org/apache/maven/plugin/logging/Log.html
in the event the maven logging doesnt provide appenders you can use SMTPAppender from Log4j to log all events and transmit the log via the configured SMTP Server
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html
Martin Gainty
______________________________________________
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Thu, 8 Jul 2010 19:54:54 -0400
> From: rwheeler@artifact-software.com
> To: users@maven.apache.org
> Subject: Re: Maven Plugins
>
> You need to read some books, try to create, build and deploy a small
> Hello World web page using nothing but your IDE and Maven.
> Then take a good look at your development methodology and figure out
> where you are doing things soooo differently that the normal Maven
> life-cycle which works for everyone else does not work for you.
>
> Once you have got your head around the Maven life-cycle, take a good
> look at what you do now and think about how you can get Maven to
> automatically get you the result that you want without all the stuff
> that Ant forces you to do currently.
>
> BTW. Install Nexus as soon as you decide to go with Maven. I am still
> regretting the time we wasted struggling with dependencies before we
> installed Nexus.
> Make sure that your IDE has Maven embedded in it. I like STS (Eclipse
> from SpringSource) for that reason and others.
>
> If you do these simple things, you will be happy, productive and at
> peace with the universe.
>
> Ron
>
>
> On 08/07/2010 3:17 PM, Paulwintech wrote:
> > Hi,
> >
> > Im a new user in maven. I have few doubts.
> >
> > 1. I have some BAT files that has to executed via maven
> > 2. While executing my default commands.. I need to echo the status like
> > "Started first task"
> > 3. When the task gets failed user should get error message popup etc.,
> > 4. (a) Automatic repository update through maven
> > (b) Maven calling ant to build .war
> > (c) Copying the new created build file(.war) to local folder with date/time
> > (d) Auto upload/deploy from build machine to server
> > (e) Testing particular URLs/products to test the site flow
> > (f) Sending mail regarding deployment status
> > 5. Below is my example pom.xml, which im trying only (a)
> >
> >
> > 4.0.0
> >
> > com.test.example
> > test
> > 1.0-SNAPSHOT
> > war
> >
> > mctest
> > http://maven.apache.org
> >
> >
> > UTF-8
> >
> >
> >
> >
> > junit
> > junit
> > 3.8.1
> > test
> >
> >
> >
> >
> >
> > org.codehaus.mojo
> > exec-maven-plugin
> > 1.1.1
> >
> >
> >
> > exec
> >
> >
> >
> >
> >
> >
> >
> > D:\
> > "D:\test.bat"
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Thanks
> > Paulwintech
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
_________________________________________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
Re: Maven Plugins
Posted by Ron Wheeler <rw...@artifact-software.com>.
You need to read some books, try to create, build and deploy a small
Hello World web page using nothing but your IDE and Maven.
Then take a good look at your development methodology and figure out
where you are doing things soooo differently that the normal Maven
life-cycle which works for everyone else does not work for you.
Once you have got your head around the Maven life-cycle, take a good
look at what you do now and think about how you can get Maven to
automatically get you the result that you want without all the stuff
that Ant forces you to do currently.
BTW. Install Nexus as soon as you decide to go with Maven. I am still
regretting the time we wasted struggling with dependencies before we
installed Nexus.
Make sure that your IDE has Maven embedded in it. I like STS (Eclipse
from SpringSource) for that reason and others.
If you do these simple things, you will be happy, productive and at
peace with the universe.
Ron
On 08/07/2010 3:17 PM, Paulwintech wrote:
> Hi,
>
> Im a new user in maven. I have few doubts.
>
> 1. I have some BAT files that has to executed via maven
> 2. While executing my default commands.. I need to echo the status like
> "Started first task"
> 3. When the task gets failed user should get error message popup etc.,
> 4. (a) Automatic repository update through maven
> (b) Maven calling ant to build .war
> (c) Copying the new created build file(.war) to local folder with date/time
> (d) Auto upload/deploy from build machine to server
> (e) Testing particular URLs/products to test the site flow
> (f) Sending mail regarding deployment status
> 5. Below is my example pom.xml, which im trying only (a)
>
>
> 4.0.0
>
> com.test.example
> test
> 1.0-SNAPSHOT
> war
>
> mctest
> http://maven.apache.org
>
>
> UTF-8
>
>
>
>
> junit
> junit
> 3.8.1
> test
>
>
>
>
>
> org.codehaus.mojo
> exec-maven-plugin
> 1.1.1
>
>
>
> exec
>
>
>
>
>
>
>
> D:\
> "D:\test.bat"
>
>
>
>
>
>
>
>
>
>
>
>
> Thanks
> Paulwintech
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven Plugins
Posted by Anders Hammar <an...@hammar.net>.
Why are you using Maven? I'm asking as it seems as you're trying to do
everything NOT to use Maven's features...
/Anders
On Thu, Jul 8, 2010 at 21:17, Paulwintech <pa...@gmail.com> wrote:
>
> Hi,
>
> Im a new user in maven. I have few doubts.
>
> 1. I have some BAT files that has to executed via maven
> 2. While executing my default commands.. I need to echo the status like
> "Started first task"
> 3. When the task gets failed user should get error message popup etc.,
> 4. (a) Automatic repository update through maven
> (b) Maven calling ant to build .war
> (c) Copying the new created build file(.war) to local folder with date/time
> (d) Auto upload/deploy from build machine to server
> (e) Testing particular URLs/products to test the site flow
> (f) Sending mail regarding deployment status
> 5. Below is my example pom.xml, which im trying only (a)
>
>
> 4.0.0
>
> com.test.example
> test
> 1.0-SNAPSHOT
> war
>
> mctest
> http://maven.apache.org
>
>
> UTF-8
>
>
>
>
> junit
> junit
> 3.8.1
> test
>
>
>
>
>
> org.codehaus.mojo
> exec-maven-plugin
> 1.1.1
>
>
>
> exec
>
>
>
>
>
>
>
> D:\
> "D:\test.bat"
>
>
>
>
>
>
>
>
>
>
>
>
> Thanks
> Paulwintech
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Maven-Plugins-tp1045208p1045208.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
Re: Maven Plugins
Posted by Justin Edelson <ju...@gmail.com>.
Is there a question here?
In general, it looks to me like you're trying to use Maven like Make or
Ant which will only result in frustration.
a, c, and d are intrinsic features of Maven - you don't need to do
beyond some basic configuration
b - the war plugin can do this
e - failsafe can act as an integration test harness, although obviously
you have to write the tests yourself
f - most people have their CI server handle sending emails like this
On 7/8/10 3:17 PM, Paulwintech wrote:
>
> Hi,
>
> Im a new user in maven. I have few doubts.
>
> 1. I have some BAT files that has to executed via maven
> 2. While executing my default commands.. I need to echo the status like
> "Started first task"
> 3. When the task gets failed user should get error message popup etc.,
> 4. (a) Automatic repository update through maven
> (b) Maven calling ant to build .war
> (c) Copying the new created build file(.war) to local folder with date/time
> (d) Auto upload/deploy from build machine to server
> (e) Testing particular URLs/products to test the site flow
> (f) Sending mail regarding deployment status
> 5. Below is my example pom.xml, which im trying only (a)
>
>
> 4.0.0
>
> com.test.example
> test
> 1.0-SNAPSHOT
> war
>
> mctest
> http://maven.apache.org
>
>
> UTF-8
>
>
>
>
> junit
> junit
> 3.8.1
> test
>
>
>
>
>
> org.codehaus.mojo
> exec-maven-plugin
> 1.1.1
>
>
>
> exec
>
>
>
>
>
>
>
> D:\
> "D:\test.bat"
>
>
>
>
>
>
>
>
>
>
>
>
> Thanks
> Paulwintech
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org