MMm, I dont realy know, but I change it now, and I have another
problem
my pom now
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2008 Marvin Herman Froeder
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
See the License for the specific language governing permissions
and
limitations under the License.
-->
<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>wip.com.juegos.cliente</groupId>
<artifactId>risk</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>swf</packaging>
<name>Risk</name>
<properties>
<flashPlayer.command>D:\Desarrollo\flashplayer_10_sa_debug.exe</
flashPlayer.command>
<flexmojos.version>3.8</flexmojos.version>
<flex.version>4.1.0.16248</flex.version>
</properties>
<build>
<sourceDirectory>src/main/flex/wip/com/multijugador</
sourceDirectory>
<testSourceDirectory>src/test/flex/wip/com/multijugador</
testSourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<configuration>
<testRunner>
<launcher>
<flashplayerCommand>${flashPlayer.command}</flashplayerCommand>
</launcher>
</testRunner>
<!--<includeTestFiles>
<includeTestFile>*Test.as</includeTestFile>
</includeTestFiles>-->
<skipTest>true</skipTest>
</configuration>
<dependencies>
<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>playerglobal</artifactId>
<version>10-3.3.0.4852</version>
<classifier></classifier>
<type>swc</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>${flex.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flexunit</groupId>
<artifactId>flexunit</artifactId>
<version>4.0-rc-1</version>
<type>swc</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-unittest-flexunit4</artifactId>
<version>4.0-SNAPSHOT</version>
<type>swc</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>wip.com</groupId>
<artifactId>commons</artifactId>
<version>2.0-SNAPSHOT</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>wip.com</groupId>
<artifactId>commons</artifactId>
<version>1.0-SNAPSHOT</version>
<type>swc</type>
</dependency>
</dependencies>
<profiles>
<profile><!--https://docs.sonatype.org/pages/viewpage.action?
pageId=2949459-->
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
</build>
</profile>
</profiles>
</project>
But I throw an error that looks like is using 4.5 yet.
[INFO] Compiling test class: [juegos.risk.TestSuit]
[WARNING] D:\Proyectos\ClienteRisk\risk\src\test\flex\wip\com
\multijugador\juegos\risk\TestSuit.as:[10,15] No se especific¾ ninguna
funci¾n constructora para la clase TestSuit. public class
TestSuit {
[WARNING] D:\Proyectos\ClienteRisk\risk\src\main\flex\wip\com
\multijugador\juegos\risk\Risk.as:[44,31] parameter 'rawDatos' no
tiene ninguna declaraci¾n de tipo. public function
procesarRaw(rawDatos):void {
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.core:IWindow):[-1,-1] No
se encontr¾ el tipo o no es una constante en tiempo de compilaci¾n:
NativeWindow.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.utils:DirectoryEnumeration):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.utils:DirectoryEnumeration):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.utils:DirectoryEnumeration):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.events:FileEvent):[-1,-1]
No se encontr¾ el tipo o no es una constante en tiempo de compilaci¾n:
File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.events:FlexNativeMenuEvent):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: NativeMenu.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.events:FlexNativeMenuEvent):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: NativeMenuItem.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemControlHelper):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls.fileSystemClasses:FileSystemComboBoxRenderer):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: File.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls:HTML):[-1,-1] No
se encontr¾ el tipo o no es una constante en tiempo de compilaci¾n:
HTMLHost.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls:HTML):[-1,-1] No
se encontr¾ el tipo o no es una constante en tiempo de compilaci¾n:
HTMLHost.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls:HTML):[-1,-1] No
se encontr¾ el tipo o no es una constante en tiempo de compilaci¾n:
HTMLHistoryItem.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.controls:HTML):[-1,-1] No
se encontr¾ el tipo o no es una constante en tiempo de compilaci¾n:
HTMLUncaughtScriptExceptionEvent.
[ERROR] C:\Users\Javier\.m2\repository\com\adobe\flex\framework
\airframework
\4.5.0.17689\airframework-4.5.0.17689.swc(mx.managers:NativeDragManagerImpl):
[-1,-1] No se encontr¾ el tipo o no es una constante en tiempo de
compilaci¾n: NativeDragEvent.
On 16 mayo, 11:35, Marvin Froeder <[email protected]> wrote:
> Does flexunit work with 4.50?
>
>
>
>
>
>
>
> On Mon, May 16, 2011 at 11:32 AM, Javier <[email protected]> wrote:
> > Hello all.
> > I´m having problems with unit testing in flexmojos with flexunit4.
> > This is my pom
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!--
>
> > Copyright 2008 Marvin Herman Froeder
> > Licensed under the Apache License, Version 2.0 (the "License");
> > you may not use this file except in compliance with the License.
> > You may obtain a copy of the License at
>
> > http://www.apache.org/licenses/LICENSE-2.0
>
> > Unless required by applicable law or agreed to in writing,
> > software
> > distributed under the License is distributed on an "AS IS" BASIS,
> > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > implied.
> > See the License for the specific language governing permissions
> > and
> > limitations under the License.
>
> > -->
> > <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.0http://maven.apache.org/maven-v4_0_0.xsd">
> > <modelVersion>4.0.0</modelVersion>
>
> > <groupId>wip.com.juegos.cliente</groupId>
> > <artifactId>risk</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > <packaging>swf</packaging>
>
> > <name>Risk</name>
>
> > <properties>
>
> > <flashPlayer.command>D:\Desarrollo\flashplayer_10_sa_debug.exe</
> > flashPlayer.command>
> > <flexmojos.version>3.8</flexmojos.version>
> > </properties>
> > <build>
> > <sourceDirectory>src/main/flex/wip/com/multijugador</
> > sourceDirectory>
> > <testSourceDirectory>src/test/flex/wip/com/multijugador</
> > testSourceDirectory>
> > <plugins>
> > <plugin>
>
> > <groupId>org.sonatype.flexmojos</groupId>
> > <artifactId>flexmojos-maven-plugin</artifactId>
> > <version>${flexmojos.version}</version>
> > <extensions>true</extensions>
>
> > <configuration>
> > <testRunner>
> > <launcher>
>
> > <flashplayerCommand>${flashPlayer.command}</flashplayerCommand>
> > </launcher>
> > </testRunner>
> > <!--<includeTestFiles>
> > <includeTestFile>*Test.as</includeTestFile>
> > </includeTestFiles>-->
> > <skipTest>true</skipTest>
> > </configuration>
>
> > <dependencies>
> > <dependency>
> > <groupId>com.adobe.flex</groupId>
> > <artifactId>compiler</artifactId>
> > <version>4.5.0.19786</version>
> > <type>pom</type>
> > </dependency>
> > <dependency>
> > <groupId>com.adobe.flex.framework</groupId>
> > <artifactId>playerglobal</artifactId>
> > <version>10-3.3.0.4852</version>
> > <classifier></classifier>
> > <type>swc</type>
> > </dependency>
> > </dependencies>
>
> > </plugin>
> > </plugins>
> > </build>
>
> > <dependencies>
> > <dependency>
> > <groupId>com.adobe.flex.framework</groupId>
> > <artifactId>flex-framework</artifactId>
> > <version>4.5.0.19786</version>
> > <type>pom</type>
> > </dependency>
>
> > <dependency>
> > <groupId>com.adobe.flexunit</groupId>
> > <artifactId>flexunit</artifactId>
> > <version>4.0-rc-1</version>
> > <type>swc</type>
> > <scope>test</scope>
> > </dependency>
>
> > <dependency>
> > <groupId>org.sonatype.flexmojos</groupId>
> > <artifactId>flexmojos-unittest-flexunit4</artifactId>
> > <version>4.0-SNAPSHOT</version>
> > <type>swc</type>
> > <scope>test</scope>
> > </dependency>
>
> > <dependency>
> > <groupId>wip.com</groupId>
> > <artifactId>commons</artifactId>
> > <version>2.0-SNAPSHOT</version>
> > <type>swc</type>
> > </dependency>
> > <dependency>
> > <groupId>wip.com</groupId>
> > <artifactId>commons</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > <type>swc</type>
> > </dependency>
> > </dependencies>
>
> > <profiles>
> > <profile><!--https://docs.sonatype.org/pages/viewpage.action?
> > pageId=2949459-->
> > <id>m2e</id>
> > <activation>
> > <property>
> > <name>m2e.version</name>
> > </property>
> > </activation>
> > <build>
> > </build>
> > </profile>
> > </profiles>
> > </project>
>
> > and this is the error
>
> > [ERROR] _TestRunner_mx_managers_SystemManager.as:[21,14] El mÚtodo de
> > interfaz addPreloadedRSL del espacio de nombres
> > mx.core:IFlexModuleFactory no se implementa con la clase
> > _TestRunner_mx_managers_SystemManager.public class
> > _TestRunner_mx_managers_SystemManager
> > [ERROR] _TestRunner_mx_managers_SystemManager.as:[21,14] El mÚtodo de
> > interfaz addPreloadedRSL del espacio de nombres
> > mx.core:IFlexModuleFactory no se implementa con la clase
> > _TestRunner_mx_managers_SystemManager.public class
> > _TestRunner_mx_managers_SystemManager
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 12.888s
> > [INFO] Finished at: Mon May 16 11:22:40 UYT 2011
> > [INFO] Final Memory: 19M/289M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
> > plugin:3.8:test-compile (default-test-compile) on project risk: Error
> > compiling! -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:test-
> > compile (default-test-compile) on project risk: Error compiling!
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 203)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 148)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 140)
> > at
>
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif
> > ecycleModuleBuilder.java:
> > 84)
> > at
>
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif
> > ecycleModuleBuilder.java:
> > 59)
> > at
>
> > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li
> > fecycleStarter.java:
> > 183)
> > at
>
> > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart
> > er.java:
> > 161)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > 316)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> > 153)
> > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
> > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > 39)
> > at
>
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> > l.java:
> > 25)
> > at java.lang.reflect.Method.invoke(Method.java:597)
> > at
>
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j
> > ava:
> > 290)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> > 230)
> > at
>
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher
> > .java:
> > 409)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> > 352)
> > Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> > compiling!
> > at
>
> > org.sonatype.flexmojos.compiler.AbstractCompilerMojo.callCompiler(AbstractC
> > ompilerMojo.java:
> > 1141)
> > at
>
> > org.sonatype.flexmojos.compiler.TestCompileMojo.buildTest(TestCompileMojo.j
> > ava:
> > 168)
> > at
> > org.sonatype.flexmojos.compiler.TestCompileMojo.run(TestCompileMojo.java:
> > 455)
> > at
>
> > org.sonatype.flexmojos.compiler.TestCompileMojo.execute(TestCompileMojo.jav
> > a:
> > 252)
> > at
>
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP
> > luginManager.java:
> > 107)
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 195)
> > ... 19 more
> > [ERROR]
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> >http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> > I apreciate some help in this.
> > Thanks in advance.
> > Javier sivack
>
> > --
> > 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/
--
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/