You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mac81 <de...@gmx.net> on 2007/04/05 11:33:07 UTC

Enable Assertions

Hello,

can anyone tell me how to enable assertions in java with maven?

Thanks,
Mac
-- 
View this message in context: http://www.nabble.com/Enable-Assertions-tf3530517s177.html#a9852617
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Enable Assertions

Posted by Mac81 <de...@gmx.net>.
Hi Johan,

thank you very much for your answer.
That was a great help. :-)

Greetings,
Mac
-- 
View this message in context: http://www.nabble.com/Enable-Assertions-tf3530517s177.html#a9873298
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Enable Assertions

Posted by Johan Lindquist <jo...@kawoo.co.uk>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Mac,

Do you want them enabled when simply running maven or in (for example)
surefire?

To enable when running maven, you should be able to use the environment
variable MAVEN_OPTS and set it to include '-ea' (without the quotes)

For enabling (for example) surefire, see [1], which has a little info
about assertions.

Cheers,

Johan

[1]
http://maven.apache.org/plugins/maven-surefire-plugin/examples/forking.html

Mac81 wrote:
> Hello,
> 
> can anyone tell me how to enable assertions in java with maven?
> 
> Thanks,
> Mac

- --
you too?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGFNC41Tv8wj7aQ34RAhjsAJ43AAEJzqrI2UDxLjP3Y0032aSm1gCeI99v
qRo+VAVsYsb1zK7/3kTZy88=
=gice
-----END PGP SIGNATURE-----

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