Created
April 20, 2012 22:21
-
-
Save mattstep/2432309 to your computer and use it in GitHub Desktop.
Minecraft maven packaging
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
<?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/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>minecraft</groupId> | |
<artifactId>minecraft-packaging-experimental</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<name>minecraft-packaging</name> | |
<description>Minecraft maven POM</description> | |
<developers> | |
<developer> | |
<id>mattstep</id> | |
<name>Matt Stephenson</name> | |
<email>mattstep@mattstep.net</email> | |
</developer> | |
</developers> | |
<prerequisites> | |
<maven>3.0</maven> | |
</prerequisites> | |
<distributionManagement> | |
<snapshotRepository> | |
<id>sonatype-nexus-snapshots</id> | |
<name>Sonatype Nexus Snapshots</name> | |
<url>https://oss.sonatype.org/content/repositories/snapshots/</url> | |
</snapshotRepository> | |
<repository> | |
<id>sonatype-nexus-staging</id> | |
<name>Nexus Release Repository</name> | |
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | |
</repository> | |
</distributionManagement> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-gpg-plugin</artifactId> | |
<version>1.4</version> | |
<executions> | |
<execution> | |
<id>sign-artifacts</id> | |
<phase>verify</phase> | |
<goals> | |
<goal>sign</goal> | |
</goals> | |
<configuration> | |
<useAgent>true</useAgent> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.7</version> | |
<executions> | |
<execution> | |
<id>pull remote jar</id> | |
<phase>package</phase> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
<configuration> | |
<target name="Download jar"> | |
<exec executable="wget" dir="${project.build.directory}" failonerror="true"> | |
<arg value="-N"/> | |
<arg value="https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar" /> | |
</exec> | |
</target> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>build-helper-maven-plugin</artifactId> | |
<version>1.5</version> | |
<executions> | |
<execution> | |
<id>attach-minecraft-jar</id> | |
<phase>package</phase> | |
<goals> | |
<goal>attach-artifact</goal> | |
</goals> | |
<configuration> | |
<artifacts> | |
<artifact> | |
<file>${project.build.directory}/minecraft_server.jar</file> | |
<type>jar</type> | |
</artifact> | |
</artifacts> | |
</configuration> | |
</execution> | |
<execution> | |
<id>attach-readme</id> | |
<phase>package</phase> | |
<goals> | |
<goal>attach-artifact</goal> | |
</goals> | |
<configuration> | |
<artifacts> | |
<artifact> | |
<file>README.txt</file> | |
<type>txt</type> | |
<classifier>readme</classifier> | |
</artifact> | |
</artifacts> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>2.2.2</version> | |
<configuration> | |
<mavenExecutorId>forked-path</mavenExecutorId> | |
<useReleaseProfile>false</useReleaseProfile> | |
<pushChanges>false</pushChanges> | |
<localCheckout>true</localCheckout> | |
<tagNameFormat>@{project.version}</tagNameFormat> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>sonatype-oss-release</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-gpg-plugin</artifactId> | |
<version>1.4</version> | |
<executions> | |
<execution> | |
<id>sign-artifacts</id> | |
<phase>verify</phase> | |
<goals> | |
<goal>sign</goal> | |
</goals> | |
<configuration> | |
<useAgent>true</useAgent> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment