Running the following command
$ mvn clean install -DflashPlayer.command=c:/work/flashplayer.exe

i'm getting...

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to launch Flash Player.  Probably java was not able to
find flashplayer.
                Make sure flashplayer is available on PATH
                or use -DflashPlayer.command=${flashplayer executable}
Read more at: https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests

CreateProcess error=2, The system cannot find the file specified
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
launch Flash Player.  Pr
obably java was not able to find flashplayer.
                Make sure flashplayer is available on PATH
                or use -DflashPlayer.command=${flashplayer executable}
Read more at: https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecyc
leExecutor.java:703)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(De
faultLifecycleExecutor.java:540)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycl
eExecutor.java:519)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailure
s(DefaultLifecycleExecutor.java:371)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(Default
LifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExe
cutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.ja
va:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced
(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode
(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
launch Flash Player.
 Probably java was not able to find flashplayer.
                Make sure flashplayer is available on PATH
                or use -DflashPlayer.command=${flashplayer executable}
Read more at: https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests
        at org.sonatype.flexmojos.test.FlexUnitMojo.run
(FlexUnitMojo.java:274)
        at org.sonatype.flexmojos.test.FlexUnitMojo.execute
(FlexUnitMojo.java:156)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPluginManager.j
ava:483)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecyc
leExecutor.java:678)
        ... 16 more
Caused by:
org.sonatype.flexmojos.test.launcher.LaunchFlashPlayerException:
Failed to laun
ch Flash Player.
        at
org.sonatype.flexmojos.test.launcher.AsVmLauncher.runFlashplayer
(AsVmLauncher.j
ava:104)
        at org.sonatype.flexmojos.test.launcher.AsVmLauncher.start
(AsVmLauncher.java:80)
        at org.sonatype.flexmojos.test.DefaultTestRunner.run
(DefaultTestRunner.java:53)
        at org.sonatype.flexmojos.test.FlexUnitMojo.run
(FlexUnitMojo.java:262)
        ... 19 more
Caused by: java.io.IOException: Cannot run program "FlashPlayer.exe":
CreateProcess error=
2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
        at java.lang.Runtime.exec(Runtime.java:593)
        at java.lang.Runtime.exec(Runtime.java:466)
        at
org.sonatype.flexmojos.test.launcher.AsVmLauncher.runFlashplayer
(AsVmLauncher.j
ava:100)
        ... 22 more
Caused by: java.io.IOException: CreateProcess error=2, The system
cannot find the file spe
cified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
        ... 25 more

changing version to 3.2.0 works, the flashplayer open and tests run.
Anyone can help me?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to