From d84fb870bf45e4fddee9f429d8c0d780dc44abb4 Mon Sep 17 00:00:00 2001 From: Chris Ward Date: Fri, 18 Oct 2013 22:49:03 +1100 Subject: Add Maven Support --- .gitignore | 4 +- .travis.yml | 1 + Essentials/nbproject/project.properties | 12 +- Essentials/pom.xml | 137 +++++++++++++++++ EssentialsAntiBuild/pom.xml | 51 +++++++ EssentialsChat/pom.xml | 51 +++++++ EssentialsGeoIP/pom.xml | 51 +++++++ EssentialsProtect/pom.xml | 51 +++++++ EssentialsSpawn/pom.xml | 51 +++++++ EssentialsXMPP/pom.xml | 82 ++++++++++ README.markdown | 15 ++ pom.xml | 260 ++++++++++++++++++++++++++++++++ 12 files changed, 759 insertions(+), 7 deletions(-) create mode 100644 Essentials/pom.xml create mode 100644 EssentialsAntiBuild/pom.xml create mode 100644 EssentialsChat/pom.xml create mode 100644 EssentialsGeoIP/pom.xml create mode 100644 EssentialsProtect/pom.xml create mode 100644 EssentialsSpawn/pom.xml create mode 100644 EssentialsXMPP/pom.xml create mode 100644 pom.xml diff --git a/.gitignore b/.gitignore index 60fc3717b..f594a93a3 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,6 @@ /jars /out .idea/ -*.iml \ No newline at end of file +*.iml +target/ +dependency-reduced-pom.xml \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index b68a6c495..4b22a6737 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ jdk: - openjdk7 - openjdk6 script: ant collect +install: true notifications: irc: channels: diff --git a/Essentials/nbproject/project.properties b/Essentials/nbproject/project.properties index 7537d9812..db24707b0 100644 --- a/Essentials/nbproject/project.properties +++ b/Essentials/nbproject/project.properties @@ -64,14 +64,14 @@ dist.jar=${dist.dir}/Essentials.jar dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath= excludes= -file.reference.BOSEconomy7.jar=../lib/BOSEconomy7.jar -file.reference.bpermissions2.jar=../lib/bpermissions2.jar +file.reference.BOSEconomy.jar=../lib/BOSEconomy.jar +file.reference.bPermissions.jar=../lib/bPermissions.jar file.reference.bukkit.jar=../lib/bukkit.jar file.reference.iCo5.jar=../lib/iCo5.jar file.reference.iCo6.jar=../lib/iCo6.jar -file.reference.lombok.jar=../lib/lombok-0.10.8.jar +file.reference.lombok.jar=../lib/lombok-1.12.2.jar file.reference.MultiCurrency.jar=../lib/MultiCurrency.jar -file.reference.PermissionsBukkit-1.2.jar=../lib/PermissionsBukkit-1.2.jar +file.reference.PermissionsBukkit-1.2.jar=../lib/PermissionsBukkit.jar file.reference.PermissionsEx.jar=../lib/PermissionsEx.jar file.reference.Privileges.jar=..\\lib\\Privileges.jar file.reference.Vault.jar=../lib/Vault.jar @@ -85,7 +85,7 @@ javac.classpath=\ ${file.reference.iCo5.jar}:\ ${file.reference.iCo6.jar}:\ ${file.reference.MultiCurrency.jar}:\ - ${file.reference.BOSEconomy7.jar}:\ + ${file.reference.BOSEconomy.jar}:\ ${file.reference.PermissionsEx.jar}:\ ${file.reference.PermissionsBukkit-1.2.jar}:\ ${file.reference.lombok.jar}:\ @@ -93,7 +93,7 @@ javac.classpath=\ ${file.reference.bukkit.jar}:\ ${file.reference.Vault.jar}:\ ${file.reference.Privileges.jar}:\ - ${file.reference.bpermissions2.jar}:\ + ${file.reference.bPermissions.jar}:\ ${file.reference.SimplyPerms.jar}:\ ${file.reference.zPermissions.jar} # Space-separated list of extra javac options diff --git a/Essentials/pom.xml b/Essentials/pom.xml new file mode 100644 index 000000000..d65b3e6bb --- /dev/null +++ b/Essentials/pom.xml @@ -0,0 +1,137 @@ + + 4.0.0 + + + net.ess3 + EssentialsParent + 2.x-SNAPSHOT + + + Essentials + + http://ess3.net/ + + + Essentials Team + http://ess3.net/ + + + + + GPLv3 + http://www.gnu.org/copyleft/gpl.html + + + + + scm:git:https://github.com/essentials/Essentials.git + scm:git:https://github.com/essentials/Essentials.git + https://github.com/essentials/Essentials + + + + JIRA + http://essentials3.atlassian.net + + + + TeamCity + http://ci.ess3.net/ + + + + + vault-repo + http://ci.herocraftonline.com/plugin/repository/everything + + + kitteh-repo + http://repo.kitteh.org/content/groups/public/ + + + + + + BOSEconomy + BOSEconomy + v0.7.8.1 + system + ${project.basedir}/../lib/BOSEconomy.jar + + + de.bananaco + bPermissions + v2.12-DEV + + + iConomy + iConomy5 + 5 + system + ${project.basedir}/../lib/iCo5.jar + + + iConomy + iConomy6 + 6 + system + ${project.basedir}/../lib/iCo6.jar + + + net.ess3 + GroupManager + ${project.version} + system + ${project.basedir}/../EssentialsGroupManager/dist/EssentialsGroupManager.jar + + + MultiCurrency + MultiCurrency + 2.2 + system + ${project.basedir}/../lib/MultiCurrency.jar + + + com.platymuus + bukkit-permissions + 2.0 + system + ${project.basedir}/../lib/PermissionsBukkit.jar + + + ru.tehkode + PermissionsEx + 1.20.4 + system + ${project.basedir}/../lib/PermissionsEx.jar + + + Privileges + Privileges + 1.8.1 + system + ${project.basedir}/../lib/Privileges.jar + + + SimplyPerms + SimplyPerms + 1.7.6 + system + ${project.basedir}/../lib/SimplyPerms.jar + + + net.milkbowl + vault + 1.2.27 + + + zPermissions + zPermissions + 1.1 + system + ${project.basedir}/../lib/zPermissions.jar + + + \ No newline at end of file diff --git a/EssentialsAntiBuild/pom.xml b/EssentialsAntiBuild/pom.xml new file mode 100644 index 000000000..224ac1afd --- /dev/null +++ b/EssentialsAntiBuild/pom.xml @@ -0,0 +1,51 @@ + + 4.0.0 + + + net.ess3 + EssentialsParent + 2.x-SNAPSHOT + + + EssentialsAntiBuild + + http://ess3.net/ + + + Essentials Team + http://ess3.net/ + + + + + GPLv3 + http://www.gnu.org/copyleft/gpl.html + + + + + scm:git:https://github.com/essentials/Essentials.git + scm:git:https://github.com/essentials/Essentials.git + https://github.com/essentials/Essentials + + + + JIRA + http://essentials3.atlassian.net + + + + TeamCity + http://ci.ess3.net/ + + + + + net.ess3 + Essentials + ${project.version} + + + \ No newline at end of file diff --git a/EssentialsChat/pom.xml b/EssentialsChat/pom.xml new file mode 100644 index 000000000..b84845c25 --- /dev/null +++ b/EssentialsChat/pom.xml @@ -0,0 +1,51 @@ + + 4.0.0 + + + net.ess3 + EssentialsParent + 2.x-SNAPSHOT + + + EssentialsChat + + http://ess3.net/ + + + Essentials Team + http://ess3.net/ + + + + + GPLv3 + http://www.gnu.org/copyleft/gpl.html + + + + + scm:git:https://github.com/essentials/Essentials.git + scm:git:https://github.com/essentials/Essentials.git + https://github.com/essentials/Essentials + + + + JIRA + http://essentials3.atlassian.net + + + + TeamCity + http://ci.ess3.net/ + + + + + net.ess3 + Essentials + ${project.version} + + + \ No newline at end of file diff --git a/EssentialsGeoIP/pom.xml b/EssentialsGeoIP/pom.xml new file mode 100644 index 000000000..4a832e820 --- /dev/null +++ b/EssentialsGeoIP/pom.xml @@ -0,0 +1,51 @@ + + 4.0.0 + + + net.ess3 + EssentialsParent + 2.x-SNAPSHOT + + + EssentialsGeoIP + + http://ess3.net/ + + + Essentials Team + http://ess3.net/ + + + + + GPLv3 + http://www.gnu.org/copyleft/gpl.html + + + + + scm:git:https://github.com/essentials/Essentials.git + scm:git:https://github.com/essentials/Essentials.git + https://github.com/essentials/Essentials + + + + JIRA + http://essentials3.atlassian.net + + + + TeamCity + http://ci.ess3.net/ + + + + + net.ess3 + Essentials + ${project.version} + + + \ No newline at end of file diff --git a/EssentialsProtect/pom.xml b/EssentialsProtect/pom.xml new file mode 100644 index 000000000..6434509fb --- /dev/null +++ b/EssentialsProtect/pom.xml @@ -0,0 +1,51 @@ + + 4.0.0 + + + net.ess3 + EssentialsParent + 2.x-SNAPSHOT + + + EssentialsProtect + + http://ess3.net/ + + + Essentials Team + http://ess3.net/ + + + + + GPLv3 + http://www.gnu.org/copyleft/gpl.html + + + + + scm:git:https://github.com/essentials/Essentials.git + scm:git:https://github.com/essentials/Essentials.git + https://github.com/essentials/Essentials + + + + JIRA + http://essentials3.atlassian.net + + + + TeamCity + http://ci.ess3.net/ + + + + + net.ess3 + Essentials + ${project.version} + + + \ No newline at end of file diff --git a/EssentialsSpawn/pom.xml b/EssentialsSpawn/pom.xml new file mode 100644 index 000000000..a482fe4f0 --- /dev/null +++ b/EssentialsSpawn/pom.xml @@ -0,0 +1,51 @@ + + 4.0.0 + + + net.ess3 + EssentialsParent + 2.x-SNAPSHOT + + + EssentialsSpawn + + http://ess3.net/ + + + Essentials Team + http://ess3.net/ + + + + + GPLv3 + http://www.gnu.org/copyleft/gpl.html + + + + + scm:git:https://github.com/essentials/Essentials.git + scm:git:https://github.com/essentials/Essentials.git + https://github.com/essentials/Essentials + + + + JIRA + http://essentials3.atlassian.net + + + + TeamCity + http://ci.ess3.net/ + + + + + net.ess3 + Essentials + ${project.version} + + + \ No newline at end of file diff --git a/EssentialsXMPP/pom.xml b/EssentialsXMPP/pom.xml new file mode 100644 index 000000000..36d47d7a2 --- /dev/null +++ b/EssentialsXMPP/pom.xml @@ -0,0 +1,82 @@ + + 4.0.0 + + + net.ess3 + EssentialsParent + 2.x-SNAPSHOT + + + EssentialsXMPP + + http://ess3.net/ + + + Essentials Team + http://ess3.net/ + + + + + GPLv3 + http://www.gnu.org/copyleft/gpl.html + + + + + scm:git:https://github.com/essentials/Essentials.git + scm:git:https://github.com/essentials/Essentials.git + https://github.com/essentials/Essentials + + + + JIRA + http://essentials3.atlassian.net + + + + TeamCity + http://ci.ess3.net/ + + + + + net.ess3 + Essentials + ${project.version} + + + org.igniterealtime.smack + smack + 3.2.1 + + + + + + + org.apache.maven.plugins + maven-shade-plugin + 2.1 + + + package + + shade + + + + + + + org.igniterealtime.smack:smack + + + + + + + + \ No newline at end of file diff --git a/README.markdown b/README.markdown index cc55bb847..a4b88a7cf 100644 --- a/README.markdown +++ b/README.markdown @@ -11,6 +11,21 @@ Recommended NetBeans plugins: * Git * PMD & FindBugs ( http://kenai.com/projects/sqe/pages/Home ) +Building +-------- +To build with Maven, use the command +``` +mvn package dependency:copy +``` + +To build with Ant, use the command +``` +ant +``` + +Jar files can then be found in the /jars folder + + Commit Guidelines ----------------- diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..75657da2e --- /dev/null +++ b/pom.xml @@ -0,0 +1,260 @@ + + 4.0.0 + + net.ess3 + EssentialsParent + 2.x-SNAPSHOT + + pom + + http://ess3.net/ + + + Essentials Team + http://ess3.net/ + + + + + GPLv3 + http://www.gnu.org/copyleft/gpl.html + + + + + scm:git:https://github.com/essentials/Essentials.git + scm:git:https://github.com/essentials/Essentials.git + https://github.com/essentials/Essentials + + + + JIRA + http://essentials3.atlassian.net + + + + TeamCity + http://ci.ess3.net/ + + + + + bukkit-repo + http://repo.bukkit.org/content/groups/public + + + + + Essentials + EssentialsAntiBuild + EssentialsChat + EssentialsGeoIP + EssentialsProtect + EssentialsSpawn + EssentialsXMPP + + + + + org.bukkit + bukkit + 1.6.4-R0.1-SNAPSHOT + + + junit + junit + 4.11 + test + + + org.projectlombok + lombok + 1.12.2 + + + + + TeamCity + GMBuildVer + UTF-8 + + + + src + test + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.6 + 1.6 + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.8 + + jars + true + + + ${project.groupId} + Essentials + ${project.version} + + + ${project.groupId} + EssentialsAntiBuild + ${project.version} + + + ${project.groupId} + EssentialsChat + ${project.version} + + + ${project.groupId} + EssentialsGeoIP + ${project.version} + + + ${project.groupId} + EssentialsProtect + ${project.version} + + + ${project.groupId} + EssentialsSpawn + ${project.version} + + + ${project.groupId} + EssentialsXMPP + ${project.version} + + + + + + maven-resources-plugin + 2.6 + + + copy-resources + + validate + + copy-resources + + + ${basedir}/jars + + + Essentials/src + + messages*.properties + config.yml + items.csv + + + plugin.yml + + true + + + EssentialsGroupManager/dist + + EssentialsGroupManager.jar + + + + + + + + + com.google.code.maven-replacer-plugin + replacer + 1.5.2 + + + process-sources + + replace + + + + + **/src/* + + + TeamCity + ${build.number} + + + GMBuildVer + ${GMVer} + + + $${build.number} + ${build.number} + + + $${GMVer} + ${GMVer} + + + + + + org.apache.maven.plugins + maven-clean-plugin + 2.5 + + + + ${basedir} + + jars/** + + + build/** + dist/** + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + package + + javadoc + + + + + + + + src + + *.properties + *.yml + *.csv + *.txt + + true + + + + \ No newline at end of file -- cgit v1.2.3