forked from niftymonkey/NiftyWarp
/
devEnvironmentNotes.txt
63 lines (40 loc) · 2.55 KB
/
devEnvironmentNotes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
DEVELOPMENT ENVIRONMENT NOTES:
---------------------------------
Here is a high-level rundown of how to setup your environment for NiftyWarp development.
This is written based on the tools I have chosen for developing, and use of any other
tools is up to you. If I have time later I may write a more "step-by-step" failproof
version of this document. For now, here's the basic rundown from memory.
SOFTWARE LIST
* IntelliJ IDEA 10.5 Community Edition
- http://www.jetbrains.com/idea/
* Maven 2.2.1
- http://maven.apache.org/download.html
- http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
* Craftbukkit Server 0.0.1
- http://wiki.bukkit.org/Setting_up_a_server
- Apparently, there's an "installer" link at the bottom, though I didn't try that
* Bukkit API
- http://ci.bukkit.org/job/dev-Bukkit/ (the jar under the "Last Successful Artifacts")
- Alternatively, you can figure out a valid maven repository (if you find one, let me know :-) I'll update the pom)
* Git/Github
- http://github.com
BASIC DEV ENVIRONMENT SETUP STEPS:
* Install IntellJ if you haven't already done so
* Install Maven
* Install Craftbukkit Server
- I also ran it to make sure it worked before I start messing around with it with this plugin
Note: I had to run it twice before it worked for me. Seemed like it generated everything it needed
in the directory the first time, and the second time it just started up the server
* Download the Bukkit API, and install it
- Since we're using Maven, and I can't find a repository for tbe bukkit dependency,
just download it and go to the folder you downloaded the bukkit api into, and
type the following:
mvn install:install-file -DgroupId=org.bukkit -DartifactId=bukkit -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=bukkit-0.0.1-SNAPSHOT.jar
* Install Git and pull the latest from the repository
* Open IntelliJ and "Open Project..." and select the pom.xml from the top level project directory
* [Optional] Create a properties file to support the dev profile used to deploy the jar for testing on your server.
- Create a niftywarp-1.0.properties file in your <user.home>/dev/properties folder and place the following property in it
minecraft.server.dir=<path to your craftbukkit server directory>
- The "1.0" part of the property file name needs to match the version of the project in the pom.xml
- If you do this step, you'll need to select the "dev.install.jar" profile
* Run a maven clean/install and you should have the jar in your <minecraft.server.dir>/plugins directory