Menu

mvn install build failure w/ command line

Help
2016-04-16
2016-05-06
  • l0ckandl0ad

    l0ckandl0ad - 2016-04-16

    Hi.

    Here's the problem I get with latest 3.08 dev builds (r3618) under Win7x64.

    I've installed JDK (jdk-8u77-windows-x64) and Maven (apache-maven-3.3.9-bin), all in accordance with the guides/installation notes. I've skipped using SVN cuz I think I don't really need to for read-only stuff, I just download latest snapshots here instead.

    So. When I go for mvn compile, I get "BUILD SUCCESS", everything is fine, except for this encoding warning:

    [WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources,
    i.e. build is platform dependent!
    

    Result is ok tho:

    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] mars-sim ........................................... SUCCESS [  0.003 s]
    [INFO] mars-sim-mapdata ................................... SUCCESS [  7.649 s]
    [INFO] mars-sim-network ................................... SUCCESS [  0.093 s]
    [INFO] mars-sim-core ...................................... SUCCESS [ 12.063 s]
    [INFO] mars-sim-ui ........................................ SUCCESS [ 29.423 s]
    [INFO] mars-sim-main ...................................... SUCCESS [  2.462 s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 51.884 s
    [INFO] Finished at: 2016-04-16T12:23:34+03:00
    [INFO] Final Memory: 31M/371M
    [INFO] ------------------------------------------------------------------------
    

    But when I go for mvn install afterwards, I get "BUILD FAILURE":

            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:275)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve
    nt$354(GlassViewEventHandler.java:388)
            at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Quantum
    Toolkit.java:389)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Glas
    sViewEventHandler.java:387)
            at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
            at com.sun.glass.ui.View.notifyMouse(View.java:937)
            at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
            at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.ja
    va:191)
            at java.lang.Thread.run(Thread.java:745)
    Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
            at com.sun.javafx.tk.quantum.QuantumToolkit.isSupported(QuantumToolkit.j
    ava:1146)
            at com.sun.javafx.application.PlatformImpl.isSupportedImpl(PlatformImpl.
    java:809)
            at com.sun.javafx.application.PlatformImpl.isSupported(PlatformImpl.java
    :482)
            at javafx.application.Platform.isSupported(Platform.java:168)
            at com.sun.javafx.scene.input.PickResultChooser.processOffer(PickResultC
    hooser.java:182)
            at com.sun.javafx.scene.input.PickResultChooser.offer(PickResultChooser.
    java:143)
            at javafx.scene.Node.impl_intersects(Node.java:4943)
            at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2942)
            at javafx.scene.Node.impl_pickNode(Node.java:4912)
            at javafx.scene.Scene$MouseHandler.pickNode(Scene.java:3899)
            at javafx.scene.Scene$MouseHandler.access$1600(Scene.java:3485)
            at javafx.scene.Scene.pick(Scene.java:1942)
            at javafx.scene.Scene.access$6700(Scene.java:159)
            at javafx.scene.Scene$MouseHandler.process(Scene.java:3711)
            at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
            at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
            at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:352)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:275)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve
    nt$354(GlassViewEventHandler.java:388)
            at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Quantum
    Toolkit.java:389)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Glas
    sViewEventHandler.java:387)
            at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
            at com.sun.glass.ui.View.notifyMouse(View.java:937)
            at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
            at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.ja
    va:191)
            at java.lang.Thread.run(Thread.java:745)
    Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
            at com.sun.javafx.tk.quantum.QuantumToolkit.isSupported(QuantumToolkit.j
    ava:1146)
            at com.sun.javafx.application.PlatformImpl.isSupportedImpl(PlatformImpl.
    java:809)
            at com.sun.javafx.application.PlatformImpl.isSupported(PlatformImpl.java
    :482)
            at javafx.application.Platform.isSupported(Platform.java:168)
            at com.sun.javafx.scene.input.PickResultChooser.processOffer(PickResultC
    hooser.java:182)
            at com.sun.javafx.scene.input.PickResultChooser.offer(PickResultChooser.
    java:143)
            at javafx.scene.Node.impl_intersects(Node.java:4943)
            at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2942)
            at javafx.scene.Node.impl_pickNode(Node.java:4912)
            at javafx.scene.Scene$MouseHandler.pickNode(Scene.java:3899)
            at javafx.scene.Scene$MouseHandler.access$1600(Scene.java:3485)
            at javafx.scene.Scene.pick(Scene.java:1942)
            at javafx.scene.Scene.access$6700(Scene.java:159)
            at javafx.scene.Scene$MouseHandler.process(Scene.java:3711)
            at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
            at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
            at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:352)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:275)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve
    nt$354(GlassViewEventHandler.java:388)
            at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Quantum
    Toolkit.java:389)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Glas
    sViewEventHandler.java:387)
            at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
            at com.sun.glass.ui.View.notifyMouse(View.java:937)
            at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
            at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.ja
    va:191)
            at java.lang.Thread.run(Thread.java:745)
    Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
            at com.sun.javafx.tk.quantum.QuantumToolkit.isSupported(QuantumToolkit.j
    ava:1146)
            at com.sun.javafx.application.PlatformImpl.isSupportedImpl(PlatformImpl.
    java:809)
            at com.sun.javafx.application.PlatformImpl.isSupported(PlatformImpl.java
    :482)
            at javafx.application.Platform.isSupported(Platform.java:168)
            at com.sun.javafx.scene.input.PickResultChooser.processOffer(PickResultC
    hooser.java:182)
            at com.sun.javafx.scene.input.PickResultChooser.offer(PickResultChooser.
    java:143)
            at javafx.scene.Node.impl_intersects(Node.java:4943)
            at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2942)
            at javafx.scene.Node.impl_pickNode(Node.java:4912)
            at javafx.scene.Scene$MouseHandler.pickNode(Scene.java:3899)
            at javafx.scene.Scene$MouseHandler.access$1600(Scene.java:3485)
            at javafx.scene.Scene.pick(Scene.java:1942)
            at javafx.scene.Scene.access$6700(Scene.java:159)
            at javafx.scene.Scene$MouseHandler.process(Scene.java:3711)
            at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
            at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
            at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:352)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:275)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve
    nt$354(GlassViewEventHandler.java:388)
            at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Quantum
    Toolkit.java:389)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Glas
    sViewEventHandler.java:387)
            at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
            at com.sun.glass.ui.View.notifyMouse(View.java:937)
            at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
            at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.ja
    va:191)
            at java.lang.Thread.run(Thread.java:745)
    Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
            at com.sun.javafx.tk.quantum.QuantumToolkit.isSupported(QuantumToolkit.j
    ava:1146)
            at com.sun.javafx.application.PlatformImpl.isSupportedImpl(PlatformImpl.
    java:809)
            at com.sun.javafx.application.PlatformImpl.isSupported(PlatformImpl.java
    :482)
            at javafx.application.Platform.isSupported(Platform.java:168)
            at com.sun.javafx.scene.input.PickResultChooser.processOffer(PickResultC
    hooser.java:182)
            at com.sun.javafx.scene.input.PickResultChooser.offer(PickResultChooser.
    java:143)
            at javafx.scene.Node.impl_intersects(Node.java:4943)
            at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2942)
            at javafx.scene.Node.impl_pickNode(Node.java:4912)
            at javafx.scene.Scene$MouseHandler.pickNode(Scene.java:3899)
            at javafx.scene.Scene$MouseHandler.access$1600(Scene.java:3485)
            at javafx.scene.Scene.pick(Scene.java:1942)
            at javafx.scene.Scene.access$6700(Scene.java:159)
            at javafx.scene.Scene$MouseHandler.process(Scene.java:3711)
            at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
            at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
            at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:352)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:275)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve
    nt$354(GlassViewEventHandler.java:388)
            at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Quantum
    Toolkit.java:389)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Glas
    sViewEventHandler.java:387)
            at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
            at com.sun.glass.ui.View.notifyMouse(View.java:937)
            at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
            at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.ja
    va:191)
            at java.lang.Thread.run(Thread.java:745)
    Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
            at com.sun.javafx.tk.quantum.QuantumToolkit.isSupported(QuantumToolkit.j
    ava:1146)
            at com.sun.javafx.application.PlatformImpl.isSupportedImpl(PlatformImpl.
    java:809)
            at com.sun.javafx.application.PlatformImpl.isSupported(PlatformImpl.java
    :482)
            at javafx.application.Platform.isSupported(Platform.java:168)
            at com.sun.javafx.scene.input.PickResultChooser.processOffer(PickResultC
    hooser.java:182)
            at com.sun.javafx.scene.input.PickResultChooser.offer(PickResultChooser.
    java:143)
            at javafx.scene.Node.impl_intersects(Node.java:4943)
            at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2942)
            at javafx.scene.Node.impl_pickNode(Node.java:4912)
            at javafx.scene.Scene$MouseHandler.pickNode(Scene.java:3899)
            at javafx.scene.Scene$MouseHandler.access$1600(Scene.java:3485)
            at javafx.scene.Scene.pick(Scene.java:1942)
            at javafx.scene.Scene.access$6700(Scene.java:159)
            at javafx.scene.Scene$MouseHandler.process(Scene.java:3711)
            at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
            at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
            at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:352)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:275)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve
    nt$354(GlassViewEventHandler.java:388)
            at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Quantum
    Toolkit.java:389)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Glas
    sViewEventHandler.java:387)
            at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
            at com.sun.glass.ui.View.notifyMouse(View.java:937)
            at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
            at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.ja
    va:191)
            at java.lang.Thread.run(Thread.java:745)
    Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
            at com.sun.javafx.tk.quantum.QuantumToolkit.isSupported(QuantumToolkit.j
    ava:1146)
            at com.sun.javafx.application.PlatformImpl.isSupportedImpl(PlatformImpl.
    java:809)
            at com.sun.javafx.application.PlatformImpl.isSupported(PlatformImpl.java
    :482)
            at javafx.application.Platform.isSupported(Platform.java:168)
            at com.sun.javafx.scene.input.PickResultChooser.processOffer(PickResultC
    hooser.java:182)
            at com.sun.javafx.scene.input.PickResultChooser.offer(PickResultChooser.
    java:143)
            at javafx.scene.Node.impl_intersects(Node.java:4943)
            at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2942)
            at javafx.scene.Node.impl_pickNode(Node.java:4912)
            at javafx.scene.Scene$MouseHandler.pickNode(Scene.java:3899)
            at javafx.scene.Scene$MouseHandler.access$1600(Scene.java:3485)
            at javafx.scene.Scene.pick(Scene.java:1942)
            at javafx.scene.Scene.access$6700(Scene.java:159)
            at javafx.scene.Scene$MouseHandler.process(Scene.java:3711)
            at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
            at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
            at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:352)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio
    n.run(GlassViewEventHandler.java:275)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve
    nt$354(GlassViewEventHandler.java:388)
            at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Quantum
    Toolkit.java:389)
            at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Glas
    sViewEventHandler.java:387)
            at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
            at com.sun.glass.ui.View.notifyMouse(View.java:937)
            at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
            at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.ja
    va:191)
            at java.lang.Thread.run(Thread.java:745)
    
    Results :
    
    Tests in error:
      org.mars_sim.msp.ui.swing.tool.settlement.TestSVGMapUtil
    
    Tests run: 7, Failures: 0, Errors: 1, Skipped: 0
    
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] mars-sim ........................................... SUCCESS [  0.594 s]
    [INFO] mars-sim-mapdata ................................... SUCCESS [  4.091 s]
    [INFO] mars-sim-network ................................... SUCCESS [  0.146 s]
    [INFO] mars-sim-core ...................................... SUCCESS [ 44.965 s]
    [INFO] mars-sim-ui ........................................ FAILURE [  5.835 s]
    [INFO] mars-sim-main ...................................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 55.823 s
    [INFO] Finished at: 2016-04-16T12:25:27+03:00
    [INFO] Final Memory: 24M/256M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
    12.4:test (default-test) on project mars-sim-ui: There are test failures.
    [ERROR]
    [ERROR] Please refer to D:\GAMES\mars-sim\mars-sim-code-3618-trunk\mars-sim\mars
    -sim-ui\target\surefire-reports for the individual test results.
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    [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 rea
    d the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
    eption
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    
    [ERROR]   mvn <goals> -rf :mars-sim-ui
    

    So, what do I do with this?

     
  • manny kung

    manny kung - 2016-04-19

    [WARNING] Using platform encoding (Cp1251 actually) to copy filtered resources,
    i.e. build is platform dependent!

    (1) Cp1251 has to do with character encoding.

    file encoding in linux and windows os are not the same.

    In mars-sim, we have developers who run linux, windows and macosx. So there exists a bit of "incompatibility" between the files we commit....but if we are careful enough, we can usually circumvent those pitfalls.

    In eclipse, you can control how a file is saved. it is NOT unicode by default.

     
  • manny kung

    manny kung - 2016-04-19

    (2) I have no problem assembling the jar for r3623.

    see http://pastebin.com/X6wgQz6k

    Note that I used the commands "mvn clean compile install" to peform all three maven tasks.

    (3) It seems some tests require setting up a few threads. So they can be quite cpu intensive/sensitive.

    what's your cpu? Mine has 4 cores and 4 threads

    I'd let my command prompt console window stay on the foreground and do not use the machine for a minute or two, maven usually runs through all the tests with no complaints at all.

     
  • manny kung

    manny kung - 2016-04-19

    (4) Also, say if you save your build of mars-sim on C:\mars-sim\mars-sim-code...

    Then when running maven, you may need to REFRAIN from accessing or working on this directory: C:\mars-sim\mars-sim-code\having mars-sim\mars-sim-main\target\ since the compiled jars will be generated and stored there.

    So, to me, I usually leave my computer alone for a two minutes, I usually got BUILD SUCCESS on all modules.when I come back.

     
  • manny kung

    manny kung - 2016-04-19

    (5). If you have enough memory, consider using eclipse as IDE for mars-sim. In eclipse, after you made a code change, you don't have to run maven everytime a change is made to test to see if everything works.

    I'll take a look over some of those tests to make them less "sensitive" of cpu resources.

     
  • l0ckandl0ad

    l0ckandl0ad - 2016-04-22

    My PC is rather old by now, with c2d e8400 @ 3Ghz (2 cores) and 4 gigs of ram.

    I see you've made changes to this wiki page, and now it says not to use OpenJDK. I'm using Oracle's JDK btw.

    Just tried doing "mvn clean package install" with r3626 and got failure.

    Results :
    
    Tests in error:
      testLoadingPhase(org.mars_sim.msp.core.person.ai.task.LoadVehicleTest)
      testUnloadingPhase(org.mars_sim.msp.core.person.ai.task.UnloadVehicleTest)
    
    Tests run: 211, Failures: 0, Errors: 2, Skipped: 0
    
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] mars-sim ........................................... SUCCESS [  1.760 s]
    [INFO] mars-sim-mapdata ................................... SUCCESS [  9.600 s]
    [INFO] mars-sim-network ................................... SUCCESS [  0.190 s]
    [INFO] mars-sim-core ...................................... FAILURE [ 51.330 s]
    [INFO] mars-sim-ui ........................................ SKIPPED
    [INFO] mars-sim-main ...................................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 01:03 min
    [INFO] Finished at: 2016-04-22T10:15:05+03:00
    [INFO] Final Memory: 25M/339M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
    12.4:test (default-test) on project mars-sim-core: There are test failures.
    [ERROR]
    [ERROR] Please refer to D:\GAMES\mars-sim\mars-sim-code-3626-trunk\mars-sim\mars
    -sim-core\target\surefire-reports for the individual test results.
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    [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 rea
    d the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
    eption
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    
    [ERROR]   mvn <goals> -rf :mars-sim-core
    

    This time it failed at one step earlier than previously, at "mars-sim-core".

     

    Last edit: l0ckandl0ad 2016-04-22
    • manny kung

      manny kung - 2016-04-23

      You are right. I made a quick change on r3626 and the Person class failed
      the test. The MasterClock class was unavailable during the maven test.

      I'll fix it and add other stuff and commit r3627 tonight.

      On Fri, Apr 22, 2016 at 12:18 AM, l0ckandl0ad l0ckandl0ad@users.sf.net
      wrote:

      My PC is rather old by now, with c2d e8400 @ 3Ghz (2 cores) and 4 gigs of
      ram.

      I see you've made changes to this wiki page
      http://https://sourceforge.net/p/mars-sim/wiki/Setting_up_a_MSP_development_environment_with_the_command_line/,
      and now it says not to use OpenJDK. I'm using Oracle's JDK btw.

      Just tried doing "mvn clean package install" with r3626 and got failure.

      Results :
      Tests in error:
      testLoadingPhase(org.mars_sim.msp.core.person.ai.task.LoadVehicleTest)
      testUnloadingPhase(org.mars_sim.msp.core.person.ai.task.UnloadVehicleTest)
      Tests run: 211, Failures: 0, Errors: 2, Skipped: 0
      [INFO] ------------------------------------------------------------------------[INFO] Reactor Summary:[INFO][INFO] mars-sim ........................................... SUCCESS [ 1.760 s][INFO] mars-sim-mapdata ................................... SUCCESS [ 9.600 s][INFO] mars-sim-network ................................... SUCCESS [ 0.190 s][INFO] mars-sim-core ...................................... FAILURE [ 51.330 s][INFO] mars-sim-ui ........................................ SKIPPED[INFO] mars-sim-main ...................................... SKIPPED[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 01:03 min[INFO] Finished at: 2016-04-22T10:15:05+03:00[INFO] Final Memory: 25M/339M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project mars-sim-core: There are test failures.[ERROR][ERROR] Please refer to D:\GAMES\mars-sim\mars-sim-code-3626-trunk\mars-sim\mars-sim-core\target\surefire-reports for the individual test results.[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/MojoFailureException[ERROR][ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <goals> -rf :mars-sim-core

      This time it failed at one step earlier than previously, at
      "mars-sim-core".


      mvn install build failure w/ command line
      https://sourceforge.net/p/mars-sim/discussion/help/thread/0606e697/?limit=25#6aa7


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/mars-sim/discussion/help/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • manny kung

    manny kung - 2016-04-23

    You are right. I made a quick change on r3626 and the Person class failed the test. The MasterClock class was unavailable during the maven test.

    I'll fix it and add other stuff and commit r3627 tonight.

     
  • manny kung

    manny kung - 2016-04-23

    r3627 is good to go

    see http://pastebin.com/vMQGC2DW

    make sure you close any mars-sim folders since it may interfere the build process.

    let me know if you run into problems.

     
  • l0ckandl0ad

    l0ckandl0ad - 2016-05-06
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] mars-sim ........................................... SUCCESS [  1.721 s]
    [INFO] mars-sim-mapdata ................................... SUCCESS [  9.354 s]
    [INFO] mars-sim-network ................................... SUCCESS [  0.260 s]
    [INFO] mars-sim-core ...................................... SUCCESS [ 58.120 s]
    [INFO] mars-sim-ui ........................................ SUCCESS [ 44.510 s]
    [INFO] mars-sim-main ...................................... SUCCESS [01:45 min]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 03:39 min
    [INFO] Finished at: 2016-05-06T13:31:12+03:00
    [INFO] Final Memory: 144M/682M
    [INFO] ------------------------------------------------------------------------
    

    r3637, build success! but... now onto the sad part. jar doesn't want to run. I'll go with the pastebin if it's easier for you to read there.

    http://pastebin.com/Q8irY7qm

     
  • manny kung

    manny kung - 2016-05-06

    Thanks for pointing that out. I made a change in r3637 for quick-loading a saved sim but didn't realize it will cripple starting the Main Menu. fixing it now and will patch it in r3639 in an hour.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.