Maven Attempt 1

This commit is contained in:
Olof Larsson 2014-09-13 00:50:33 +02:00
parent 3debf17f27
commit 13a4afdfb4
170 changed files with 151 additions and 49 deletions

19
.gitignore vendored
View File

@ -1,20 +1,31 @@
# Eclipse stuff # Eclipse
/.classpath /.classpath
/.project /.project
/.settings /.settings
/*.jardesc
# IntelliJ
*.iml
*.ipr
*.iws
.idea/
# NetBeans # NetBeans
/nbproject /nbproject
/build.xml
# vim # vim
.*.sw[a-p] .*.sw[a-p]
# Maven
/build.xml
/target
/dependency-reduced-pom.xml
# various other potential build files # various other potential build files
/build /build
/bin /bin
/dist /dist
/*.jardesc /manifest.mf
# Mac filesystem dust # Mac filesystem dust
.DS_Store .DS_Store

BIN
lib/LWC-4.4.0.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
media/Thumbs.db Normal file

Binary file not shown.

82
pom.xml Normal file
View File

@ -0,0 +1,82 @@
<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>
<name>Factions</name>
<url>http://www.massivecraft.com/factions</url>
<groupId>com.massivecraft</groupId>
<artifactId>Factions</artifactId>
<version>2.6.1</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<defaultGoal>clean install</defaultGoal>
<finalName>Factions</finalName>
<sourceDirectory>${basedir}/src/main/java/</sourceDirectory>
<resources>
<resource>
<targetPath>.</targetPath>
<directory>${basedir}/src/main/resources/</directory>
<filtering>true</filtering>
<includes>
<include>*.yml</include>
<include>*.md</include>
<include>*.txt</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.massivecraft</groupId>
<artifactId>MassiveCore</artifactId>
<version>LATEST</version>
</dependency>
<dependency>
<groupId>us.dynmap</groupId>
<artifactId>dynmap-api</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>us.dynmap</groupId>
<artifactId>DynmapCore</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.dthielke</groupId>
<artifactId>HeroChat</artifactId>
<version>5.6.7</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/HeroChat-5.6.7.jar</systemPath>
</dependency>
<dependency>
<groupId>com.griefcraft</groupId>
<artifactId>LWC</artifactId>
<version>4.4.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/LWC-4.4.0.jar</systemPath>
</dependency>
</dependencies>
<repositories>
<repository>
<id>dynmap-repo</id>
<url>http://repo.mikeprimm.com/</url>
</repository>
</repositories>
</project>

View File

@ -47,8 +47,8 @@ import com.massivecraft.massivecore.AspectColl;
import com.massivecraft.massivecore.MassivePlugin; import com.massivecraft.massivecore.MassivePlugin;
import com.massivecraft.massivecore.Multiverse; import com.massivecraft.massivecore.Multiverse;
import com.massivecraft.massivecore.util.MUtil; import com.massivecraft.massivecore.util.MUtil;
import com.massivecraft.massivecore.xlib.gson.Gson; import com.google.gson.Gson;
import com.massivecraft.massivecore.xlib.gson.GsonBuilder; import com.google.gson.GsonBuilder;
public class Factions extends MassivePlugin public class Factions extends MassivePlugin

View File

@ -4,12 +4,12 @@ import java.lang.reflect.Type;
import java.util.Map; import java.util.Map;
import com.massivecraft.massivecore.ps.PS; import com.massivecraft.massivecore.ps.PS;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializer; import com.google.gson.JsonDeserializer;
import com.massivecraft.massivecore.xlib.gson.JsonElement; import com.google.gson.JsonElement;
import com.massivecraft.massivecore.xlib.gson.JsonParseException; import com.google.gson.JsonParseException;
import com.massivecraft.massivecore.xlib.gson.JsonSerializationContext; import com.google.gson.JsonSerializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonSerializer; import com.google.gson.JsonSerializer;
import com.massivecraft.factions.TerritoryAccess; import com.massivecraft.factions.TerritoryAccess;
import com.massivecraft.factions.entity.Board; import com.massivecraft.factions.entity.Board;

View File

@ -6,13 +6,13 @@ import java.util.Map.Entry;
import java.util.concurrent.ConcurrentSkipListMap; import java.util.concurrent.ConcurrentSkipListMap;
import com.massivecraft.massivecore.ps.PS; import com.massivecraft.massivecore.ps.PS;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializer; import com.google.gson.JsonDeserializer;
import com.massivecraft.massivecore.xlib.gson.JsonElement; import com.google.gson.JsonElement;
import com.massivecraft.massivecore.xlib.gson.JsonObject; import com.google.gson.JsonObject;
import com.massivecraft.massivecore.xlib.gson.JsonParseException; import com.google.gson.JsonParseException;
import com.massivecraft.massivecore.xlib.gson.JsonSerializationContext; import com.google.gson.JsonSerializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonSerializer; import com.google.gson.JsonSerializer;
import com.massivecraft.factions.TerritoryAccess; import com.massivecraft.factions.TerritoryAccess;
public class BoardMapAdapter implements JsonDeserializer<Map<PS, TerritoryAccess>>, JsonSerializer<Map<PS, TerritoryAccess>> public class BoardMapAdapter implements JsonDeserializer<Map<PS, TerritoryAccess>>, JsonSerializer<Map<PS, TerritoryAccess>>

View File

@ -3,10 +3,10 @@ package com.massivecraft.factions.adapter;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import com.massivecraft.factions.FFlag; import com.massivecraft.factions.FFlag;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializer; import com.google.gson.JsonDeserializer;
import com.massivecraft.massivecore.xlib.gson.JsonElement; import com.google.gson.JsonElement;
import com.massivecraft.massivecore.xlib.gson.JsonParseException; import com.google.gson.JsonParseException;
public class FFlagAdapter implements JsonDeserializer<FFlag> public class FFlagAdapter implements JsonDeserializer<FFlag>
{ {

View File

@ -2,10 +2,10 @@ package com.massivecraft.factions.adapter;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializer; import com.google.gson.JsonDeserializer;
import com.massivecraft.massivecore.xlib.gson.JsonElement; import com.google.gson.JsonElement;
import com.massivecraft.massivecore.xlib.gson.JsonParseException; import com.google.gson.JsonParseException;
import com.massivecraft.factions.FPerm; import com.massivecraft.factions.FPerm;
public class FPermAdapter implements JsonDeserializer<FPerm> public class FPermAdapter implements JsonDeserializer<FPerm>

View File

@ -2,11 +2,11 @@ package com.massivecraft.factions.adapter;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializer; import com.google.gson.JsonDeserializer;
import com.massivecraft.massivecore.xlib.gson.JsonElement; import com.google.gson.JsonElement;
import com.massivecraft.massivecore.xlib.gson.JsonObject; import com.google.gson.JsonObject;
import com.massivecraft.massivecore.xlib.gson.JsonParseException; import com.google.gson.JsonParseException;
import com.massivecraft.factions.Factions; import com.massivecraft.factions.Factions;
import com.massivecraft.factions.entity.Faction; import com.massivecraft.factions.entity.Faction;

View File

@ -2,10 +2,10 @@ package com.massivecraft.factions.adapter;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializer; import com.google.gson.JsonDeserializer;
import com.massivecraft.massivecore.xlib.gson.JsonElement; import com.google.gson.JsonElement;
import com.massivecraft.massivecore.xlib.gson.JsonParseException; import com.google.gson.JsonParseException;
import com.massivecraft.factions.Rel; import com.massivecraft.factions.Rel;
public class RelAdapter implements JsonDeserializer<Rel> public class RelAdapter implements JsonDeserializer<Rel>

View File

@ -3,15 +3,15 @@ package com.massivecraft.factions.adapter;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.Set; import java.util.Set;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonDeserializer; import com.google.gson.JsonDeserializer;
import com.massivecraft.massivecore.xlib.gson.JsonElement; import com.google.gson.JsonElement;
import com.massivecraft.massivecore.xlib.gson.JsonObject; import com.google.gson.JsonObject;
import com.massivecraft.massivecore.xlib.gson.JsonParseException; import com.google.gson.JsonParseException;
import com.massivecraft.massivecore.xlib.gson.JsonPrimitive; import com.google.gson.JsonPrimitive;
import com.massivecraft.massivecore.xlib.gson.JsonSerializationContext; import com.google.gson.JsonSerializationContext;
import com.massivecraft.massivecore.xlib.gson.JsonSerializer; import com.google.gson.JsonSerializer;
import com.massivecraft.massivecore.xlib.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;
import com.massivecraft.factions.TerritoryAccess; import com.massivecraft.factions.TerritoryAccess;
public class TerritoryAccessAdapter implements JsonDeserializer<TerritoryAccess>, JsonSerializer<TerritoryAccess> public class TerritoryAccessAdapter implements JsonDeserializer<TerritoryAccess>, JsonSerializer<TerritoryAccess>

View File

@ -37,6 +37,15 @@ public abstract class FCommand extends MassiveCommand
this.usenderFaction = this.usender.getFaction(); this.usenderFaction = this.usender.getFaction();
} }
@Override
public void unsetSenderVars()
{
this.msender = null;
this.usender = null;
this.usenderFaction = null;
}
// -------------------------------------------- // // -------------------------------------------- //
// COMMONLY USED LOGIC // COMMONLY USED LOGIC
// -------------------------------------------- // // -------------------------------------------- //

Some files were not shown because too many files have changed in this diff Show More