Skip to content

Commit 316865d

Browse files
committed
[0.3-PRE] Improved pom.xml, ready for 0.3-PRE
1 parent 6ceff48 commit 316865d

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

pom.xml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!--suppress ALL -->
32
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
43
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
54
<modelVersion>4.0.0</modelVersion>
5+
66
<groupId>unomodding.bukkit</groupId>
77
<artifactId>playtimelimiter</artifactId>
8+
89
<name>PlayTimeLimiter</name>
9-
<version>0.25</version>
10-
<packaging>jar</packaging>
11-
<url>https://github.com/UnoModding/PlayTimeLimiter</url>
10+
<description>PlayTimeLimiter is a Bukkit plugin to allow server owners to limit the amount of time their players spend on a server.</description>
11+
<url>https://github.com/UnoModding/Bukkit-PlayTimeLimiter</url>
12+
<version>0.3-dev</version>
1213
<inceptionYear>2014</inceptionYear>
13-
<description>PlayTimeLimiter is a Bukkit plugin for Minecraft servers to only allow players to limit the amount of time players spend on your server.</description>
14+
<packaging>jar</packaging>
15+
16+
<properties>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
<main.class>${project.groupId}.${project.artifactId}.${project.name}</main.class>
19+
</properties>
20+
21+
<organization>
22+
<name>UnoModding</name>
23+
<url>https://github.com/UnoModding</url>
24+
</organization>
1425

1526
<repositories>
1627
<repository>
@@ -58,6 +69,25 @@
5869
<artifactId>maven-compiler-plugin</artifactId>
5970
<version>3.0</version>
6071
</plugin>
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-jar-plugin</artifactId>
75+
<version>2.4</version>
76+
<configuration>
77+
<archive>
78+
<index>true</index>
79+
<manifest>
80+
<addClasspath>true</addClasspath>
81+
<mainClass>${mainclass}</mainClass>
82+
</manifest>
83+
<manifestEntries>
84+
<Implementation-Vender>UnoModding</Implementation-Vender>
85+
<Implementation-Version>${project.version}</Implementation-Version>
86+
<Built-By>${user.name}</Built-By>
87+
</manifestEntries>
88+
</archive>
89+
</configuration>
90+
</plugin>
6191
<plugin>
6292
<groupId>org.apache.maven.plugins</groupId>
6393
<artifactId>maven-shade-plugin</artifactId>
@@ -72,7 +102,7 @@
72102
<relocations>
73103
<relocation>
74104
<pattern>org.mcstats</pattern>
75-
<shadedPattern>unomodding.bukkit</shadedPattern>
105+
<shadedPattern>unomodding.bukkit.playtimelimiter.mcstats</shadedPattern>
76106
</relocation>
77107
</relocations>
78108
</configuration>

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: ${project.name}
2-
main: unomodding.bukkit.playtimelimiter.PlayTimeLimiter
2+
main: ${main.class}
33
version: ${project.version}
44
commands:
55
playtime:

0 commit comments

Comments
 (0)