Created
March 17, 2012 11:22
-
-
Save gertvv/2057737 to your computer and use it in GitHub Desktop.
Patch to build luaj-1.0.5 (j2se) using maven
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ceeb12b5737802006b6ca984ad2f45faf26db8ff Mon Sep 17 00:00:00 2001 | |
From: Gert van Valkenhoef <g.h.m.van.valkenhoef@rug.nl> | |
Date: Sat, 17 Mar 2012 12:12:59 +0100 | |
Subject: [PATCH] Optionally build using Maven | |
--- | |
build.xml | 16 +++++++++++++ | |
maven/core/pom.xml | 33 +++++++++++++++++++++++++++ | |
maven/j2se/pom.xml | 38 +++++++++++++++++++++++++++++++ | |
maven/pom.xml | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
4 files changed, 149 insertions(+), 0 deletions(-) | |
create mode 100644 maven/core/pom.xml | |
create mode 100644 maven/j2se/pom.xml | |
create mode 100644 maven/pom.xml | |
diff --git a/build.xml b/build.xml | |
index aec3a5d..889464b 100644 | |
--- a/build.xml | |
+++ b/build.xml | |
@@ -12,6 +12,22 @@ | |
<fileset dir="." includes="luaj-*.jar"/> | |
</delete> | |
</target> | |
+ | |
+ <target name="create-maven-project"> | |
+ <mkdir dir="maven/core/src/main/java"/> | |
+ <mkdir dir="maven/j2se/src/main/java"/> | |
+ <copy todir="maven/core/src/main/java"> | |
+ <fileset dir="src/core"/> | |
+ <filterchain> | |
+ <tokenfilter> | |
+ <replacestring from='"Luaj 0.0"' to='"Luaj ${version}"'/> | |
+ </tokenfilter> | |
+ </filterchain> | |
+ </copy> | |
+ <copy todir="maven/j2se/src/main/java"> | |
+ <fileset dir="src/j2se"/> | |
+ </copy> | |
+ </target> | |
<target name="compile" depends="wtk-or-fail"> | |
<mkdir dir="build/core/src"/> | |
diff --git a/maven/core/pom.xml b/maven/core/pom.xml | |
new file mode 100644 | |
index 0000000..4a15be1 | |
--- /dev/null | |
+++ b/maven/core/pom.xml | |
@@ -0,0 +1,33 @@ | |
+<?xml version="1.0" encoding="UTF-8"?> | |
+<project> | |
+ <modelVersion>4.0.0</modelVersion> | |
+ | |
+ <parent> | |
+ <groupId>net.sourceforge.luaj</groupId> | |
+ <artifactId>luaj</artifactId> | |
+ <version>1.0.5</version> | |
+ </parent> | |
+ | |
+ <groupId>net.sourceforge.luaj</groupId> | |
+ <artifactId>luaj-core</artifactId> | |
+ <name>luaj core</name> | |
+ | |
+ <packaging>jar</packaging> | |
+ | |
+ <dependencies> | |
+ </dependencies> | |
+ | |
+ <build> | |
+ <plugins> | |
+ <!-- java support --> | |
+ <plugin> | |
+ <groupId>org.apache.maven.plugins</groupId> | |
+ <artifactId>maven-compiler-plugin</artifactId> | |
+ <configuration> | |
+ <source>1.3</source> | |
+ <target>1.3</target> | |
+ </configuration> | |
+ </plugin> | |
+ </plugins> | |
+ </build> | |
+</project> | |
diff --git a/maven/j2se/pom.xml b/maven/j2se/pom.xml | |
new file mode 100644 | |
index 0000000..0d420c4 | |
--- /dev/null | |
+++ b/maven/j2se/pom.xml | |
@@ -0,0 +1,38 @@ | |
+<?xml version="1.0" encoding="UTF-8"?> | |
+<project> | |
+ <modelVersion>4.0.0</modelVersion> | |
+ | |
+ <parent> | |
+ <groupId>net.sourceforge.luaj</groupId> | |
+ <artifactId>luaj</artifactId> | |
+ <version>1.0.5</version> | |
+ </parent> | |
+ | |
+ <groupId>net.sourceforge.luaj</groupId> | |
+ <artifactId>luaj-j2se</artifactId> | |
+ <name>luaj j2se</name> | |
+ | |
+ <packaging>jar</packaging> | |
+ | |
+ <dependencies> | |
+ <dependency> | |
+ <groupId>net.sourceforge.luaj</groupId> | |
+ <artifactId>luaj-core</artifactId> | |
+ <version>${pom.version}</version> | |
+ </dependency> | |
+ </dependencies> | |
+ | |
+ <build> | |
+ <plugins> | |
+ <!-- java support --> | |
+ <plugin> | |
+ <groupId>org.apache.maven.plugins</groupId> | |
+ <artifactId>maven-compiler-plugin</artifactId> | |
+ <configuration> | |
+ <source>1.5</source> | |
+ <target>1.5</target> | |
+ </configuration> | |
+ </plugin> | |
+ </plugins> | |
+ </build> | |
+</project> | |
diff --git a/maven/pom.xml b/maven/pom.xml | |
new file mode 100644 | |
index 0000000..1fb8f5b | |
--- /dev/null | |
+++ b/maven/pom.xml | |
@@ -0,0 +1,62 @@ | |
+<?xml version="1.0" encoding="UTF-8"?> | |
+<project> | |
+ <modelVersion>4.0.0</modelVersion> | |
+ | |
+ <groupId>net.sourceforge.luaj</groupId> | |
+ <artifactId>luaj</artifactId> | |
+ <version>1.0.5</version> | |
+ <packaging>pom</packaging> | |
+ <name>luaj project</name> | |
+ | |
+ <properties> | |
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
+ </properties> | |
+ | |
+ <dependencies> | |
+ </dependencies> | |
+ | |
+ <build> | |
+ <plugins> | |
+ <!-- eclipse integration --> | |
+ <plugin> | |
+ <artifactId>maven-eclipse-plugin</artifactId> | |
+ <configuration> | |
+ <downloadJavadocs>true</downloadJavadocs> | |
+ <downloadSources>true</downloadSources> | |
+ </configuration> | |
+ </plugin> | |
+ | |
+ <!-- attach source to release --> | |
+ <plugin> | |
+ <groupId>org.apache.maven.plugins</groupId> | |
+ <artifactId>maven-source-plugin</artifactId> | |
+ <executions> | |
+ <execution> | |
+ <goals> | |
+ <goal>jar</goal> | |
+ </goals> | |
+ </execution> | |
+ </executions> | |
+ </plugin> | |
+ | |
+ <!-- attach javadoc to release --> | |
+ <plugin> | |
+ <groupId>org.apache.maven.plugins</groupId> | |
+ <artifactId>maven-javadoc-plugin</artifactId> | |
+ <executions> | |
+ <execution> | |
+ <id>attach-javadocs</id> | |
+ <goals> | |
+ <goal>jar</goal> | |
+ </goals> | |
+ </execution> | |
+ </executions> | |
+ </plugin> | |
+ </plugins> | |
+ </build> | |
+ | |
+ <modules> | |
+ <module>core</module> | |
+ <module>j2se</module> | |
+ </modules> | |
+</project> | |
-- | |
1.7.0.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To build luaj-1.0.5 using maven, and install it to your local repository:
The patch is currently lacking j2me support, for that the following plugin may be needed:
http://pyx4me.com/pyx4me-maven-plugins/j2me-maven-plugin/introduction.html