Skip to content

Commit

Permalink
Converted to Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
meiskam committed May 8, 2013
1 parent ab6bb91 commit 490b614
Show file tree
Hide file tree
Showing 15 changed files with 216 additions and 8 deletions.
37 changes: 32 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
*.class
*.jar
.classpath
.project
bin/*
# Eclipse stuff
/.classpath
/.project
/.settings

# netbeans
/nbproject

# maven
/build.xml
/target
/pom.xml.versionsBackup

# vim
.*.sw[a-p]

# various other potential build files
/build
/bin
/dist
/manifest.mf

/world

# Mac filesystem dust
/.DS_Store

# intellij
*.iml
*.ipr
*.iws
.idea/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PlayerHeads
===========

Bukkit Plugin - Player's heads lop off when they die
Bukkit Plugin - Drops a player's head when s/he dies, also mob heads

http://dev.bukkit.org/server-mods/player-heads/
http://www.curse.com/server-mods/minecraft/player-heads
181 changes: 181 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
<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>org.shininet.bukkit</groupId>
<artifactId>PlayerHeads</artifactId>
<packaging>jar</packaging>
<version>3.2.0095</version>
<name>PlayerHeads</name>

<organization>
<name>ShiniNet</name>
<url>http://www.shininet.org</url>
</organization>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<scm>
<developerConnection>scm:git:git@github.com:meiskam/PlayerHeads.git</developerConnection>
<connection>scm:git:git://github.com/meiskam/PlayerHeads.git</connection>
<url>https://github.com/meiskam/PlayerHeads/tree/master/</url>
</scm>

<issueManagement>
<system>GitHub</system>
<url>https://github.com/meiskam/PlayerHeads/issues</url>
</issueManagement>

<repositories>
<repository>
<id>bukkit-repo</id>
<url>http://repo.bukkit.org/content/groups/public</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.5.2-R0.2-SNAPSHOT</version>
</dependency>
</dependencies>

<build>
<finalName>${project.name}-${project.version}${describe}</finalName>
<resources>
<resource>
<directory>${basedir}/src/main/java</directory>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.0</version>
<configuration>
<includes>
<include>org.bukkit</include>
</includes>
</configuration>
<executions>
<execution>
<id>versions</id>
<phase>validate</phase>
<configuration>
<allowSnapshots>true</allowSnapshots>
</configuration>
<goals>
<goal>use-latest-versions</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.lukegb.mojo</groupId>
<artifactId>gitdescribe-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<outputPrefix>.</outputPrefix>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>gitdescribe</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<archive>
<manifestEntries>
<Built-By>Maven</Built-By>
<Implementation-Title>${project.name}</Implementation-Title>
<Implementation-Version>${project.version}${describe}</Implementation-Version>
<Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
<Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<target>
<copy file="${project.build.directory}/${project.build.finalName}.${project.packaging}"
tofile="${project.build.directory}/${project.name}.${project.packaging}" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.lukegb.mojo</groupId>
<artifactId>gitdescribe-maven-plugin</artifactId>
<versionRange>[1.3,)</versionRange>
<goals>
<goal>gitdescribe</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<versionRange>[2.0,)</versionRange>
<goals>
<goal>use-latest-versions</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/plugin.yml → src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: PlayerHeads
version: 3.2.0094
version: ${project.version}${describe}
description: Drops a player's head when s/he dies, also mob heads
authors: [meiskam, zand]

Expand Down

0 comments on commit 490b614

Please sign in to comment.