Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Flexmojo + Flex Unit

$
0
0
Hi,

I am using flexmojo version 4.2-beta, Flex SDK 4.1 and I wanted to run test cases through maven.
I have existing pom file to compile, release, build a same flex library project.
Now when I tried to integrate test cases with pom file, I am getting following error. However I noticed that after executing test-compile command I can see TestRunner.mxml file generated in test-classes directory.
What could be the problem? (I cannot upgrade to latest Flex SDK.)

1. Here is POM

<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>com.majescomastek.stgicd</groupId>
<artifactId>ICDLibrary</artifactId>
<version>5.40.2.1-SNAPSHOT</version>
<packaging>swc</packaging>
<name>ICD Library</name>
<properties>
<flex-version>4.1.0.16248</flex-version>
<flexmojos.version>4.2-beta</flexmojos.version>
<sonar.language>flex</sonar.language>
<sonar.dynamicAnalysis>false</sonar.dynamicAnalysis>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<flex.debug>true</flex.debug>
</properties>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
<version>${flexmojos.version}</version>
</dependency>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex-version}</version>
<type>pom</type>
</dependency>
</dependencies>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<configuration>
<includeClasses>
<scan>
<includes>
<include>**</include>
</includes>
</scan>
</includeClasses>
<includeTestFiles>
<includeTestFile>AllTestSuite.as</includeTestFile>
</includeTestFiles>
<namespaces>
<namespace>
<uri>http://ns.majescomastek.com/icd</uri>
<manifest>src/main/resources/icd-manifest.xml</manifest>
</namespace>
</namespaces>
<includeNamespaces>
<namespace>http://ns.majescomastek.com/icd</namespace>
</includeNamespaces>
<includeFiles>
<include>icd-manifest.xml</include>
<include>design.xml</include>
</includeFiles>
<showWarnings>false</showWarnings>
<configurationReport>true</configurationReport>
<targetPlayer>10.1.0</targetPlayer>
<!-- compiler option specifying the target flash player version -->
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>${flex-version}</version>
<classifier>10.1</classifier>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex-version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>${flex-version}</version>
<type>pom</type>
<exclusions>
<exclusion>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

2. Here is console log:

D:\eclipse_workspace\testunit_workspace\olds\8.8.2.0_ICDLibrary>mvn test-compile
[INFO] Scanning for projects...
[INFO]
[INFO]

Viewing all articles
Browse latest Browse all 5648

Trending Articles