Try 4.1-beta, it shall get the job done.

On Nov 8, 2:13 pm, Davorian <[email protected]> wrote:
> I'm trying to run tests with adl & I can run tests with flashplayer on
> my machine with a flex(non-air) project.
> air sdk and flex sdk 4.5.1.21328, flexmojos 4.0-RC2, flexunit 4.0-
> beta-2.
>
> And I have both flashplayer and adl on my path I keep getting an error
> with the maven version 2.6 of adl
>
> This when I use the sdk version of the adl from flexmojos which I can
> seem to override with adlGav, which I know may be deprecated from the
> blogs.
>
> [WARNING] [LAUNCHER] Using regular flashplayer tests
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] simple-fb-liquidity ............................... SUCCESS
> [1.843s]
> [INFO] swf ............................................... FAILURE
> [18.391s]
> [INFO] air ............................................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 21.719s
> [INFO] Finished at: Tue Nov 08 16:08:36 GMT 2011
> [INFO] Final Memory: 28M/494M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
> plugin:4.0
> -RC2:test-run (default-test-run) on project swf: Failed to launch
> Flash Player.
>  Probably java was not able to find flashplayer.
> [ERROR] Make sure flashplayer is available on PATH
> [ERROR] or use -DflashPlayer.command=${flashplayer executable}
> [ERROR] Read more 
> at:https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+t
> ests: Cannot run program "C:\LGIM\mvn\repo\com\adobe\adl
> \2.6\adl-2.6.exe": Creat
> eProcess error=87, The parameter is incorrect
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal o
> rg.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:test-run (default-
> test-run)
>  on project swf: Failed to launch Flash Player.  Probably java was not
> able to f
> ind flashplayer.
>                 Make sure flashplayer is available on PATH
>                 or use -DflashPlayer.command=${flashplayer executable}
>
> When I run it with the adl from FlashBuilder sdk 4.5.1 I get
> [INFO] Running tests C:\LGIM\Development\Flex Development\simple-fb-
> liquidity\sw
> f\target\test-classes\TestRunner.swf
> [DEBUG] [LAUNCHER] ASVmLauncher starting
> [DEBUG] [LAUNCHER] exec: [C:\LGIM\mvn\repo\com\adobe\adl
> \2.6\adl-2.6.exe, -runti
> me, C:\LGIM\mvn\repo\com\adobe\adl\runtime\2.6\_zip] - C:\LGIM
> \Development\Flex
> Development\simple-fb-liquidity\swf\target\test-classes\TestRunner.xml
> [DEBUG] [LAUNCHER] Creating process
> [WARNING] [LAUNCHER] Using regular flashplayer tests
> [DEBUG] [org.sonatype.flexmojos.test.monitor.ResultHandler] opened
> server socket
>  on port 1178
> [DEBUG] [org.sonatype.flexmojos.test.monitor.AsVmPing] opened server
> socket on p
> ort 1177
> [DEBUG] [LAUNCHER] Process created java.lang.ProcessImpl@19e9038
> [DEBUG] [LAUNCHER] Output pumpers ON
> [DEBUG] [LAUNCHER] Waiting for flashplayer termination
> [DEBUG] [MOJO] launcher RUNNING
> [DEBUG] [MOJO] pinger STARTED
> [DEBUG] [MOJO] resultHandler STARTED
> [DEBUG] [LAUNCHER] Flashplayer closed
> [DEBUG] [LAUNCHER] Unexpected return code 3
> [DEBUG] [MOJO] launcher ERROR
> [DEBUG] [MOJO] pinger STARTED
> [DEBUG] [MOJO] resultHandler STARTED
>
> My pom is
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
>                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>                  
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd";>
>         <modelVersion>4.0.0</modelVersion>
>         <parent>
>                 <groupId>com.lgim.gfos</groupId>
>                 <artifactId>simple-fb-liquidity</artifactId>
>                 <version>0.0.1-SNAPSHOT</version>
>         </parent>
>         <groupId>com.lgim.gfos</groupId>
>         <artifactId>swf</artifactId>
>         <version>0.0.1-SNAPSHOT</version>
>         <packaging>swf</packaging>
>         <dependencies>
>                 <dependency>
>                         <groupId>com.adobe.flex.framework</groupId>
>                         <artifactId>air-framework</artifactId>
>                         <version>${flex.version}</version>
>                         <type>pom</type>
>                 </dependency>
>                 <dependency>
>                         <groupId>com.adobe.flexunit</groupId>
>                         <artifactId>flexunit</artifactId>
>                         <version>${flexunit.version}</version>
>                         <type>swc</type>
>                         <scope>test</scope>
>                 </dependency>
>         </dependencies>
>         <build>
>                 <sourceDirectory>src</sourceDirectory>
>                 <testSourceDirectory>test</testSourceDirectory>
>                 <plugins>
>                         <plugin>
>                                 <groupId>org.sonatype.flexmojos</groupId>
>                                 
> <artifactId>flexmojos-maven-plugin</artifactId>
>                                 <version>${flexmojos.version}</version>
>                                 <extensions>true</extensions>
>                                 <configuration>
>                                         <testTimeout>10000</testTimeout>
>                                         <optimize>false</optimize>
>                                         <targetPlayer>10.3</targetPlayer>
>                                         <swfVersion>11</swfVersion>
>                                         
> <flexBuilderCompatibility>true</flexBuilderCompatibility>
>                                         
> <keepGeneratedActionscript>false</keepGeneratedActionscript>
> <!--                                         <coverage>true</coverage> -->
> <!--                                         
> <coverageProvider>cobertura</coverageProvider> -->
> <!--                                         
> <coverageReportFormat>html</coverageReportFormat> -->
>                                         <keepAs3Metadatas>
>                                                 
> <keepAs3Metadata>Log</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Transient</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Inject</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>EventHandler</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>ManagedEvent</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Dispatcher</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>PostConstruct</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Mediate</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Autowire</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>PreDestroy</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>ViewAdded</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>ViewRemoved</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>ViewNavigator</keepAs3Metadata>
>                                         </keepAs3Metadatas>
>                                         
> <sourceFile>com\lgim\manualCash\views\modules
> \ManualCashModule.mxml</sourceFile>
>                                 </configuration>
>                         </plugin>
>                 </plugins>
>         </build>
> </project>
>
> It's parent pom is
> <project xmlns="http://maven.apache.org/POM/4.0.0";
>                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>                  
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd";>
>         <modelVersion>4.0.0</modelVersion>
>         <groupId>com.lgim.gfos</groupId>
>         <artifactId>simple-fb-liquidity</artifactId>
>         <version>0.0.1-SNAPSHOT</version>
>         <packaging>pom</packaging>
>         <modules>
>                 <module>air</module>
> <!--                 <module>swc</module> -->
>                 <module>swf</module>
>         </modules>
>         <repositories>
>                 <repository>
>                         <id>flexmojos</id>
>                         <url>${flexmojos.repository}</url>
>                 </repository>
>         </repositories>
>
>         <properties>
>                 <flex.includeAllNamespaces>true</flex.includeAllNamespaces>
>                 <flex.version>4.5.1.21328</flex.version>
>                 <flexmojos.version>4.0-RC2</flexmojos.version>
> <!--         <flexunit.version>4.0-beta-2</flexunit.version> -->
>                 <flexunit.version>4.0-rc-1</flexunit.version>
> <!--                 <flexunit.version>4.0-alpha-1.0</flexunit.version> -->
>
>                 <swiz.version>1.1.0</swiz.version>
>                 <swfVersion>11</swfVersion>
>                 <targetPlayer>10.3</targetPlayer>
>                 <configurationReport>true</configurationReport>
>                 
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>         </properties>
>         <build>
>                 <sourceDirectory>src</sourceDirectory>
>                 <testSourceDirectory>test</testSourceDirectory>
>                 <plugins>
>                         <plugin>
>                                 <groupId>org.sonatype.flexmojos</groupId>
>                                 
> <artifactId>flexmojos-maven-plugin</artifactId>
>                                 <version>${flexmojos.version}</version>
>                                 <extensions>true</extensions>
>                                 <configuration>
>                                         <useNetwork>true</useNetwork>
> <!--                                         <testRunner> -->
> <!--                                                 <launcher> -->
> <!--                                                         
> <flashplayerCommand>${flex.flashPlayer.command}</
> flashplayerCommand> -->
> <!--                                                 </launcher> -->
> <!--                                         </testRunner> -->
>                                         <themes>
>                                                 
> <theme>${project.build.directory}/themes/spark.swc</theme>
>                                                 <!--                          
>                        <theme>${project.build.directory}/themes/halo.swc</
> theme> -->
>                                         </themes>
> <!--                                         
> <includeTypes>swc,css</includeTypes> -->
> <!--                                         
> <overWriteIfNewer>true</overWriteIfNewer> -->
>                                         <targetJdk>1.6</targetJdk>
>                                         <timestampURL>none</timestampURL>
>                                         <optimize>false</optimize>
>                                         <framework>spark</framework>
>                                         
> <dumpConfigAttach>true</dumpConfigAttach>
>                                         
> <keepGeneratedActionscript>false</keepGeneratedActionscript>
>                                         <keepAs3Metadatas append="true">
>                                                 
> <keepAs3Metadata>Bindable</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Event</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Managed</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>ChangeEvent</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>NonCommittingChangeEvent</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>VirtualBean</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Outject</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>AfterResult</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Log</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Transient</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Inject</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>EventHandler</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>ManagedEvent</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Dispatcher</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>PostConstruct</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Mediate</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>Autowire</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>PreDestroy</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>ViewAdded</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>ViewRemoved</keepAs3Metadata>
>                                                 
> <keepAs3Metadata>ViewNavigator</keepAs3Metadata>
>                                         </keepAs3Metadatas>
>                                 </configuration>
>                                 <dependencies>
>                                         <!--                                  
>        <dependency> -->
>                                         <!--                                  
>                <groupId>com.adobe.flex</groupId> -->
>                                         <!--                                  
>                <artifactId>flex-fontkit</artifactId> -->
>                                         <!--                                  
>                <version>4.5.1.21328</version> -->
>                                         <!--                                  
>                <type>jar</type> -->
>                                         <!--                                  
>        </dependency> -->
>                                         <dependency>
>                                                 
> <groupId>com.adobe.flex</groupId>
>                                                 
> <artifactId>compiler</artifactId>
>                                                 
> <version>${flex.version}</version>
>                                                 <type>pom</type>
>                                         </dependency>
>                                         <!--                                  
>        <dependency> -->
>                                         <!--                                  
>                <groupId>org.hamcrest</groupId> -->
>                                         <!--                                  
>                <artifactId>hamcrest-all</artifactId> -->
>                                         <!--                                  
>        </dependency> -->
>                                         <!--                                  
>        <dependency> -->
>                                         <!--                                  
>                <groupId>org.apache.maven</groupId> -->
>                                         <!--                                  
>                <artifactId>maven-artifact</artifactId> -->
>                                         <!--                                  
>        </dependency> -->
>                                         <dependency>
>                                                 
> <groupId>com.adobe.flex.compiler</groupId>
>                                                 <artifactId>adt</artifactId>
>                                                 
> <version>${flex.version}</version>
>                                                 <scope>compile</scope>
>                                         </dependency>
>                                         <dependency>
>                                                 
> <groupId>com.adobe.flex.framework</groupId>
>                                                 <artifactId>spark</artifactId>
>                                                 
> <version>${flex.version}</version>
>                                                 <type>swc</type>
>                                                 <scope>compile</scope>
>                                         </dependency>
>                                         <dependency>
>                                                 
> <groupId>com.adobe.flex.framework</groupId>
>                                                 
> <artifactId>flex-framework</artifactId>
>                                                 
> <version>${flex.version}</version>
>                                                 <type>pom</type>
>                                         </dependency>
>                                         <dependency>
>                                                 
> <groupId>com.adobe.flex.framework</groupId>
>                                                 
> <artifactId>airframework</artifactId>
>                                                 
> <version>${flex.version}</version>
>                                                 <type>swc</type>
>                                         </dependency>
>                                 </dependencies>
>                         </plugin>
>                         <plugin>
>                                 
> <artifactId>maven-dependency-plugin</artifactId>
>                                 <executions>
>                                         <execution>
>                                                 <id>copy-themes-for-flex4</id>
>                                                 
> <phase>generate-resources</phase>
>                                                 <goals>
>                                                         
> <goal>copy-dependencies</goal>
>                                                 </goals>
>                                                 <configuration>
>                                                         
> <includeTypes>swc,css</includeTypes>
>                                                         
> <outputDirectory>target/themes</outputDirectory>
>                                                         
> <overWriteIfNewer>true</overWriteIfNewer>
>                                                         
> <includeGroupIds>com.adobe.flex.framework</includeGroupIds>
>                                                         
> <includeArtifactIds>halo,spark</includeArtifactIds>
>                                                         
> <includeClassifiers>theme</includeClassifiers>
>                                                         
> <stripVersion>true</stripVersion>
>                                                 </configuration>
>                                         </execution>
>                                 </executions>
>                         </plugin>
>                 </plugins>
>         </build>
>         <dependencies>
>                 <!-- Air SDK dependencies -->
>                 <dependency>
>                         <groupId>com.adobe.flex.framework</groupId>
>                         <artifactId>air-framework</artifactId>
>                         <version>${flex.version}</version>
>                         <type>pom</type>
>                 </dependency>
>                 <!-- Air SDK dependencies end -->
>                 <!-- Unit test dependency -->
>                 <dependency>
>                         <groupId>com.adobe.flexunit</groupId>
>                         <artifactId>flexunit</artifactId>
>                         <version>${flexunit.version}</version>
>                         <type>swc</type>
>                         <scope>test</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>flex</groupId>
>                         <artifactId>CommonLibs</artifactId>
>                         <version>1.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>flex</groupId>
>                         <artifactId>Framework_Swiz_Extensions</artifactId>
>                         <version>1.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>flex</groupId>
>                         <artifactId>incursion-web-lib</artifactId>
>                         <version>1.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>flex</groupId>
>                         <artifactId>swiz-framework</artifactId>
>                         <version>1.2.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>flex</groupId>
>                         <artifactId>UltimateLib</artifactId>
>                         <version>1.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>flex</groupId>
>                         <artifactId>GFOS_SDK</artifactId>
>                         <version>1.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>flex</groupId>
>                         <artifactId>ExcelImporterLib</artifactId>
>                         <version>1.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>com.greensock</groupId>
>                         <artifactId>greensock-as3</artifactId>
>                         <version>1.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.flashCommander</groupId>
>                         <artifactId>sparkAutoComplete</artifactId>
>                         <version>1.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>flex</groupId>
>                         <artifactId>version4libsflexproject</artifactId>
>                         <version>1.0</version>
>                         <type>swc</type>
>                         <scope>compile</scope>
>                 </dependency>
> <!--                                 <dependency> -->
> <!--                                         <groupId>org.mockito</groupId> 
> -->
> <!--                                         
> <artifactId>mockito-core</artifactId> -->
> <!--                                 </dependency> -->
> <!--                                 <dependency> -->
> <!--                                         <groupId>org.hamcrest</groupId> 
> -->
> <!--                                         
> <artifactId>hamcrest-integration</artifactId> -->
> <!--                                 </dependency> -->
>         </dependencies>
> </project>
>
> Is there an issue with this configuration versions?
>
> Regards,
>
> Lyndon

-- 
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

http://flexmojos.sonatype.org/

Reply via email to