Try once more with a codehaus mojo

master
rarkenin 2014-05-09 16:22:36 -04:00
parent 94ffe473ca
commit 9b820e668d
5 changed files with 273 additions and 145 deletions

2
debian/control vendored
View File

@ -13,7 +13,7 @@ Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/mosstest
Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/mosstest
Homepage: https://github.com/mosstest/mosstest
Package: mosstest-all
Package: mosstest-game
Architecture: all
Depends: ${misc:Depends}, ${maven:Depends}
Recommends: ${maven:OptionalDepends}

28
debian/mosstest-game.poms vendored Normal file
View File

@ -0,0 +1,28 @@
# List of POM files for the package
# Format of this file is:
# <path to pom file> [option]*
# where option can be:
# --ignore: ignore this POM and its artifact if any
# --ignore-pom: don't install the POM. To use on POM files that are created
# temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
# --no-parent: remove the <parent> tag from the POM
# --package=<package>: an alternative package to use when installing this POM
# and its artifact
# --has-package-version: to indicate that the original version of the POM is the same as the upstream part
# of the version for the package.
# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
# during a clean operation with mh_cleanpom or mh_installpom
# --artifact=<path>: path to the build artifact associated with this POM,
# it will be installed when using the command mh_install. [mh_install]
# --java-lib: install the jar into /usr/share/java to comply with Debian
# packaging guidelines
# --usj-name=<name>: name to use when installing the library in /usr/share/java
# --usj-version=<version>: version to use when installing the library in /usr/share/java
# --no-usj-versionless: don't install the versionless link in /usr/share/java
# --dest-jar=<path>: the destination for the real jar.
# It will be installed with mh_install. [mh_install]
# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
# Empty by default. [mh_install]
#
pom.xml --has-package-version

46
debian/rules.new vendored Normal file
View File

@ -0,0 +1,46 @@
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
PACKAGE := $(DEB_SOURCE_PACKAGE)
VERSION := $(DEB_UPSTREAM_VERSION)
JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS := # TODO - fill the list of jars
DEB_ANT_BUILD_TARGET := package
DEB_ANT_BUILDFILE := debian/build.xml
DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -DartifactId=$(PACKAGE) -Dversion=$(VERSION)
binary-post-install/$(PACKAGE)::
mh_installpoms -p$(PACKAGE)
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l # ./build/.-$(VERSION).jar
mh_installjar -p$(PACKAGE) -l pom.xml build/$(PACKAGE)-$(VERSION).jar
clean::
-rm -rf debian/tmp

View File

@ -1,144 +1,168 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mosstest</groupId>
<artifactId>mosstest</artifactId>
<name>Mosstest</name>
<version>0.1.0-SNAPSHOT</version>
<description>Open-source InfiniMiner remake</description>
<url>https://github.com/mosstest/mosstest</url>
<issueManagement>
<system>Launchpad</system>
<url>https://bugs.launchpad.net/mosstest</url>
</issueManagement>
<ciManagement>
<system>Travis-CI</system>
</ciManagement>
<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>tests</testSourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.1.7</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<prefix>git</prefix>
<dateFormat>yyyy.MM.dd '@' HH:mm:ss z</dateFormat>
<verbose>true</verbose>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<skipPoms>true</skipPoms>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>src/git.properties</generateGitPropertiesFilename>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<gitDescribe>
<skip>false</skip>
<always>false</always>
<abbrev>7</abbrev>
<dirty>-dirty</dirty>
<forceLongFormat>false</forceLongFormat>
</gitDescribe>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclude>bouncycastle:bcprov-jdk15</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer>
<mainClass>net.mosstest.servercore.MossWorld</mainClass>
</transformer>
<transformer>
<resource>properties.properties</resource>
</transformer>
<transformer>
<resource>applicationContext.xml</resource>
</transformer>
<transformer>
<resource>META-INF/cxf/cxf.extension</resource>
</transformer>
<transformer>
<resource>META-INF/cxf/bus-extensions.xml</resource>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>http://repo.maven.apache.org/maven2</url>
</repository>
<repository>
<id>moss-forums</id>
<url>http://forum-mosstest.rhcloud.com/repository/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.lwjgl.lwjgl</groupId>
<artifactId>parent</artifactId>
<version>2.9.0</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mosstest</groupId>
<artifactId>mosstest</artifactId>
<name>Mosstest</name>
<version>0.1.0-SNAPSHOT</version>
<description>Open-source voxel engine with some extra features</description>
<url>https://github.com/mosstest/mosstest</url>
<issueManagement>
<system>Launchpad</system>
<url>https://bugs.launchpad.net/mosstest</url>
</issueManagement>
<ciManagement>
<system>Travis-CI</system>
</ciManagement>
<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>tests</testSourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>deb-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<phase>package</phase>
</execution>
</executions>
<configuration>
<description>An open-source voxel game created in Java</description>
<maintainer>hexafraction &lt;hexafraction@gmail.com&gt;</maintainer>
<section>games</section>
<priority>optional</priority>
<architecture>all</architecture>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.1.7</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<prefix>git</prefix>
<dateFormat>yyyy.MM.dd '@' HH:mm:ss z</dateFormat>
<verbose>true</verbose>
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
<skipPoms>true</skipPoms>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>src/git.properties</generateGitPropertiesFilename>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<gitDescribe>
<skip>false</skip>
<always>false</always>
<abbrev>7</abbrev>
<dirty>-dirty</dirty>
<forceLongFormat>false</forceLongFormat>
</gitDescribe>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclude>bouncycastle:bcprov-jdk15</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer>
<mainClass>net.mosstest.servercore.MossWorld</mainClass>
</transformer>
<transformer>
<resource>properties.properties</resource>
</transformer>
<transformer>
<resource>applicationContext.xml</resource>
</transformer>
<transformer>
<resource>META-INF/cxf/cxf.extension</resource>
</transformer>
<transformer>
<resource>META-INF/cxf/bus-extensions.xml</resource>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>http://repo.maven.apache.org/maven2</url>
</repository>
<repository>
<id>moss-forums</id>
<url>http://forum-mosstest.rhcloud.com/repository/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>codehaus-mojo-staging</id>
<name>codehaus-mojo-staging</name>
<url>https://nexus.codehaus.org/content/groups/snapshots-group/</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.lwjgl.lwjgl</groupId>
<artifactId>parent</artifactId>
<version>2.9.0</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

30
pom.xml
View File

@ -19,7 +19,15 @@
<id>moss-forums</id>
<url>http://forum-mosstest.rhcloud.com/repository/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>codehaus-mojo-staging</id>
<name>codehaus-mojo-staging</name>
<url>https://nexus.codehaus.org/content/groups/snapshots-group/</url>
</pluginRepository>
</pluginRepositories>
<build>
<testSourceDirectory>tests</testSourceDirectory>
<sourceDirectory>src</sourceDirectory>
@ -32,6 +40,28 @@
</resource>
</resources>
<plugins>
<!-- DEB plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>deb-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<description>An open-source voxel game created in Java</description>
<maintainer>hexafraction &lt;hexafraction@gmail.com&gt;</maintainer>
<section>games</section>
<priority>optional</priority>
<architecture>all</architecture>
</configuration>
<executions>
<execution>
<phase>package</phase>
<!--<goals>
<goal>deb</goal>
</goals>-->
</execution>
</executions>
</plugin>
<!-- End DEB plugin -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>