Skip to content
eostermueller edited this page Sep 21, 2014 · 26 revisions

Here are instructions for building wuqiSpank yourself. If you instead want to just install and run the pre-built wuqiSpank, go here.

Prerequisites

  • 1.7 JDK (required to get ConcurrentLinkedDeque)
  • Maven

Add 'special' jar to Local Maven Repo

In its current state, building the repo will get your this error:

ERROR] Failed to execute goal on project wuqiSpank-war: Could not resolve dependencies for project org.wuqiSpank:wuqiSpank-war:war:1: 
Could not find artifact com.github.eostermueller:graph-lib:jar:2.4.0.4 in central (http://repo.maven.apache.org/maven2) -> [Help 1]

To make the above error go away:

  1. Download wuqiSpank-0.02.jar
  2. Unzip wuqiSpank.war from wuqiSpank-0.02.jar
  3. Unzip graph-lib-2.4.0.4.jar from wuqiSpank.war (it's in WEB-INF/lib).
  4. Add graph-lib-2.4.0.4.jar to your local repo:
mvn install:install-file -Dfile=graph-lib.jar -DgroupId=com.github.eostermueller -DartifactId=graph-lib -Dversion=2.4.0.4 -Dpackaging=jar

Build wuqiSpank.jar

wuqiSpank.jar builds to WUQISPANK_HOME/wuqispank-master/wuqiSpank/target. See this link for how to run this little beast.

  1. Open a browser to https://github.com/eostermueller/wuqispank and "Download ZIP" (bottom right of page).
  2. Unzip the file to new folder that we'll refer to as WUQISPANK_HOME
  3. cd to WUQISPANK_HOME/wuqispank-master/wuqiSpank
  4. mvn test should produce this output:
Results :

Tests run: 70, Failures: 0, Errors: 0, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.194 s
[INFO] Finished at: 2014-05-04T09:06:42-06:00
[INFO] Final Memory: 11M/226M
[INFO] ------------------------------------------------------------------------
  1. mvn package should produce this output:
[INFO] 
[INFO] --- tomcat7-maven-plugin:2.0:exec-war-only (tomcat-run) @ wuqiSpank-war ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.072 s
[INFO] Finished at: 2014-05-04T09:08:57-06:00
[INFO] Final Memory: 26M/365M
[INFO] ------------------------------------------------------------------------

Eclipse

To work with wuqiSpank in Eclipse, you'll need to first install the Eclipse M2E Plugin.

Open Eclipse. Choose File / Import / Existing Maven Project Point this folder: 'WUQISPANK_HOME/wuqispank-master'

I use this Eclipse version:

Version: Kepler Service Release 2
Build id: 20140224-0627

Clone this wiki locally