-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The compilerArguments are passed directly to javac executable as far as I can tell and javac does not support these flags.
Could you use the MAVEN_OPTS environment variable to enable assertions in within the Maven code perhaps? Cheers, Johan Mick Knutson wrote: > I have tried this, but I get a compiler error: > > <plugin> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > *<compilerArgument>-ea</compilerArgument>* > > </configuration> > </plugin> > > I get this error: > *Failure executing javac, but could not parse the error: > javac: invalid flag: -ea > Usage: javac <options> <source files> > use -help for a list of possible options > > * > > I also tried -enableassertions > > --- > Thank You… > > Mick Knutson, President > > BASE Logic, Inc. > Enterprise Architecture, Design, Mentoring & Agile Consulting > p. (866) BLiNC-411: (254-6241-1) > f. (415) 685-4233 > > Website: http://baselogic.com > Linked IN: http://linkedin.com/in/mickknutson > Twitter: http://twitter.com/mickknutson > Vacation Rental: http://tahoe.baselogic.com > --- > - -- you too? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJiv7RpHYnED7evioRAqZvAJ99NLnNok5JYCMDHUdGF3ZupfCA8wCfSLs/ mm8cteBNDFl0LBXyl6r/Ga4= =mNOo -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
