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 "mvn
> > > > > > > compile", it succeeds and the correct playerglobal is in target.
> > > > > > > If I keep the target directory open while its building, I can see
> > > > that
> > > > > > > it first copies the playerglobal correctly (size appro. 180k) but
> > > > then
> > > > > > > it overwrites it with another one that is empty when it starts
> > > > > > > compiling tests, why would it do that?
>
> > > > > > > Here is my pom (I trimmed it down as much as possible):
> > > > > > > <?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.0http://maven.apache.org/maven-v4_0_0.xsd">
> > > > > > > <modelVersion>4.0.0</modelVersion>
> > > > > > > <groupId>my.group</groupId>
> > > > > > > <artifactId>artifact</artifactId>
> > > > > > > <packaging>swf</packaging>
> > > > > > > <build>
> > > > > > > <resources>
> > > > > > > <resource>
> > > > > > > <directory>src/main/config</directory>
> > > > > > > </resource>
> > > > > > > </resources>
> > > > > > > <sourceDirectory>src/main/flex</sourceDirectory>
>
> > > > <testSourceDirectory>src/test/flex</testSourceDirectory>
> > > > > > > <outputDirectory>${project.build.directory}/classes</
> > > > > > > outputDirectory>
> > > > > > > <plugins>
> > > > > > > <plugin>
> > > > > > > <groupId>org.sonatype.flexmojos</groupId>
> > > > > > > <artifactId>flexmojos-maven-plugin</artifactId>
> > > > > > > <extensions>true</extensions>
> > > > > > > <configuration>
>
> > > > > > > <ignoreVersionIssues>true</ignoreVersionIssues>
> > > > > > > <includeSources>
> > > > > > > <param>${project.build.sourceDirectory}</
> > > > > > > param>
> > > > > > > </includeSources>
>
> > > > <sourceFile>main.mxml</sourceFile>
>
> > > > <targetPlayer>10.0.0</targetPlayer>
>
> > <skipTests>false</skipTests>
> > > > > > > <debug>false</debug>
>
> > > > <defaultLocale>en_US</defaultLocale>
> > > > > > > <compiledLocales>
>
> > <locale>en_US</locale>
> > > > > > > </compiledLocales>
>
> > > > <contextRoot>root</contextRoot>
>
> > > > > > > <mergeResourceBundle>true</mergeResourceBundle>
>
> > <resourceBundlePath>${basedir}/src/main/resources/locale/{locale}
> > > > > > > </resourceBundlePath>
> > > > > > > </configuration>
> > > > > > > </plugin>
> > > > > > > </plugins>
> > > > > > > </build>
> > > > > > > <dependencies>
> > > > > > > <dependency>
>
> > > > <groupId>com.adobe.flex.framework</groupId>
>
> > > > <artifactId>flex-framework</artifactId>
> > > > > > > <type>pom</type>
> > > > > > > <version>3.4.0.9271</version>
> > > > > > > <exclusions>
> > > > > > > <exclusion>
>
> > > > > > > <groupId>com.adobe.flex.framework</groupId>
>
> > > > > > > <artifactId>playerglobal</artifactId>
> > > > > > > </exclusion>
> > > > > > > </exclusions>
> > > > > > > </dependency>
> > > > > > > <dependency>
>
> > <groupId>com.adobe.flex.framework</groupId>
> > > > > > > <artifactId>playerglobal</artifactId>
> > > > > > > <version>3.4.0.9271</version>
> > > > > > > <type>swc</type>
> > > > > > > <classifier>10</classifier>
> > > > > > > </dependency>
> > > > > > > <dependency>
> > > > > > > <groupId>com.adobe.flexunit</groupId>
> > > > > > > <artifactId>flexunit</artifactId>
> > > > > > > <version>0.9</version>
> > > > > > > <type>swc</type>
> > > > > > > <scope>test</scope>
> > > > > > > </dependency>
> > > > > > > <dependency>
> > > > > > > <groupId>flexunit.junit</groupId>
> > > > > > > <artifactId>flexunit-optional</artifactId>
> > > > > > > <version>0.85</version>
> > > > > > > <type>swc</type>
> > > > > > > <scope>test</scope>
> > > > > > > </dependency>
> > > > > > > <dependency>
> > > > > > > <groupId>org.sonatype.flexmojos</groupId>
>
> > > > <artifactId>flexmojos-unittest-support</artifactId>
> > > > > > > <version>3.3.0</version>
> > > > > > > <type>swc</type>
> > > > > > > <scope>test</scope>
> > > > > > > <exclusions>
> > > > > > > <exclusion>
>
> > > > > > > <groupId>com.adobe.flex.framework</groupId>
>
> > > > > > > <artifactId>playerglobal</artifactId>
> > > > > > > </exclusion>
> > > > > > > </exclusions>
> > > > > > > </dependency>
> > > > > > > </dependencies>
> > > > > > > </project>
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---