|
@@ -470,6 +470,28 @@
|
|
|
</properties>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-enforcer-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>enforce-os</id>
|
|
|
+ <goals>
|
|
|
+ <goal>enforce</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <rules>
|
|
|
+ <requireOS>
|
|
|
+ <family>mac</family>
|
|
|
+ <family>unix</family>
|
|
|
+ <message>native build only supported on Mac or Unix</message>
|
|
|
+ </requireOS>
|
|
|
+ </rules>
|
|
|
+ <fail>true</fail>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
@@ -537,6 +559,58 @@
|
|
|
</build>
|
|
|
</profile>
|
|
|
|
|
|
+ <profile>
|
|
|
+ <id>native-win</id>
|
|
|
+ <activation>
|
|
|
+ <activeByDefault>false</activeByDefault>
|
|
|
+ </activation>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-enforcer-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>enforce-os</id>
|
|
|
+ <goals>
|
|
|
+ <goal>enforce</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <rules>
|
|
|
+ <requireOS>
|
|
|
+ <family>windows</family>
|
|
|
+ <message>native-win build only supported on Windows</message>
|
|
|
+ </requireOS>
|
|
|
+ </rules>
|
|
|
+ <fail>true</fail>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>exec-maven-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>compile-ms-winutils</id>
|
|
|
+ <phase>compile</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>exec</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <executable>msbuild</executable>
|
|
|
+ <arguments>
|
|
|
+ <argument>${basedir}/src/main/winutils/winutils.sln</argument>
|
|
|
+ <argument>/p:Configuration=Release;OutDir=${project.build.directory}/bin/</argument>
|
|
|
+ </arguments>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+
|
|
|
<!-- profile that starts ApacheDS KDC server -->
|
|
|
<profile>
|
|
|
<id>startKdc</id>
|