You no longer need the threadlocaltoolkit dependency I refactored the need for 
that away a few weeks ago.

Usually the flex2/tools/oem/Logger class is in the SDK in the compiler jar but 
as I can see it's not a ClassNotFoundException but a NoClassDefFoundError .. 
this usually occurs by Errors in the Constructor. But to know what's going on, 
you would need to post the "caused by" exception too.

But I could see your version is 4.11.0.20131017 ... are you using a previously 
converted FDK? Cause the converter now only produces 4.11.0?

Chris

-----Ursprüngliche Nachricht-----
Von: duncmcm [mailto:[email protected]] 
Gesendet: Donnerstag, 30. April 2015 22:09
An: [email protected]
Betreff: Re: AW: AW: AW: AW: AW: AW: AW: Recommended flexmojos version for 
unittesting 4.11 SDK libs

Sorry Chris , I added the repo you suggested which fixed my flexunit problem I 
think now getting the following error:

[WARNING] Error injecting: net.flexmojos.oss.plugin.test.TestCompilerMojo
java.lang.NoClassDefFoundError: flex2/tools/oem/Logger
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)

My full POM is below, as I think there is something basic I am failing to 
understand.

I appreciate your patience with me

Regards  Duncan

<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.duncmcm</groupId>
    <artifactId>FlexMojos7.1.0POC</artifactId>
    <version>1.0-SNAPSHOT</version>
    

    <name>FlexMojos7.1.0POC Flex</name>


<properties><flex-sdk-version>4.11.0.20131017</flex-sdk-version></properties>

    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>net.flexmojos.oss</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>7.1.0-SNAPSHOT</version>
                <extensions>false</extensions>
                <configuration>
                    <debug>true</debug>
                </configuration>
                <dependencies>
                     
                    <dependency> 
                        <groupId>net.flexmojos.oss</groupId> 
                       
<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId> 
                        <version>7.1.0-SNAPSHOT</version> 
                    </dependency> 
                    <dependency>
                            <groupId>org.apache.flex</groupId>
                            <artifactId>compiler</artifactId>
                            <version>${flex-sdk-version}</version>
                            <type>pom</type>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
        <dependencyManagement>
            <dependencies>
                <dependency>
                    <groupId>org.apache.flex.framework</groupId>
                    <artifactId>framework</artifactId>
                    <version>${flex-sdk-version}</version>
                    <type>pom</type>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flash.framework</groupId>
                    <artifactId>playerglobal</artifactId>
                    <version>11.9</version>
                    <type>swc</type>
                </dependency>
                        <dependency> 
                            <groupId>org.apache.flex.flexunit</groupId> 
                            <artifactId>flexunit-flex</artifactId> 
                            <version>4.3.0-SNAPSHOT</version> 
                            <type>swc</type> 
                            <scope>test</scope> 
                        </dependency>
        </dependencies>
        </dependencyManagement>


        <repositories>
                <repository>
                        <id>myGithub</id>
                        
<url>https://github.com/duncanmcmillan/fdkTarget4.11/tree/master</url>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>   
                <repository>
                        <id>sonatype</id>
                        
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>
                <repository>
                        <id>apache</id>
                        
<url>https://repository.apache.org/content/groups/snapshots/</url>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>
                <repository>
                    <id>sonatype-releases</id>
                    
<url>https://oss.sonatype.org/content/repositories/releases/</url>
                    <releases>
                                <enabled>true</enabled>
                        </releases>
                </repository>                   
        </repositories>

        <pluginRepositories>
                <pluginRepository>
                        <id>myGithub</id>
                        
<url>https://github.com/duncanmcmillan/fdkTarget4.11/tree/master</url>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </pluginRepository>
                <pluginRepository>
                        <id>sonatype</id>
                        
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </pluginRepository>
                <pluginRepository>
                        <id>sonatype-releases</id>
                        
<url>https://oss.sonatype.org/content/repositories/releases/</url>
                        <releases>
                                <enabled>true</enabled>
                        </releases>
                </pluginRepository>
                <pluginRepository>
                        <id>apache</id>
                        
<url>https://repository.apache.org/content/groups/snapshots/</url>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </pluginRepository>
        </pluginRepositories>
</project>



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Recommended-flexmojos-version-for-unittesting-4-11-SDK-libs-tp10145p10239.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to