I have flexmojos configured in my pom.xml as follows:
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-beta-7</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.1.0.16248</version>
<type>pom</type>
</dependency>
</dependencies>
<configuration>
<sourceFile>CafePureMVC.mxml</sourceFile>
<debug>true</debug>
<showWarnings>false</showWarnings>
<linkReport>true</linkReport>
<verboseStacktraces>true</
verboseStacktraces>
<testFailureIgnore>true</testFailureIgnore>
<flashPlayerCommand>C:\dev\flashplayer\flashplayer_10_sa_debug.exe</
flashPlayerCommand>
</configuration>
</plugin
I am receiving the following stacktrace when running mvn clean install
on my project.
[INFO] Flexmojos 4.0-beta-7
[INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
file
[INFO] Compiling test class: [cafepuremvc.model.EmployeeProxyTest,
cafepuremvc.m
odel.UserProxyTest, cafepuremvc.view.EmployeeLoginMediatorTest]
Writing configuration dump to C:\Program Files\Jenkins\workspace\cafe-
puremvc\ta
rget\test-classes\TestRunner-configs.xml
C:\Program Files\Jenkins\workspace\cafe-puremvc\target\test-classes
\TestRunner.s
wf (1538426 bytes)
[INFO]
[INFO] --- flexmojos-maven-plugin:4.0-beta-7:test-run (default-test-
run) @ cafe-
puremvc ---
[INFO] Flexmojos 4.0-beta-7
[INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
file
[INFO] Running tests C:\Program Files\Jenkins\workspace\cafe-puremvc
\target\test
-classes\TestRunner.swf
[WARNING] [LAUNCHER] Using regular flashplayer tests
[INFO]
------------------------------------------------------------------------
[INFO] Tests run: 0, Failures: 0, Errors: 0, Time Elapsed: 0 sec
[ERROR] Read timed out - C:\Program Files\Jenkins\workspace\cafe-
puremvc\target\
test-classes\TestRunner.swf
org.sonatype.flexmojos.test.TestRunnerException: Read timed out - C:
\Program Fil
es\Jenkins\workspace\cafe-puremvc\target\test-classes\TestRunner.swf
at
org.sonatype.flexmojos.test.DefaultTestRunner.run(DefaultTestRunner.j
ava:67)
at
org.sonatype.flexmojos.plugin.test.TestRunMojo.runTest(TestRunMojo.ja
va:419)
at
org.sonatype.flexmojos.plugin.test.TestRunMojo.runTest(TestRunMojo.ja
va:387)
at
org.sonatype.flexmojos.plugin.test.TestRunMojo.runTests(TestRunMojo.j
ava:431)
at
org.sonatype.flexmojos.plugin.test.TestRunMojo.run(TestRunMojo.java:3
29)
at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody0(Te
stRunMojo.java:283)
at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody1$ad
vice(TestRunMojo.java:24)
at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody2(Te
stRunMojo.java:270)
at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody3$ad
vice(TestRunMojo.java:17)
at
org.sonatype.flexmojos.plugin.test.TestRunMojo.execute(TestRunMojo.ja
va:1)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at
org.sonatype.flexmojos.test.monitor.AsVmPing.handleRequest(AsVmPing.j
ava:53)
at
org.sonatype.flexmojos.test.monitor.AbstractSocketThread.run(Abstract
SocketThread.java:44)
at java.lang.Thread.run(Thread.java:662)
I can't figure out why this is happening... The project is a simple
sample app utilising PureMVC and has a few 4.1 flexunit tests which
use Mockolate and are async. All these tests are correctly annotated
and they all run fine in Flashbuilder. I have an almost identical
project (and pom.xml) which utilises Parsley rather than PureMVC, with
Mockolate tests and this builds fine with mvn clean install. The only
real difference between the 2 projects is their implementations uses
different frameworks.
Why is this happening? Thanks!
--
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/