Skip to content

Instantly share code, notes, and snippets.

@njd5475
Created February 4, 2015 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save njd5475/1109a01cec0afbd64b68 to your computer and use it in GitHub Desktop.
Save njd5475/1109a01cec0afbd64b68 to your computer and use it in GitHub Desktop.
LWJGL maven project pom file example
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId><!-- TODO: Insert your groupId here e.g. My Project --></groupId>
<artifactId><!-- TODO: Insert your artifactId here e.g. MyProject --></artifactId>
<version>0.0.1-SNAPSHOT</version>
<name><!-- TODO: Insert your "My Project" name here --></name>
<description><!-- TODO: Insert you projects description here --></description>
<dependencies>
<dependency>
<groupId>org.lwjgl.lwjgl</groupId>
<artifactId>lwjgl</artifactId>
<version>2.8.1</version>
</dependency>
<dependency>
<groupId>org.lwjgl.lwjgl</groupId>
<artifactId>lwjgl_util</artifactId>
<version>2.8.1</version>
</dependency>
<dependency>
<groupId>org.l33tlabs.twl</groupId>
<artifactId>pngdecoder</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>com.googlecode.mavennatives</groupId>
<artifactId>maven-nativedependencies-plugin</artifactId>
<version>0.0.6</version>
<configuration>
<nativesTargetDir>.</nativesTargetDir>
<separateDirs>false</separateDirs>
</configuration>
<executions>
<execution>
<id>unpacknatives</id>
<phase>generate-resources</phase>
<goals>
<goal>copy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<main.class><!-- TODO: Insert your main class here --></main.class>
</properties>
</project>
@njd5475
Copy link
Author

njd5475 commented Feb 4, 2015

Target dir is "." so you can use this pom to run from eclipse without having to change your run configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment