Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

General

How to run the gcc under cygwin?

Set the following properties in your project.properties:

maven.native.include.os=win32
maven.native.compiler.arg.start=-mno-cygwin
maven.native.linker.arg.start=-mno-cygwin -Wl,--add-stdcall-alias


How to run cl on Windows?

Set the following properties in your project.properties:

maven.native.include.os=win32
maven.native.compiler.name=msvc

Optionally, you can set the following property if you don't want the default argument /MD (or /MDd if in debug mode) to be passed to cl. At time of writing, this always gets set by CCTask so even if you pass a different argument with maven.native.compiler.arg.start property, it won't be unset. You will simply end up with 2 arguments...

maven.native.runtime=static

Other arguments for cl can be passed in by setting the following property (with values you *really* want, of course, this is just an example). Multiple values are separated by a space.

maven.native.compiler.arg.start=/GR /GX