You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Anders Hammar <an...@hammar.net> on 2010/10/13 12:54:04 UTC

How to use m-invoker-p with a IT project that SHOULD fail

For a plugin I have a build case that I want to test that it fails. I'm
using the m-invoker-p for my IT projects, but they normal case is that they
should pass. Has anyone done such a test project which is verified that it
fails?

/Anders

Re: How to use m-invoker-p with a IT project that SHOULD fail

Posted by chemit <ch...@codelutin.com>.
Le Wed, 13 Oct 2010 12:54:04 +0200,
Anders Hammar <an...@hammar.net> a écrit :

> For a plugin I have a build case that I want to test that it fails.
> I'm using the m-invoker-p for my IT projects, but they normal case is
> that they should pass. Has anyone done such a test project which is
> verified that it fails?
> 
Yes, in the file invoker.properties of your it

change the line 

invoker.buildResult=success

by 

invoker.buildResult=failure
> /Anders



-- 
Tony Chemit
--------------------
tél: +33 (0) 2 40 50 29 28
email: chemit@codelutin.com  
http://www.codelutin.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to use m-invoker-p with a IT project that SHOULD fail

Posted by Anders Hammar <an...@hammar.net>.
Many thanks! The response time on this one was impressive! :-)

/Anders

On Wed, Oct 13, 2010 at 12:59, Olivier Lamy <ol...@apache.org> wrote:

> Having a file in your it directory called : invoker.properties
> with the content : invoker.buildResult = failure
>
> See
> http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#invokerPropertiesFile
>
> HTH,
> --
> Olivier
> http://twitter.com/olamy
> http://www.linkedin.com/in/olamy
>
>
>
> 2010/10/13 Anders Hammar <an...@hammar.net>:
> > For a plugin I have a build case that I want to test that it fails. I'm
> > using the m-invoker-p for my IT projects, but they normal case is that
> they
> > should pass. Has anyone done such a test project which is verified that
> it
> > fails?
> >
> > /Anders
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to use m-invoker-p with a IT project that SHOULD fail

Posted by Olivier Lamy <ol...@apache.org>.
Having a file in your it directory called : invoker.properties
with the content : invoker.buildResult = failure

See http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html#invokerPropertiesFile

HTH,
-- 
Olivier
http://twitter.com/olamy
http://www.linkedin.com/in/olamy



2010/10/13 Anders Hammar <an...@hammar.net>:
> For a plugin I have a build case that I want to test that it fails. I'm
> using the m-invoker-p for my IT projects, but they normal case is that they
> should pass. Has anyone done such a test project which is verified that it
> fails?
>
> /Anders
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org