It is possible, but I can't realy test beacause if I remove Flex Unit 4 support, I have the following message error :
[INFO] Not found any compatible unit test framework: [org.sonatype.flexmojos:flexmojos-unittest-support] http://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests Since there is an easy way de reproduce it (checkout + mvn clean install), could I create a JIRA issue for this issue ? On 28 sep, 13:28, Marvin Froeder <[email protected]> wrote: > And? > I would say that is part of the problem. > > On Mon, Sep 28, 2009 at 7:08 AM, Bouiaw <[email protected]> wrote: > > > Because I now use Flex Unit 4 for my unit tests. > > > Note that unit tests compiling with Flex Mojos 3.3.0 works fine, even > > if unit tests are not runned as it does not support Flex Unit 4. > > > On 27 sep, 20:32, Marvin Froeder <[email protected]> wrote: > > > Why did you add flexmojos-unittest-flexunit4 ? > > > > On Sun, Sep 27, 2009 at 3:28 PM, Bouiaw <[email protected]> wrote: > > > > > I had to rollback because it bloked the compilation of the project. > > > > > To test the issue, don't checkout trunk but rev 880 : svn co -r 880 > > > >http://openscales.org/svn/openscales/trunk > > > > > Note that using 3.3.0 instead of 3.4-SNAPSHOT and removing flexmojos- > > > > unittest-flexunit4 fix the compiling error. > > > > > On 27 sep, 19:30, Bouiaw <[email protected]> wrote: > > > > > You can reproduce this issue by checkouting OpenScales (http:// > > > > > openscales.org/svn/openscales/trunk) and running a mvn clean > > install. > > > > > > This is the same "empty playerglobal.swc in target but ok in my local > > > > > repo" issue. > > > > > > On 27 sep, 18:49, Bouiaw <[email protected]> wrote: > > > > > > > I got this issue too. > > > > > > > On 24 sep, 17:44, "velo.br" <[email protected]> wrote: > > > > > > > > It should not affect the way that dependencies get resolved. > > > > > > > > On Thu, Sep 24, 2009 at 12:04 PM, Miguel Bautista < > > > > [email protected] > > > > > > > > > wrote: > > > > > > > > > I got it working.... > > > > > > > > > It was a problem in my profile. It had this: > > > > > > > > <pluginRepository> > > > > > <id>flexmojos-repository</id> > > > > > > > > <url> > > > > > > > >http://repository.sonatype.org/content/groups/flexgroup/</ > > > > > > > > url> > > > > > > > > </pluginRepository> > > > > > > > > > When I removed it, it works. I am not sure why this was > > orignially > > > > put > > > > > > > > there, but I don't need it. > > > > > > > > > Thanks. > > > > > > > > > On Sep 23, 7:50 pm, Marvin Froeder <[email protected]> wrote: > > > > > > > > > Did not helped much =/ > > > > > > > > > I dunno what is going on, can you create a sample app that > > shows > > > > the > > > > > > > > problem > > > > > > > > > and file a ticket for it? > > > > > > > > > > VELO > > > > > > > > > > On Wed, Sep 23, 2009 at 7:20 PM, Miguel Bautista > > > > > > > > > <[email protected]>wrote: > > > > > > > > > > > Yes that is it. If I run with "-e" to get the stack trace I > > > > get: > > > > > > > > > > [ERROR] unable to load SWC playerglobal.swc > > > > > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > > > > > > > > [ERROR] BUILD ERROR > > > > > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > > > > > > > > [INFO] Error compiling! > > > > > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > > > > > > > > [INFO] Trace > > > > > > > > > > org.apache.maven.lifecycle.LifecycleExecutionException: > > Error > > > > > > > > > > compiling! > > > > > > > > > > at > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals > > > > > > > > > > (DefaultLifecycleExecutor.java:703) > > > > > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > > > > > > > > > > (DefaultLifecycleExecutor.java:540) > > > > > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal > > > > > > > > > > (DefaultLifecycleExecutor.java:519) > > > > > > > > > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > > > > > > > > > > (DefaultLifecycleExecutor.java:371) > > > > > > > > > > at > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments > > > > > > > > > > (DefaultLifecycleExecutor.java:332) > > > > > > > > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute > > > > > > > > > > (DefaultLifecycleExecutor.java:181) > > > > > > > > > > at > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: > > > > > > > > > > 356) > > > > > > > > > > at > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java: > > > > > > > > > > 137) > > > > > > > > > > at > > org.apache.maven.cli.MavenCli.main(MavenCli.java:356) > > > > > > > > > > at > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > > Method) > > > > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke > > > > > > > > > > (NativeMethodAccessorImpl.java:39) > > > > > > > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > > > > > > > > > > (DelegatingMethodAccessorImpl.java:25) > > > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:597) > > > > > > > > > > at org.codehaus.classworlds.Launcher.launchEnhanced > > > > > > > > > > (Launcher.java:315) > > > > > > > > > > at > > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > > > > > > > > > at > > org.codehaus.classworlds.Launcher.mainWithExitCode > > > > > > > > > > (Launcher.java:430) > > > > > > > > > > at > > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > > > > > > > > Caused by: org.apache.maven.plugin.MojoExecutionException: > > > > Error > > > > > > > > > > compiling! > > > > > > > > > > at > > > org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.build > > > > > > > > > > (AbstractFlexCompilerMojo.java:2082) > > > > > > > > > > at > > > > org.sonatype.flexmojos.compiler.TestCompilerMojo.buildTest > > > > > > > > > > (TestCompilerMojo.java:479) > > > > > > > > > > at > > org.sonatype.flexmojos.compiler.TestCompilerMojo.run > > > > > > > > > > (TestCompilerMojo.java:429) > > > > > > > > > > at > > > > org.sonatype.flexmojos.compiler.TestCompilerMojo.execute > > > > > > > > > > (TestCompilerMojo.java:134) > > > > > > > > > > at > > > > org.apache.maven.plugin.DefaultPluginManager.executeMojo > > > > > > > > > > (DefaultPluginManager.java:483) > > > > > > > > > > at > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals > > > > > > > > > > (DefaultLifecycleExecutor.java:678) > > > > > > > > > > ... 16 more > > > > > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > > > > > > > > > [INFO] Total time: 33 seconds > > > > > > > > > > [INFO] Finished at: Wed Sep 23 18:16:28 EDT 2009 > > > > > > > > > > [INFO] Final Memory: 50M/508M > > > > > > > > > > > repository\com\adobe\flex\framework\playerglobal > > > > > > > > > > \3.4.0.9271\playerglobal-3.4.0.9271-10.swc [Size=189k] > > > > > > > > > > > On Sep 23, 5:19 pm, Marvin Froeder <[email protected]> > > wrote: > > > > > > > > > > > Ok but nothing else?! > > > > > > > > > > > What is the size of it in your local repo? > > > \$repository\com\adobe\flex\framework\playerglobal\4.0.0.10193\playerglobal-4.0.0.10193-10.swc > > > > > > > > > > > > On Wed, Sep 23, 2009 at 6:14 PM, Miguel Bautista > > > > > > > > > > > <[email protected]>wrote: > > > > > > > > > > > > > [ERROR] unable to load SWC playerglobal.swc > > > > > > > > > > > > > If I look at the target directory the playerglobal.swc > > file > > > > is 0 > > > > > > > > > > > > bytes. When it was compiling the test, it replaces the > > > > playerglobal > > > > > > > > 10 > > > > > > > > > > > > with this one that is empty. > > > > > > > > > > > > > On Sep 23, 5:10 pm, Marvin Froeder <[email protected]> > > > > wrote: > > > > > > > > > > > > > What error do you get? > > > > > > > > > > > > > > On Wed, Sep 23, 2009 at 6:06 PM, Miguel Bautista > > > > > > > > > > > > > <[email protected]>wrote: > > > > > > > > > > > > > > > Don't know if I mentioned this, but it works fine > > if I > > > > set the > > > > > > > > > > target > > > > > > > > > > > > > > to 9. > > > > > > > > > > > > > > > On Sep 23, 4:57 pm, Miguel Bautista < > > > > [email protected] > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > No, I thought so to, but I removed my local repo > > and > > > > rebuilt > > > > > > > > it. > > > > > > > > > > > > > > > However, my local repo is not under user > > directory, I > > > > have it > > > > > > > > in > > > > > > > > > > "c: > > > > > > > > > > > > > > > \dev" . Is the mojo looking for it in a specific > > > > location? I > > > > > > > > have > > > > > > > > > > > > this > > > > > > > > > > > > > > > defined in my settings.xml file: > > > <localRepository>/dev/repository</localRepository> > > > > > > > > > > > > > > > > On Sep 23, 4:48 pm, Marvin Froeder < > > > > [email protected]> > > > > > > > > wrote: > > > > > > > > > > > > > > > > > Isn't you local repo corrupted? > > > > > > > > > > > > > > > > > On Wed, Sep 23, 2009 at 5:27 PM, Miguel > > Bautista > > > > > > > > > > > > > > > > <[email protected]>wrote: > > > > > > > > > > > > > > > > > > I am not able to run the unit tests if I set > > the > > > > target > > > > > > > > > > player to > > > > > > > > > > > > 10. > > > > > > > > > > > > > > > > > I get the following error "unable to load SWC > > > > > > > > > > playerglobal.swc". > > > > > > > > > > > > I > > > > > > > > > > > > > > saw > > > > > > > > > > > > > > > > > other postings that about this and followed > > the > > > > > > > > instructions > > > > > > > > > > but > > > > > > > > > > > > > > still > > > > > > > > > > > > > > > > > does not work. It appears that the > > > > playerglobal.swc which > > > > > > > > is > > > > > > > > > > > > being > > > > > > > > > > > > > > > > > copied to my target directory is empty. > > However, > > > > if I run > > ... > > plus de détails » --~--~---------~--~----~------------~-------~--~----~ 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?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
