From 809334336c938e06bad796a3afefb453a5081464 Mon Sep 17 00:00:00 2001 From: Endolf Date: Thu, 17 May 2018 18:41:04 +0100 Subject: [PATCH] Example using maven --- examples/pom.xml | 114 +++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 13 ++++++ 2 files changed, 127 insertions(+) diff --git a/examples/pom.xml b/examples/pom.xml index 4f08317..01bfdc3 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -17,6 +17,22 @@ coreapi ${project.version} + + @@ -27,6 +43,104 @@ maven-javadoc-plugin + + com.googlecode.mavennatives + maven-nativedependencies-plugin + + + + + linux + + + linux + + + + + ${project.groupId} + linux-plugin + ${project.version} + natives-linux + + + ${project.groupId} + linux-plugin + ${project.version} + + + + + osx + + + mac + + + + + ${project.groupId} + osx-plugin + ${project.version} + natives-osx + + + ${project.groupId} + osx-plugin + ${project.version} + + + + + windows + + + windows + + + + + ${project.groupId} + windows-plugin + ${project.version} + natives-windows + + + ${project.groupId} + windows-plugin + ${project.version} + + + + + ReadAllEvents + + + + org.codehaus.mojo + exec-maven-plugin + 1.6.0 + + + + exec + + + + + java + + -classpath + + -Djava.library.path=${project.build.directory}/natives + net.java.games.input.example.ReadAllEvents + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 58e9dd9..0a90e68 100644 --- a/pom.xml +++ b/pom.xml @@ -103,6 +103,19 @@ maven-antrun-plugin 1.8 + + com.googlecode.mavennatives + maven-nativedependencies-plugin + 0.0.7 + + + unpacknatives + + copy + + + +