Unable to build Forge 1.5.5 on Mac OSX 10.9.1
Hello,
I've been trying to build Forge 1.5.5 for the 6 hours or so, but I've thus far been unsuccessful. It's worth noting I am new to Java development.
I carefully followed the instructions found on the wiki Forge:How_to_Get_Started_Developing_Forge
Here is how I got to where I am:
Operating System: OSX 10.9.1
Eclipse Version: 4.3.1
Maven Version: Embedded 3.0.4/1.4.0.x
Installed Software:
I ran into a problem about JavaHL, and had to install brew so I could install subversion with JavaHL; I installed the default version 1.8. I ran into an error about an invalid version, and installed version 1.6. I did not get the error so I assumed it was the correct version.
On ForgeLocal [trunk], when I clicked "Run As", Java Application was not an option. I tried duplicating it, and on the new one, Copy of ForgeLocal [trunk], Java Application was available, and I chose it. I received the error
"Selection does not contain a main type".
I then tried "Run as Maven build.." and received an invalid version of JDK error. I added JDK 7 to the list of JREs and set it to default. I got this:
However, when I ran it, I received this error: "Error: Could not find or load main class .Users.seangcxq.Documents.workspace.Forge.forge-gui.target.forge.jar"
Any help would be greatly appreciated.
I've been trying to build Forge 1.5.5 for the 6 hours or so, but I've thus far been unsuccessful. It's worth noting I am new to Java development.
I carefully followed the instructions found on the wiki Forge:How_to_Get_Started_Developing_Forge
Here is how I got to where I am:
Operating System: OSX 10.9.1
Eclipse Version: 4.3.1
Maven Version: Embedded 3.0.4/1.4.0.x
Installed Software:
- Code: Select all
CollabNet Merge Client 2.2.4 4.3.1.M20130911-1000
JNA Library 3.2.7
m2e - Maven Integration for Eclipse 1.4.0.20130601-0317
Maven SCM handler for Subclipse 0.13.0.201303011221
Maven SCM handler for Subversive 0.13.0.201303011221
Native JavaHL 1.6 Implementation (Optional) 3.0.2.I20130808-1700
Subclipse (Required) 1.6.18
Subclipse Integration for Mylyn 3.x (Optional)
Subversion Client Adapter (Required) 1.6.12
Subversion JavaHL Native Library Adapter (Required) 1.6.17
Subversion Revision Graph 1.0.9
Subversive SVN Connectors 3.0.4.I20131116-1700
SVNKit Client Adapter (Not required) 1.6.15
SVNKit Library 1.3.5.7406
I ran into a problem about JavaHL, and had to install brew so I could install subversion with JavaHL; I installed the default version 1.8. I ran into an error about an invalid version, and installed version 1.6. I did not get the error so I assumed it was the correct version.
On ForgeLocal [trunk], when I clicked "Run As", Java Application was not an option. I tried duplicating it, and on the new one, Copy of ForgeLocal [trunk], Java Application was available, and I chose it. I received the error
"Selection does not contain a main type".
I then tried "Run as Maven build.." and received an invalid version of JDK error. I added JDK 7 to the list of JREs and set it to default. I got this:
- Code: Select all
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Forge Parent
[INFO] Forge Core
[INFO] Forge AI
[INFO] Forge
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Parent 1.5.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Core 1.5.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ forge-core ---
[debug] execute contextualize
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/seangcxq/Documents/workspace/Forge/forge-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ forge-core ---
[INFO] Compiling 3 source files to /Users/seangcxq/Documents/workspace/Forge/forge-core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ forge-core ---
[debug] execute contextualize
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/seangcxq/Documents/workspace/Forge/forge-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ forge-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ forge-core ---
[INFO] No tests to run.
[INFO] Surefire report directory: /Users/seangcxq/Documents/workspace/Forge/forge-core/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ forge-core ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge AI 1.5.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ forge-ai ---
[debug] execute contextualize
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/seangcxq/Documents/workspace/Forge/forge-ai/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ forge-ai ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ forge-ai ---
[debug] execute contextualize
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/seangcxq/Documents/workspace/Forge/forge-ai/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ forge-ai ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ forge-ai ---
[INFO] No tests to run.
[INFO] Surefire report directory: /Users/seangcxq/Documents/workspace/Forge/forge-ai/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ forge-ai ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge 1.5.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:released-version (released-version) @ forge-gui ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:parse-version (parse-version) @ forge-gui ---
[INFO]
[INFO] --- svn-revision-number-maven-plugin:1.13:revision (default) @ forge-gui ---
[INFO] inspecting directory /Users/seangcxq/Documents/workspace/Forge/forge-gui
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-gui ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (build-version-string) @ forge-gui ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-gui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1045 source files to /Users/seangcxq/Documents/workspace/Forge/forge-gui/target/classes
[WARNING] /Users/seangcxq/Documents/workspace/Forge/forge-gui/src/main/java/forge/game/phase/Untap.java: Some input files use or override a deprecated API.
[WARNING] /Users/seangcxq/Documents/workspace/Forge/forge-gui/src/main/java/forge/game/phase/Untap.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/seangcxq/Documents/workspace/Forge/forge-gui/src/main/java/forge/card/SealedProductTemplate.java: Some input files use unchecked or unsafe operations.
[WARNING] /Users/seangcxq/Documents/workspace/Forge/forge-gui/src/main/java/forge/card/SealedProductTemplate.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-gui ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/seangcxq/Documents/workspace/Forge/forge-gui/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-gui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 16 source files to /Users/seangcxq/Documents/workspace/Forge/forge-gui/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-gui ---
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Configuring TestNG with: TestNG652Configurator
failed : 41.0
failed : 42.0
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 326.874 sec - in TestSuite
Results :
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ forge-gui ---
[INFO] Building jar: /Users/seangcxq/Documents/workspace/Forge/forge-gui/target/forge-gui-1.5.5-SNAPSHOT-jar-with-dependencies.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Forge Parent ...................................... SUCCESS [0.003s]
[INFO] Forge Core ........................................ SUCCESS [2.630s]
[INFO] Forge AI .......................................... SUCCESS [0.274s]
[INFO] Forge ............................................. SUCCESS [6:42.771s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6:46.095s
[INFO] Finished at: Thu Jan 02 05:25:54 EST 2014
[INFO] Final Memory: 36M/406M
[INFO] ------------------------------------------------------------------------
However, when I ran it, I received this error: "Error: Could not find or load main class .Users.seangcxq.Documents.workspace.Forge.forge-gui.target.forge.jar"
Any help would be greatly appreciated.