This is failing on a dev desktop, XP sp3, latest everything java and Adobe. From command prompt which can successfully start FlashPlayer.exe
CI (TeamCity on linux) server is not failing, running a headless setup, not really relevant to this discussion. I wouldn't be surprised this issue is a function of something specific to some but not all desktop configs, but considering others have it as well (I didn't start the thread) this could be more common than just me. On Sep 29, 3:20 pm, Logan Allred <[email protected]> wrote: > Is this on a build server or some different startup/launch process? If > this is running from a script, cron job, or another helper process > (hudson, etc) it is very common that the user and environment > launching mvn is not the same user and environment you get when you > log in to the machine. This will cause it to work from the command > line but fail in the script/process. > If you can give more details as to how mvn is getting launched, it > might help us figure out the problem. If this is failing from the same > command prompt window, then it's more perplexing. > > Logan > > On Tue, Sep 29, 2009 at 12:33 PM, Leonid <[email protected]> wrote: > > > Thanks, noted and done so. Talked to rubber ducky too - no > > effect... :) > > > On Sep 29, 2:14 pm, Marvin Froeder <[email protected]> wrote: > >> 2.0 series used to open the associated application to swf.... but that way > >> I > >> was not able to know if the player launched or not... neither has > >> the ability to kill FP if something went wrong. > >> What I can do is to force the system properties into the new process I > >> create, that may be or may not help... I have no idea.... but if correctly > >> defined path does work.... > > >> Note that after setting path you must restart console or IDE. > > >> VELO > > >> On Tue, Sep 29, 2009 at 3:01 PM, Leonid <[email protected]> wrote: > > >> > I am having exactly the same issue - FlashPlayer.exe available as part > >> > of system path, but mvn fails with flex mojos v3.3. Note, when > >> > previously ran plugin version 2.0M8, I didn't even need to have the > >> > player executable in the system path - somehow the plugin was able to > >> > find a player on its own. > > >> > Anyway, here is the debug snippet from mvn -X test run: > > >> > [INFO] flexmojos 3.3.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT > >> > file > >> > [INFO] Running tests C:\dev\workspace\flex-sdk\target\test-classes > >> > \TestRunner.swf > >> > [DEBUG] [LAUNCHER] ASVmLauncher starting > >> > [DEBUG] [LAUNCHER] exec: FlashPlayer.exe - C:\dev\workspace\flex-sdk > >> > \target\test-classes\TestRunner.swf > >> > [DEBUG] [LAUNCHER] Creating process > >> > [WARNING] [LAUNCHER] Using regular flashplayer tests > >> > [DEBUG] [org.sonatype.flexmojos.test.monitor.ResultHandler] opened > >> > server socket on port 13539 > >> > [DEBUG] [org.sonatype.flexmojos.test.monitor.AsVmPing] opened server > >> > socket on port 13540 > >> > [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] > >> > ------------------------------------------------------------------------ > >> > [DEBUG] Trace > >> > org.apache.maven.lifecycle.LifecycleExecutionException: 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} > > >> > On Aug 28, 8:26 pm, Logan Allred <[email protected]> wrote: > >> > > On Thu, Aug 27, 2009 at 7:49 AM, Marvin Froeder<[email protected]> > >> > wrote: > >> > > > You could use like this: > >> > > > <build> > >> > > > <plugins> > >> > > > <plugin> > > >> > <groupId>org.sonatype.flexmojos</groupId> > >> > > > <version>3.3.0</version> > > >> > > > <artifactId>flexmojos-maven-plugin</artifactId> > >> > > > <extensions>true</extensions> > >> > > > <configuration> > >> > > > <testRunner> > >> > > > <launcher> > > >> > > > <flashplayerCommand>${flashPlayer.command}</flashplayerCommand> > >> > > > </launcher> > >> > > > </testRunner> > >> > > > </configuration> > >> > > > </plugin> > >> > > > </plugins> > >> > > > </build> > >> > > > For some reason maven is not injecting the flashplayer command on > >> > component. > > >> > > Try running with mvn -X and let's find out exactly what command it is > >> > > trying to run. > > >> > > Logan --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
