I'm very new to Flex/Flash, so please forgive me if my question is not
a problem with Flex Mojos but with some external configuration.
I've configured my project to compile and run unit tests with Flex
Mojos, but the flexunit tests are running with Flash Player 9 instead
of 10 despite setting <targetPlayer/>. How do I get the flexunit
tests to run with Flash Player 10?
Thanks in advance.
Here's the relevant portions of my pom.xml:
<project>
...
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>info.flex-mojos</groupId>
<artifactId>asdoc-mojo</artifactId>
</plugin>
<plugin>
<groupId>info.flex-mojos</groupId>
<artifactId>flex-compiler-mojo</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>info.flex-mojos</groupId>
<artifactId>flex-compiler-mojo</artifactId>
<extensions>true</extensions>
<configuration>
<targetPlayer>10.0.0</targetPlayer>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>${project.flex-version}</version>
<type>pom</type>
<exclusions>
<!-- use Flash 10 instead of Flash 9 -->
<exclusion>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>${project.flex-playerglobal-version}</version>
<type>swc</type>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>info.flex-mojos</groupId>
<artifactId>testing-support</artifactId>
<version>${project.flex-mojos-version}</version>
<type>swc</type>
<scope>test</scope>
<exclusions>
<exclusion>
<!-- use Flash 10 instead of Flash 9 -->
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<properties>
<flex-version>3.2.0.3958</flex-version>
<flex-mojos-version>2.0M10</flex-mojos-version>
<flex-playerglobal-version>10-${flex-version}</flex-playerglobal-
version>
</properties>
</project>
and a snippet from running mvn test:
> mvn test
[INFO] Flex compiler configurations:
-compiler.accessible=false
-compiler.actionscript-file-encoding UTF-8
-compiler.allow-source-path-overlap=true
-compiler.as3=true
-compiler.debug=true
-compiler.es=false
...
-target-player 10.0.0
-use-network=true
-verify-digests=true
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---