Thanks.
I have added "adl.exe" from the Flex SDK 4.1 to the path, however I
still get the following error:
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0-SNAPSHOT:test-run (default-test-run) on project todo:
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+tests:
Cannot run program "adl.exe": CreateProcess error=2, The system cannot
find the file specified
Here is the complete POM - maybe I am still doing things wrong here:
<?xml version="1.0" encoding="UTF-8"?>
<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.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.wiesen</groupId>
<artifactId>test</artifactId>
<name>Test AIR</name>
<version>1.0-SNAPSHOT</version>
<packaging>air</packaging>
<properties>
<!-- The Flexmojos version -->
<flexmojos.version>4.0-SNAPSHOT</flexmojos.version>
<!-- The Flex SDK version (4.1 with AIR 2.0) -->
<flex.sdk.version>4.1.0.16076</flex.sdk.version>
<!-- The FlexUnit version -->
<flexunit.version>4.0.0</flexunit.version>
</properties>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/flex</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<configuration>
<sourceFile>TestApp.mxml</sourceFile>
</configuration>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.compiler</groupId>
<artifactId>adt</artifactId>
<version>${flex.sdk.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>air-framework</artifactId>
<version>${flex.sdk.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>
</project>
I appreciate any hints! Thanks.
Simon
--
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/