diff options
author | Luke GB <github@lukegb.com> | 2011-02-15 22:35:47 +0100 |
---|---|---|
committer | Luke GB <github@lukegb.com> | 2011-02-15 22:35:47 +0100 |
commit | 33bcae40c69efaf4244a3b0d218ac4c7ae13f468 (patch) | |
tree | 8588bdf9dfa296702742b0b829e4d3cf6675acdb /pom.xml | |
parent | c806adb068a34419853d455a123a7b42b4806c00 (diff) | |
download | craftbukkit-33bcae40c69efaf4244a3b0d218ac4c7ae13f468.tar craftbukkit-33bcae40c69efaf4244a3b0d218ac4c7ae13f468.tar.gz craftbukkit-33bcae40c69efaf4244a3b0d218ac4c7ae13f468.tar.lz craftbukkit-33bcae40c69efaf4244a3b0d218ac4c7ae13f468.tar.xz craftbukkit-33bcae40c69efaf4244a3b0d218ac4c7ae13f468.zip |
Further POM haxx. Now reads git description during build process.
NOTE: This may break people building on Windows - you must have git on your path. Ah well, who cares.
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 28 |
1 files changed, 26 insertions, 2 deletions
@@ -3,11 +3,11 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.bukkit</groupId> <artifactId>craftbukkit</artifactId> + <packaging>jar</packaging> <version>0.0.1-SNAPSHOT</version> <name>CraftBukkit</name> <url>http://www.bukkit.org</url> <properties> - <build.version>unknown</build.version> <api.version>unknown</api.version> </properties> <scm> @@ -21,6 +21,12 @@ <url>http://artifacts.lukegb.com/artifactory/repo</url> </repository> </repositories> + <pluginRepositories> + <pluginRepository> + <id>bukkit-plugins</id> + <url>http://artifacts.lukegb.com/artifactory/repo</url> + </pluginRepository> + </pluginRepositories> <dependencies> <dependency> <groupId>org.bukkit</groupId> @@ -44,8 +50,26 @@ </dependencies> <!-- This builds a completely 'ready to start' jar with all dependencies inside --> <build> + <defaultGoal>clean install</defaultGoal> <plugins> <plugin> + <groupId>com.lukegb.mojo</groupId> + <artifactId>gitdescribe-maven-plugin</artifactId> + <version>1.2</version> + <configuration> + <outputPrefix>git-Bukkit-</outputPrefix> + <outputPostfix></outputPostfix> + </configuration> + <executions> + <execution> + <phase>compile</phase> + <goals> + <goal>gitdescribe</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.1</version> @@ -54,7 +78,7 @@ <manifestEntries> <Main-Class>org.bukkit.craftbukkit.Main</Main-Class> <Implementation-Title>CraftBukkit</Implementation-Title> - <Implementation-Version>${build.version}</Implementation-Version> + <Implementation-Version>${describe}</Implementation-Version> <Implementation-Vendor>Bukkit Team</Implementation-Vendor> <Specification-Title>Bukkit</Specification-Title> <Specification-Version>${api.version}</Specification-Version> |