Hello 

I work with Maven.

I have to excute my test's Classes (FLEX UNIT 4). 

I choosed the plugin flexcover of the plugin Maven flexmojos-maven-plugin. The 
reason of the choose of this plugin is because this plugin generates a file 
which contains the result of test.


But unfortunetally it doesn't work :(, it display this error "[INFO] Not 
executing flexcover:report as the flexcover data file (C:\Documents and 
Settings\Administrateur\workspace\orchestra_designer3\modules\swf\target\flexcover\touch.txt)
 could not be found"

there is my code :

<?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";>
    <parent>
        <groupId>org.ow2.orchestra.designer</groupId>
        <artifactId>orchestra-designer-modules</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <groupId>org.ow2.orchestra.designer</groupId>
    <artifactId>swf-orchestra-designer</artifactId>
    <modelVersion>4.0.0</modelVersion>
    <packaging>swf</packaging>
    <name>SWF Module</name>
    <description>Flex :: Modules :: SWF : main application </description>


    <properties>
        <flex.locale>en_US</flex.locale>
        <licence.flexbuilder3>${env.FLEX_LICENSE}</licence.flexbuilder3>
        <flexmojos.version>3.3.0</flexmojos.version>
    </properties>

    <repositories>
        <repository>
            <id>sonatype-repository</id>
            <url>http://repository.sonatype.org/content/groups/flexgroup/</url>
        </repository>
    </repositories>

    <dependencies>

        <dependency>
            <groupId>flexlib</groupId>
            <artifactId>flexlib-bin</artifactId>
            <version>2.4</version>
            <type>swc</type>
        </dependency>

        <dependency>
            <groupId>flexlib</groupId>
            <artifactId>undotextfields</artifactId>
            <type>swc</type>
            <version>${undotextfields.version}</version>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>framework</artifactId>
            <type>swc</type>
            <classifier>en_US.rb</classifier>
            <version>${flex.version}</version>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>playerglobal</artifactId>
            <version>10-3.3.0.4852</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>rpc</artifactId>
            <classifier>en_US.rb</classifier>
            <version>${flex.version}</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>rpc</artifactId>
            <version>${flex.version}</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>framework</artifactId>
            <type>swc</type>
            <version>${flex.version}</version>
        </dependency>



        <!--             <dependency>-->
        <!--              <groupId>com.adobe.flexunit</groupId>-->
        <!--              <artifactId>flexunit</artifactId>-->
        <!--              <version>0.85</version>-->
        <!--              <type>swc</type>-->
        <!--              <scope>test</scope>-->
        <!--            </dependency>-->

        <!--        <dependency>-->
        <!--             <groupId>com.adobe.flexunit</groupId>-->
        <!--              <artifactId>flexunit</artifactId>-->
        <!--              <version>4.0-beta-2</version>-->
        <!--              <type>swc</type>-->
        <!--              <scope>test</scope>-->
        <!--        </dependency>-->

        <dependency>
            <groupId>org.sonatype.flexmojos</groupId>
            <artifactId>flexmojos-unittest-support</artifactId>
            <version>${flexmojos.version}</version>
            <type>swc</type>
            <scope>test</scope>
        </dependency>


    </dependencies>


    <build>

        <sourceDirectory>${basedir}/src/main/flex</sourceDirectory>
        <testSourceDirectory>${basedir}/src/test/flex</testSourceDirectory>

        <plugins>

            <plugin>
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <extensions>true</extensions>

                <configuration>
                    <skipTest>true</skipTest>
                    
<resourceBundlePath>${basedir}/src/main/locales/${flex.locale}</resourceBundlePath>
                    <compiledLocales>
                        <locale>en_US</locale>
                    </compiledLocales>
                    <contextRoot>orchestradesigner</contextRoot>
                    <sourceFile>Orchestra_Designer.mxml</sourceFile>
                    
<services>${basedir}/src/main/blazds/services-config.xml</services>
                    <optimize>false</optimize>
                    <mergeResourceBundle>true</mergeResourceBundle>
                    <licenses>
                        <flexbuilder3>${licence.flexbuilder3}</flexbuilder3>
                    </licenses>
                    
<outputDirectory>${project.build.directory}</outputDirectory>
                </configuration>

            </plugin>

            <plugin>

                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <extensions>true</extensions>
                <executions>
                    <execution>
                        <phase>install</phase>
                        <id>flexCover</id>

                        <goals>
                            <goal>flexcover</goal>
                        </goals>
                        <configuration>
                            
<outputDirectory>${basedir}/src/test/flex</outputDirectory>
                            <format>xml</format>                  
                        </configuration>
                    </execution>
                </executions>
            </plugin>


        </plugins>
    </build>
</project>


ANY IDEA please ??????

Thank you very very much for your help



                                          
_________________________________________________________________
Installez gratuitement les nouvelles Emoch'ticones !
http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx

Reply via email to