HADOOP-15856. Trunk build fails to compile native on Windows. Contributed by Vinayakumar B.

This commit is contained in:
Vinayakumar B 2018-10-24 11:32:53 +05:30
parent 8f97d6f2cd
commit 0ca50648c2

View File

@ -1654,6 +1654,11 @@
<source>${javac.version}</source> <source>${javac.version}</source>
<target>${javac.version}</target> <target>${javac.version}</target>
<useIncrementalCompilation>false</useIncrementalCompilation> <useIncrementalCompilation>false</useIncrementalCompilation>
<!-- add flags to generate native headers -->
<compilerArgs combine.children="append">
<arg>-h</arg>
<arg>${project.build.directory}/native/javah/</arg>
</compilerArgs>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
@ -2120,27 +2125,6 @@
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
</profile> </profile>
<profile>
<id>native</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<!-- add flags to generate native headers -->
<compilerArgs combine.children="append">
<arg>-h</arg>
<arg>${project.build.directory}/native/javah/</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles> </profiles>
<repositories> <repositories>