Forge version 1.5.16
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Forge version 1.5.16
by drdev » 10 Apr 2014, 02:47
It was an issue with FatPacks having a hard-coded "res/" reference. I've removed all the remaining hard-coded "res/" references in favor of using ForgeConstants, where the relative paths are set up correctly. Everything should be fixed as of r25391.friarsol wrote:Thanks, here's some more info regarding the crash:
I get it when I goto New/Load Quest. I've attached one of of the quests that causes the crash for me. As I mentioned, a newly created quest doesn't have this issue and I didn't have this issue before the conversion.
- drdev
- Programmer
- Posts: 1958
- Joined: 27 Jul 2013, 02:07
- Has thanked: 189 times
- Been thanked: 565 times
Re: Forge version 1.5.16
by Chris H. » 10 Apr 2014, 16:23
I updated to rev 25401 and then did the import maven projects. After modifying my run config I can launch forge from within Eclipse.
I then attempted to build a local forge archive with the following Maven goal:
-U -B clean install -P windows-linux -DskipTests=true -Darguments="-DskipTests=true"
The process ended in a build failure. I doubt that I will be able to fix this myself.
I then attempted to build a local forge archive with the following Maven goal:
-U -B clean install -P windows-linux -DskipTests=true -Darguments="-DskipTests=true"
The process ended in a build failure. I doubt that I will be able to fix this myself.

- Code: Select all
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Forge Parent
[INFO] Forge Core
[INFO] Forge Game
[INFO] Forge AI
[INFO] Forge Net
[INFO] Forge Gui
[INFO] Forge
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Parent 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/target
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/pom.xml to /Users/me/.m2/repository/forge/forge/1.5.16-SNAPSHOT/forge-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Core 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-core ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-core/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-core ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 99 source files to /Users/me/Workspace_New/ForgeLocal/forge-core/target/classes
[WARNING] /Users/me/Workspace_New/ForgeLocal/forge-core/src/main/java/forge/item/SealedProduct.java: Some input files use unchecked or unsafe operations.
[WARNING] /Users/me/Workspace_New/ForgeLocal/forge-core/src/main/java/forge/item/SealedProduct.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-core ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-core ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-core ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-core/target/forge-core-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-core ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-core/target/forge-core-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-core/1.5.16-SNAPSHOT/forge-core-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-core/pom.xml to /Users/me/.m2/repository/forge/forge-core/1.5.16-SNAPSHOT/forge-core-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Game 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-game ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-game/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-game ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-game/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-game ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 380 source files to /Users/me/Workspace_New/ForgeLocal/forge-game/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-game ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-game/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-game ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-game ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-game ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-game/target/forge-game-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-game ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-game/target/forge-game-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-game/1.5.16-SNAPSHOT/forge-game-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-game/pom.xml to /Users/me/.m2/repository/forge/forge-game/1.5.16-SNAPSHOT/forge-game-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge AI 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-ai ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-ai/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-ai ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-ai ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 127 source files to /Users/me/Workspace_New/ForgeLocal/forge-ai/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-ai ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-ai/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-ai ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-ai ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-ai ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-ai/target/forge-ai-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-ai ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-ai/target/forge-ai-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-ai/1.5.16-SNAPSHOT/forge-ai-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-ai/pom.xml to /Users/me/.m2/repository/forge/forge-ai/1.5.16-SNAPSHOT/forge-ai-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Net 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-net ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-net/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-net ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-net ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 17 source files to /Users/me/Workspace_New/ForgeLocal/forge-net/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-net ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-net/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-net ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-net ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-net ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-net/target/forge-net-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-net ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-net/target/forge-net-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-net/1.5.16-SNAPSHOT/forge-net-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-net/pom.xml to /Users/me/.m2/repository/forge/forge-net/1.5.16-SNAPSHOT/forge-net-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Gui 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-gui ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-gui/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-gui ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-gui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 192 source files to /Users/me/Workspace_New/ForgeLocal/forge-gui/target/classes
[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/me/Workspace_New/ForgeLocal/forge-gui/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-gui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-gui ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-gui ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-gui/target/forge-gui-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-gui ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-gui/target/forge-gui-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-gui/1.5.16-SNAPSHOT/forge-gui-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-gui/pom.xml to /Users/me/.m2/repository/forge/forge-gui/1.5.16-SNAPSHOT/forge-gui-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-gui-desktop ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:released-version (released-version) @ forge-gui-desktop ---
[INFO] artifact forge:forge-gui-desktop: checking for updates from arcane-maven-repo
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] artifact forge:forge-gui-desktop: checking for updates from central
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:parse-version (parse-version) @ forge-gui-desktop ---
[INFO]
[INFO] --- svn-revision-number-maven-plugin:1.13:revision (default) @ forge-gui-desktop ---
[INFO] inspecting directory /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-gui-desktop ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/src/main/resources
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (build-version-string) @ forge-gui-desktop ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-gui-desktop ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 322 source files to /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-gui-desktop ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-gui-desktop ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 45 source files to /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-gui-desktop ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ forge-gui-desktop ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- launch4j-maven-plugin:1.5.2:launch4j (l4j-gui) @ forge-gui-desktop ---
[INFO] Platform-specific work directory already exists: /Users/me/.m2/repository/com/akathist/maven/plugins/launch4j/launch4j-maven-plugin/1.5.2
[INFO] launch4j: Compiling resources
[INFO] launch4j: Linking
[INFO] launch4j: Successfully created /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge.exe
[INFO]
[INFO] --- replacer:1.5.2:replace (default) @ forge-gui-desktop ---
[INFO] Replacement run on 2 files.
[INFO]
[INFO] --- maven-assembly-plugin:2.4:single (make-assembly) @ forge-gui-desktop ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT-jar-with-dependencies.jar
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (win-linux-app-bundle) @ forge-gui-desktop ---
[INFO] Executing tasks
main:
[mkdir] Created dir: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT
[copy] Copying 4 files to /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT
[mkdir] Created dir: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT/res/cardsfolder
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Forge Parent ...................................... SUCCESS [1.618s]
[INFO] Forge Core ........................................ SUCCESS [6.907s]
[INFO] Forge Game ........................................ SUCCESS [6.181s]
[INFO] Forge AI .......................................... SUCCESS [2.296s]
[INFO] Forge Net ......................................... SUCCESS [0.325s]
[INFO] Forge Gui ......................................... SUCCESS [3.942s]
[INFO] Forge ............................................. FAILURE [20.514s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.656s
[INFO] Finished at: Thu Apr 10 12:04:32 EDT 2014
[INFO] Final Memory: 34M/212M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (win-linux-app-bundle) on project forge-gui-desktop: An Ant BuildException has occured: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/res/cardsfolder does not exist.
[ERROR] around Ant part ...<zip level="1" basedir="/Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/res/cardsfolder" destfile="/Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT/res/cardsfolder/cardsfolder.zip"/>... @ 20:255 in /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/antrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :forge-gui-desktop
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Forge version 1.5.16
by drdev » 10 Apr 2014, 19:52
@Chris - I knew it wouldn't work as is, because the {basedir} directory is now forge-gui-desktop instead of forge-gui and the res folder and files like CHANGES.txt are still in forge-gui. Is {basedir}/../forge-gui/ a valid path? If so then replacing {basedir} with that might fix things. Otherwise, should create the pom.xml for the release build at the trunk level instead of in forge-gui-desktop (or forge-gui for that matter). Then we could avoid the backwards path reference.
- drdev
- Programmer
- Posts: 1958
- Joined: 27 Jul 2013, 02:07
- Has thanked: 189 times
- Been thanked: 565 times
Re: Forge version 1.5.16
by friarsol » 18 Apr 2014, 23:58
Is the build functional right now? The tentative release was last week and the last thing I see on this thread is the build doesn't work, so we should probably get that resolved.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Forge version 1.5.16
by Chris H. » 19 Apr 2014, 02:46
The build and deploy Maven Goal still results in a failure.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (win-linux-app-bundle) on project forge-gui-desktop: An Ant BuildException has occured: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/res/cardsfolder does not exist.
- Code: Select all
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Forge Parent
[INFO] Forge Core
[INFO] Forge Game
[INFO] Forge AI
[INFO] Forge Net
[INFO] Forge Gui
[INFO] Forge
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Parent 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge ---
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/pom.xml to /Users/me/.m2/repository/forge/forge/1.5.16-SNAPSHOT/forge-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Core 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-core ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-core/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-core ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-core/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 99 source files to /Users/me/Workspace_New/ForgeLocal/forge-core/target/classes
[WARNING] /Users/me/Workspace_New/ForgeLocal/forge-core/src/main/java/forge/item/SealedProduct.java: Some input files use unchecked or unsafe operations.
[WARNING] /Users/me/Workspace_New/ForgeLocal/forge-core/src/main/java/forge/item/SealedProduct.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-core ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-core ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-core ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-core/target/forge-core-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-core ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-core/target/forge-core-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-core/1.5.16-SNAPSHOT/forge-core-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-core/pom.xml to /Users/me/.m2/repository/forge/forge-core/1.5.16-SNAPSHOT/forge-core-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Game 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-game ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-game/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-game ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-game/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-game ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 380 source files to /Users/me/Workspace_New/ForgeLocal/forge-game/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-game ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-game/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-game ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-game ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-game ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-game/target/forge-game-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-game ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-game/target/forge-game-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-game/1.5.16-SNAPSHOT/forge-game-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-game/pom.xml to /Users/me/.m2/repository/forge/forge-game/1.5.16-SNAPSHOT/forge-game-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge AI 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-ai ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-ai/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-ai ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-ai ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 127 source files to /Users/me/Workspace_New/ForgeLocal/forge-ai/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-ai ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-ai/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-ai ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-ai ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-ai ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-ai/target/forge-ai-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-ai ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-ai/target/forge-ai-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-ai/1.5.16-SNAPSHOT/forge-ai-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-ai/pom.xml to /Users/me/.m2/repository/forge/forge-ai/1.5.16-SNAPSHOT/forge-ai-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Net 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-net ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-net/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-net ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-net ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 17 source files to /Users/me/Workspace_New/ForgeLocal/forge-net/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-net ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-net/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-net ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-net ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-net ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-net/target/forge-net-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-net ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-net/target/forge-net-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-net/1.5.16-SNAPSHOT/forge-net-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-net/pom.xml to /Users/me/.m2/repository/forge/forge-net/1.5.16-SNAPSHOT/forge-net-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge Gui 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-gui ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-gui/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-gui ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-gui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 196 source files to /Users/me/Workspace_New/ForgeLocal/forge-gui/target/classes
[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/me/Workspace_New/ForgeLocal/forge-gui/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-gui ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-gui ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forge-gui ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-gui/target/forge-gui-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ forge-gui ---
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-gui/target/forge-gui-1.5.16-SNAPSHOT.jar to /Users/me/.m2/repository/forge/forge-gui/1.5.16-SNAPSHOT/forge-gui-1.5.16-SNAPSHOT.jar
[INFO] Installing /Users/me/Workspace_New/ForgeLocal/forge-gui/pom.xml to /Users/me/.m2/repository/forge/forge-gui/1.5.16-SNAPSHOT/forge-gui-1.5.16-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Forge 1.5.16-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ forge-gui-desktop ---
[INFO] Deleting /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:released-version (released-version) @ forge-gui-desktop ---
[INFO] artifact forge:forge-gui-desktop: checking for updates from arcane-maven-repo
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] artifact forge:forge-gui-desktop: checking for updates from central
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:parse-version (parse-version) @ forge-gui-desktop ---
[INFO]
[INFO] --- svn-revision-number-maven-plugin:1.13:revision (default) @ forge-gui-desktop ---
[INFO] inspecting directory /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ forge-gui-desktop ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/src/main/resources
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (build-version-string) @ forge-gui-desktop ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ forge-gui-desktop ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 322 source files to /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ forge-gui-desktop ---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ forge-gui-desktop ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 45 source files to /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-gui-desktop ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ forge-gui-desktop ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT.jar
[INFO]
[INFO] --- launch4j-maven-plugin:1.5.2:launch4j (l4j-gui) @ forge-gui-desktop ---
[INFO] Platform-specific work directory already exists: /Users/me/.m2/repository/com/akathist/maven/plugins/launch4j/launch4j-maven-plugin/1.5.2
[INFO] launch4j: Compiling resources
[INFO] launch4j: Linking
[INFO] launch4j: Successfully created /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge.exe
[INFO]
[INFO] --- replacer:1.5.2:replace (default) @ forge-gui-desktop ---
[INFO] Replacement run on 2 files.
[INFO]
[INFO] --- maven-assembly-plugin:2.4:single (make-assembly) @ forge-gui-desktop ---
[INFO] Building jar: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT-jar-with-dependencies.jar
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (win-linux-app-bundle) @ forge-gui-desktop ---
[INFO] Executing tasks
main:
[mkdir] Created dir: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT
[copy] Copying 4 files to /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT
[mkdir] Created dir: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT/res/cardsfolder
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Forge Parent ...................................... SUCCESS [0.922s]
[INFO] Forge Core ........................................ SUCCESS [7.114s]
[INFO] Forge Game ........................................ SUCCESS [5.245s]
[INFO] Forge AI .......................................... SUCCESS [1.785s]
[INFO] Forge Net ......................................... SUCCESS [0.305s]
[INFO] Forge Gui ......................................... SUCCESS [2.693s]
[INFO] Forge ............................................. FAILURE [20.812s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.788s
[INFO] Finished at: Fri Apr 18 22:42:21 EDT 2014
[INFO] Final Memory: 34M/125M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (win-linux-app-bundle) on project forge-gui-desktop: An Ant BuildException has occured: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/res/cardsfolder does not exist.
[ERROR] around Ant part ...<zip level="1" basedir="/Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/res/cardsfolder" destfile="/Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/forge-gui-desktop-1.5.16-SNAPSHOT/res/cardsfolder/cardsfolder.zip"/>... @ 20:255 in /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/antrun/build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :forge-gui-desktop
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Forge version 1.5.16
by drdev » 19 Apr 2014, 02:56
Nobody has answered my question about how to fix pom.xml. I'm not a Maven expert, though I'm trying to learn.
- drdev
- Programmer
- Posts: 1958
- Joined: 27 Jul 2013, 02:07
- Has thanked: 189 times
- Been thanked: 565 times
Re: Forge version 1.5.16
by Chris H. » 19 Apr 2014, 13:11
drdev wrote:Nobody has answered my question about how to fix pom.xml. I'm not a Maven expert, though I'm trying to learn.
Hi Dan.
Dave created our Maven based build and deploy system. I have no expertise in this area and will not be able to fix it correctly myself.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Forge version 1.5.16
by timmermac » 19 Apr 2014, 14:59
I seem to recall drdev mentioning something about changing a directory structure a while back. Would reverting that change help to get the beta/snapshot builds out, or would it screw things up even farther?
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
Re: Forge version 1.5.16
by friarsol » 19 Apr 2014, 15:25
We're way past just reverting that change. Hopefully one of the maven gurus can help get the pom files back into form.timmermac wrote:I seem to recall drdev mentioning something about changing a directory structure a while back. Would reverting that change help to get the beta/snapshot builds out, or would it screw things up even farther?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Forge version 1.5.16
by KrazyTheFox » 19 Apr 2014, 20:23
It requires some hard-coding of the directories, it's most likely not the best way to do it, but it should at least compile (it does on my computer). Here's how to get it to work:
In forge-gui-desktop/pom.xml, change lines 319-321 to:
Then change line 327 to:
Line 438 to:
And line 441 to:
I may have missed something with the OSX part, as I don't have an OSX system to test it on (which is required?).
Here's the full pom.xml for forge-gui-desktop: https://gist.github.com/KrazyTheFox/45629a635396b758c402
--
Edit: I'm also going to hijack my own post a little. I've been making a bunch of modifications and was wondering if anyone would be interested in any of the following:
In forge-gui-desktop/pom.xml, change lines 319-321 to:
- Code: Select all
<fileset dir="${basedir}/../forge-gui/">
<include name="res/**" />
<exclude name="res/cardsfolder/**" />
Then change line 327 to:
- Code: Select all
<zip destfile="${project.build.directory}/${project.build.finalName}/res/cardsfolder/cardsfolder.zip" basedir="${basedir}/../forge-gui/res/cardsfolder" level="1" />
Line 438 to:
- Code: Select all
<fileset dir="${basedir}/../forge-gui/res" excludes="**/cardsfolder/**" />
And line 441 to:
- Code: Select all
<zip destfile="${project.build.directory}/${project.build.finalName}-osx/Forge.app/Contents/Resources/res/cardsfolder/cardsfolder.zip" basedir="${basedir}/../forge-gui/res/cardsfolder" level="1" />
I may have missed something with the OSX part, as I don't have an OSX system to test it on (which is required?).
Here's the full pom.xml for forge-gui-desktop: https://gist.github.com/KrazyTheFox/45629a635396b758c402
--
Edit: I'm also going to hijack my own post a little. I've been making a bunch of modifications and was wondering if anyone would be interested in any of the following:
- Antes are not removed from decks until after each game. (This most likely interferes with cards that alter antes)
- Antes are always of the same rarity. (Exceptions made for things like Time Shifted cards)
- Fat Packs and Booster Boxes are optionally opened 1 booster at a time. (Sample Image, accounts for additional cards, such as 40 land cards)
- Booster Boxes in addition to Fat Packs available in the quest shop. I've removed this from my own game, but I have all the code for it still. Would not recommend using without the single-booster-at-a-time option.
- Large card art in card viewers as an option. (For use with mtgimage.com, affects all card viewers, see above screenshot and this screenshot)
- Separate credits on win screen into opponent strength and bonus credits for number of previous wins. (See this screenshot)
- Credits awarded for win-by-turns is no longer a threshold, but a calculation of credits per turn. Would need lots of balancing. (In other words, turn 1 might award 5000 credits, turn 2 might award 750 credits, turn 3 might award 300 credits, turn 5 might award 100 credits, turn 10 might award 35 credits, turn 30 might award 1 credit.)
- Turns passed when awarding credits are calculated based on how many turns the player has played, not how many total turns have passed. Would need balancing.
Last edited by KrazyTheFox on 19 Apr 2014, 23:09, edited 3 times in total.
-
KrazyTheFox - Programmer
- Posts: 725
- Joined: 18 Mar 2014, 23:51
- Has thanked: 66 times
- Been thanked: 226 times
Re: Forge version 1.5.16
by Chris H. » 19 Apr 2014, 22:40
Thank you KrazyTheFox for taking a stab at fixing the problem.
I made the changes that you suggested and was able to do a Maven based local build without a deploy.
I then added the osx parameter to my Maven goal and I get this error:
The windows-linux archive does not include these files and I was wondering if you could figure out what changes need to be made so these files can be included:

I made the changes that you suggested and was able to do a Maven based local build without a deploy.
I then added the osx parameter to my Maven goal and I get this error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (osx-appbundle) on project forge-gui-desktop: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "/Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/src/main/config/create-dmg" (in directory "/Users/me/Workspace_New/ForgeLocal/forge-gui-desktop"): error=13, Permission denied
[ERROR] around Ant part ...<exec executable="/Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/src/main/config/create-dmg" failonerror="false">... @ 28:132 in /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/antrun/build-main.xml
The windows-linux archive does not include these files and I was wondering if you could figure out what changes need to be made so these files can be included:
CHANGES.txt
forge.profile.properties.example
LICENSE.txt
README.txt
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Forge version 1.5.16
by KrazyTheFox » 19 Apr 2014, 23:06
I'll take a look at it once I get back from picking up dinner for the family. I spent the past 30 minutes editing the above post (unrelated to the build process) and only just refreshed the page. 
Edit: Alright, try these modifications in addition to the ones listed in my previous post:
Lines 423-425:
Line 427:
Line 430:
Line 445: (This part should fix the error above)
It may be necessary to change line 446. Try it and let me know if it is:
These should be all the changes necessary to fix the build errors on OSX, but again, I can't be sure. I'll also see about turning the "/../forge-gui/" part into a property in the forge/pom.xml file instead, so it can be edited from just one place (once everything's working so I have something to work off of). Annoyingly, Maven's removed the ability to reference other projects in a multi-module setup easily, so AFAIK this is how to get around that.
The whole pom.xml gist has been updated: https://gist.github.com/KrazyTheFox/45629a635396b758c402

Edit: Alright, try these modifications in addition to the ones listed in my previous post:
Lines 423-425:
- Code: Select all
<fileset dir="${basedir}/../forge-gui/" includes="LICENSE.txt" />
<fileset dir="${basedir}/../forge-gui/" includes="README.txt" />
<fileset dir="${basedir}/../forge-gui/" includes="CHANGES.txt" />
Line 427:
- Code: Select all
<taskdef name="bundleapp" classpath="${basedir}/../forge-gui/${configSourceDirectory}/appbundler-1.0-custom.jar" classname="com.oracle.appbundler.AppBundlerTask" />
Line 430:
- Code: Select all
<classpath file="${basedir}/../forge-gui/forge.profile.properties.example" />
Line 445: (This part should fix the error above)
- Code: Select all
<exec executable="${basedir}/../forge-gui/${configSourceDirectory}/create-dmg" failonerror="false">
It may be necessary to change line 446. Try it and let me know if it is:
- Code: Select all
<arg line="--volname ${project.name}-${project.version} --background ${basedir}/../forge-gui/${configSourceDirectory}/backgroundImage.jpg --window-size 700 419 --icon-size 64 --icon ${forge.file.name} 141 283 --icon ${applications.file.name} 452 283 --icon ${changes.file.name} 645 80 --icon ${license.file.name} 645 200 --icon ${readme.file.name} 645 320 ${project.build.directory}/${project.build.finalName}.dmg ${project.build.directory}/${project.build.finalName}-osx" />
These should be all the changes necessary to fix the build errors on OSX, but again, I can't be sure. I'll also see about turning the "/../forge-gui/" part into a property in the forge/pom.xml file instead, so it can be edited from just one place (once everything's working so I have something to work off of). Annoyingly, Maven's removed the ability to reference other projects in a multi-module setup easily, so AFAIK this is how to get around that.
The whole pom.xml gist has been updated: https://gist.github.com/KrazyTheFox/45629a635396b758c402
-
KrazyTheFox - Programmer
- Posts: 725
- Joined: 18 Mar 2014, 23:51
- Has thanked: 66 times
- Been thanked: 226 times
Re: Forge version 1.5.16
by Chris H. » 20 Apr 2014, 01:23
KrazyTheFox wrote:It may be necessary to change line 446. Try it and let me know if it is:
- Code: Select all
<arg line="--volname ${project.name}-${project.version} --background ${basedir}/../forge-gui/${configSourceDirectory}/backgroundImage.jpg --window-size 700 419 --icon-size 64 --icon ${forge.file.name} 141 283 --icon ${applications.file.name} 452 283 --icon ${changes.file.name} 645 80 --icon ${license.file.name} 645 200 --icon ${readme.file.name} 645 320 ${project.build.directory}/${project.build.finalName}.dmg ${project.build.directory}/${project.build.finalName}-osx" />
These should be all the changes necessary to fix the build errors on OSX, but again, I can't be sure. I'll also see about turning the "/../forge-gui/" part into a property in the forge/pom.xml file instead, so it can be edited from just one place (once everything's working so I have something to work off of). Annoyingly, Maven's removed the ability to reference other projects in a multi-module setup easily, so AFAIK this is how to get around that.
The whole pom.xml gist has been updated: https://gist.github.com/KrazyTheFox/45629a635396b758c402
It now works for OSX but I had to use your above suggestion to get the root dir window to display correctly. Thank you. Just need to do a build and deploy to cardforge.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Forge version 1.5.16
by drdev » 20 Apr 2014, 01:29
KrazyTheFox, thank you for helping out with this. I'm sorry I left things in this state, but I thought somebody with more Maven knowledge should resolve it. That's part of why I had asked Max to set up the new project originally. I'll try to learn from what you did for any future work I do to make sure I don't break the Maven build.
- drdev
- Programmer
- Posts: 1958
- Joined: 27 Jul 2013, 02:07
- Has thanked: 189 times
- Been thanked: 565 times
Re: Forge version 1.5.16
by Chris H. » 20 Apr 2014, 01:44
Chris H. wrote:Just need to do a build and deploy to cardforge.
I attempted to do a snapshot build and deploy without turning the tests off and I got a test error:
- Code: Select all
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ forge-gui-desktop ---
[INFO] Surefire report directory: /Users/me/Workspace_New/ForgeLocal/forge-gui-desktop/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Configuring TestNG with: TestNG652Configurator
java.lang.NullPointerException
at forge.toolbox.FSkin$Colors.updateColor(FSkin.java:390)
at forge.toolbox.FSkin$Colors.updateAll(FSkin.java:368)
at forge.GuiProgressBarWindowTest.guiProgressBarWindowTest1(GuiProgressBarWindowTest.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:91)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:204)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:107)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Tests run: 6, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 2.268 sec <<< FAILURE! - in TestSuite
test(forge.item.DeckHintsTest) Time elapsed: 0.043 sec <<< FAILURE!
java.lang.ExceptionInInitializerError: null
at forge.properties.ForgeConstants.<clinit>(ForgeConstants.java:26)
at forge.item.DeckHintsTest.readCard(DeckHintsTest.java:132)
at forge.item.DeckHintsTest.test(DeckHintsTest.java:28)
testCards(forge.item.DeckHintsTest) Time elapsed: 0.004 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class forge.properties.ForgeConstants
at forge.item.DeckHintsTest.readCard(DeckHintsTest.java:132)
at forge.item.DeckHintsTest.testCards(DeckHintsTest.java:49)
testColor(forge.item.DeckHintsTest) Time elapsed: 0 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class forge.properties.ForgeConstants
at forge.item.DeckHintsTest.readCard(DeckHintsTest.java:132)
at forge.item.DeckHintsTest.testColor(DeckHintsTest.java:90)
testKeywords(forge.item.DeckHintsTest) Time elapsed: 0.005 sec <<< FAILURE!
java.lang.NoClassDefFoundError: Could not initialize class forge.properties.ForgeConstants
at forge.item.DeckHintsTest.readCard(DeckHintsTest.java:132)
at forge.item.DeckHintsTest.testKeywords(DeckHintsTest.java:71)
Results :
Failed tests:
DeckHintsTest.test:28->readCard:132 ExceptionInInitializer
DeckHintsTest.testCards:49->readCard:132 NoClassDefFound Could not initialize ...
DeckHintsTest.testColor:90->readCard:132 NoClassDefFound Could not initialize ...
DeckHintsTest.testKeywords:71->readCard:132 NoClassDefFound Could not initiali...
Tests run: 6, Failures: 4, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Forge Parent ...................................... SUCCESS [41.054s]
[INFO] Forge Core ........................................ SUCCESS [1:31.002s]
[INFO] Forge Game ........................................ SUCCESS [3:51.133s]
[INFO] Forge AI .......................................... SUCCESS [2:03.121s]
[INFO] Forge Net ......................................... SUCCESS [24.296s]
[INFO] Forge Gui ......................................... SUCCESS [2:12.609s]
[INFO] Forge ............................................. FAILURE [8.587s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:57.442s
[INFO] Finished at: Sat Apr 19 21:38:50 EDT 2014
[INFO] Final Memory: 95M/235M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project forge-gui-desktop: There are test failures.
[ERROR]
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Who is online
Users browsing this forum: No registered users and 21 guests