You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by dan tran <da...@gmail.com> on 2004/12/15 19:48:51 UTC
Extracting the specific project maven log
Hello, I am going to port our legacy build system to maven.
The build system will use maven-multiproject build all artifacts.
When one of the projects fail to build, I would like to extract
the maven (stdout and sterr) log of failed project in order to send
email out to the developer of the project
Does maven provide capability to extract maven log (stdout and stderr) of
the fail sure project?
Can I intecept maven to call a goal (like sending email ) when the build fail?
Many thanks ahead!!!
-Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Extracting the specific project maven log
Posted by dan tran <da...@gmail.com>.
OK, i add a FileAppender into maven 's log4j.properties and set it up
to use my file.
Console gives more data than my FileAppender.
When the build fails, my FileAppender does not contain the error!!!!
Any suggestion?
-D
On Wed, 15 Dec 2004 21:51:40 -0800, dan tran <da...@gmail.com> wrote:
> My requirement is to stop the build when a subproject fail, then
> extract the log portion of the fail project and email it out the the
> developers in the POM
>
> I will look into log4j to see what I can do
>
> Big thanks
>
> -Dan
>
>
> On Thu, 16 Dec 2004 06:41:26 +1100, Brett Porter <br...@gmail.com> wrote:
> > you can intercept the failure, but not mail the output at this point.
> > I use cruise control instead, but if all you need is to send a mail
> > that indicates failure, the reactor lets you ignore failures, then get
> > a list of failed projects afterwards.
> >
> > You could potentially tweak log4j to get most of the output to a file
> > and then mail that - if you go down that path, please post a HOWTO for
> > others :)
> >
> > - Brett
> >
> >
> > On Wed, 15 Dec 2004 13:55:28 -0500, Erik Husby <mh...@broad.mit.edu> wrote:
> > > dan tran wrote:
> > >
> > > >Hello, I am going to port our legacy build system to maven.
> > > >The build system will use maven-multiproject build all artifacts.
> > > >
> > > >When one of the projects fail to build, I would like to extract
> > > >the maven (stdout and sterr) log of failed project in order to send
> > > >email out to the developer of the project
> > > >
> > > >Does maven provide capability to extract maven log (stdout and stderr) of
> > > >the fail sure project?
> > > >
> > > >Can I intecept maven to call a goal (like sending email ) when the build fail?
> > > >
> > > >Many thanks ahead!!!
> > > >
> > > >-Dan
> > > >
> > > >---------------------------------------------------------------------
> > > >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > >For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > > >
> > > Not directly. Suggest you look into either CruiseControl or Anthill for
> > > a build system that knows how fetch from source control, build, and
> > > notify developers.
> > >
> > > --
> > > Erik Husby
> > > Team Lead for Software Quality Automation
> > > Broad Institute of MIT and Harvard
> > > Rm. 2192 320 Charles St
> > > Cambridge, MA 02141-2023
> > > mobile: 781.354.6669, office: 617.258.9227, mhusby@broad.mit.edu
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Extracting the specific project maven log
Posted by dan tran <da...@gmail.com>.
My requirement is to stop the build when a subproject fail, then
extract the log portion of the fail project and email it out the the
developers in the POM
I will look into log4j to see what I can do
Big thanks
-Dan
On Thu, 16 Dec 2004 06:41:26 +1100, Brett Porter <br...@gmail.com> wrote:
> you can intercept the failure, but not mail the output at this point.
> I use cruise control instead, but if all you need is to send a mail
> that indicates failure, the reactor lets you ignore failures, then get
> a list of failed projects afterwards.
>
> You could potentially tweak log4j to get most of the output to a file
> and then mail that - if you go down that path, please post a HOWTO for
> others :)
>
> - Brett
>
>
> On Wed, 15 Dec 2004 13:55:28 -0500, Erik Husby <mh...@broad.mit.edu> wrote:
> > dan tran wrote:
> >
> > >Hello, I am going to port our legacy build system to maven.
> > >The build system will use maven-multiproject build all artifacts.
> > >
> > >When one of the projects fail to build, I would like to extract
> > >the maven (stdout and sterr) log of failed project in order to send
> > >email out to the developer of the project
> > >
> > >Does maven provide capability to extract maven log (stdout and stderr) of
> > >the fail sure project?
> > >
> > >Can I intecept maven to call a goal (like sending email ) when the build fail?
> > >
> > >Many thanks ahead!!!
> > >
> > >-Dan
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> > >
> > Not directly. Suggest you look into either CruiseControl or Anthill for
> > a build system that knows how fetch from source control, build, and
> > notify developers.
> >
> > --
> > Erik Husby
> > Team Lead for Software Quality Automation
> > Broad Institute of MIT and Harvard
> > Rm. 2192 320 Charles St
> > Cambridge, MA 02141-2023
> > mobile: 781.354.6669, office: 617.258.9227, mhusby@broad.mit.edu
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Extracting the specific project maven log
Posted by Brett Porter <br...@gmail.com>.
you can intercept the failure, but not mail the output at this point.
I use cruise control instead, but if all you need is to send a mail
that indicates failure, the reactor lets you ignore failures, then get
a list of failed projects afterwards.
You could potentially tweak log4j to get most of the output to a file
and then mail that - if you go down that path, please post a HOWTO for
others :)
- Brett
On Wed, 15 Dec 2004 13:55:28 -0500, Erik Husby <mh...@broad.mit.edu> wrote:
> dan tran wrote:
>
> >Hello, I am going to port our legacy build system to maven.
> >The build system will use maven-multiproject build all artifacts.
> >
> >When one of the projects fail to build, I would like to extract
> >the maven (stdout and sterr) log of failed project in order to send
> >email out to the developer of the project
> >
> >Does maven provide capability to extract maven log (stdout and stderr) of
> >the fail sure project?
> >
> >Can I intecept maven to call a goal (like sending email ) when the build fail?
> >
> >Many thanks ahead!!!
> >
> >-Dan
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> Not directly. Suggest you look into either CruiseControl or Anthill for
> a build system that knows how fetch from source control, build, and
> notify developers.
>
> --
> Erik Husby
> Team Lead for Software Quality Automation
> Broad Institute of MIT and Harvard
> Rm. 2192 320 Charles St
> Cambridge, MA 02141-2023
> mobile: 781.354.6669, office: 617.258.9227, mhusby@broad.mit.edu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Extracting the specific project maven log
Posted by Erik Husby <mh...@broad.mit.edu>.
dan tran wrote:
>Hello, I am going to port our legacy build system to maven.
>The build system will use maven-multiproject build all artifacts.
>
>When one of the projects fail to build, I would like to extract
>the maven (stdout and sterr) log of failed project in order to send
>email out to the developer of the project
>
>Does maven provide capability to extract maven log (stdout and stderr) of
>the fail sure project?
>
>Can I intecept maven to call a goal (like sending email ) when the build fail?
>
>Many thanks ahead!!!
>
>-Dan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
Not directly. Suggest you look into either CruiseControl or Anthill for
a build system that knows how fetch from source control, build, and
notify developers.
--
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard
Rm. 2192 320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, mhusby@broad.mit.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org