3. pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.developers.blog</groupId>
<artifactId>maven-native-example</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>exe</packaging>
<url>http://maven.apache.org</url>
<name>maven-native-example.uexe</name>
<properties>
<native.source.dir>src/main/native</native.source.dir>
</properties>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>1.0-alpha-7</version>
<extensions>true</extensions>
<configuration>
<compilerProvider>msvc</compilerProvider>
<envFactoryName>org.codehaus.mojo.natives.msvc.MSVC2005x86EnvFactory</envFactoryName>
<compilerExecutable>cl</compilerExecutable>
<linkerExecutable>cl</linkerExecutable>*
<sources>
<source>
<directory>${native.source.dir}</directory>
<fileNames>
<fileName>helloWorld.c</fileName>
</fileNames>
</source>
<source>
<directory>${native.source.dir}/include</directory>
</source>
</sources>
<!--linkerStartOptions>
<linkerStartOption>-shared</linkerStartOption>
</linkerStartOptions-->
</configuration>
</plugin>
</plugins>
</build>
</project>