Include the natives by default in a Maven build
They were added to support Java 9 with NIO. And since Java 9 is nearing,
we just include them by default now.
Users can opt-out in a custom Maven build via -Dwithout-natives.
and _not_ using -Djoml.nounsafe.
-->
<id>with-natives</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <build>
+ <resources>
+ <resource>
+ <directory>native/build</directory>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </build>
+ </profile>
+ <profile>
+ <!--
+ Exclude the natives from the JAR.
+ -->
+ <id>without-natives</id>
<activation>
<property>
- <name>with-natives</name>
+ <name>without-natives</name>
</property>
</activation>
<build>
<resources>
<resource>
<directory>native/build</directory>
- <filtering>false</filtering>
+ <excludes>
+ <exclude>*</exclude>
+ </excludes>
</resource>
</resources>
</build>
