Did you tried wiki instructions?

VELO

On Tue, Oct 19, 2010 at 4:08 PM, kei <[email protected]> wrote:

> I have modified my POM to reflect what I found on the WIKI for
> FlexUnit 0.9 (0.85 on the wiki, but 0.9 is the closest I could
> download). Now I am back to square one, receiving the "Invalid state"
> error. Do you have any advice for the POM file below?
>
> This is taken from the sample POM provided here:
>
> http://svn.sonatype.org/flexmojos/trunk/flexmojos-testing/flexmojos-test-harness/projects/concept/flexunit-example/pom.xml
>
> Kei
>
> <?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.0 http://maven.apache.org/maven-v4_0_0.xsd";>
>   <modelVersion>4.0.0</modelVersion>
>        <parent>
>                 <groupId>org.sonatype.flexmojos</groupId>
>                 <artifactId>flexmojos-flex-super-pom</artifactId>
>                 <version>3.3.0</version>
>         </parent>
>
>        <groupId>sampleCase.tests</groupId>
>        <artifactId>flexunit4</artifactId>
>         <version>1.0-SNAPSHOT</version>
>
>         <packaging>swc</packaging>
>
>     <build>
>       <sourceDirectory>src/main/flex</sourceDirectory>
>       <testSourceDirectory>src/test/flex</testSourceDirectory>
>      </build>
>
>     <reporting>
>            <plugins>
>              <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-project-info-reports-plugin</artifactId>
>                <version>2.1</version>
>              </plugin>
>               <plugin>
>                <groupId>org.sonatype.flexmojos</groupId>
>                <artifactId>flexmojos-maven-plugin</artifactId>
>                 <version>3.3.0</version>
>              </plugin>
>            </plugins>
>        </reporting>
>
>       <dependencies>
>               <dependency>
>                       <groupId>flexunit</groupId>
>                       <artifactId>flexunit</artifactId>
>                        <version>0.9</version>
>                        <type>swc</type>
>               </dependency>
>       </dependencies>
> </project>
>
> On Oct 18, 1:10 pm, Marvin Froeder <[email protected]> wrote:
> > A visit to wiki may prove useful.
> >
> > VELO
> >
> > On Mon, Oct 18, 2010 at 6:06 PM, Bryan Turner <[email protected]>
> wrote:
> > > Also, the flexmojos-unittest-support you reference should be the same
> > > version as the FlexMojos plugin you use. Right now, you have that
> explicitly
> > > set to 3.3.0. It should be ${flexmojos.version} to match the plugin. In
> your
> > > <plugins/> section (not <pluginManagement/plugins> you should reference
> the
> > > FlexMojos plugin:
> >
> > > <?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>
> > >        <parent>
> > >                <groupId> **** </groupId>
> > >                <artifactId> *** </artifactId>
> > >                <version> ***-SNAPSHOT</version>
> > >        </parent>
> > >        <groupId>sampleCase.tests</groupId>
> > >        <artifactId>flexunit4</artifactId>
> > >        <name>FlexUnit</name>
> > >        <packaging>swc</packaging>
> > >        <properties>
> > >          <flash.version>9</flash.version>
> > >          <flex.sdk.version>3.4.0.9271</flex.sdk.version>
> > >          <flexmojos.version>3.7.1</flexmojos.version>
> > >          <flexunit.version>0.9</flexunit.version>
> > >        </properties>
> > >          <build>
> > >            <sourceDirectory>src/main/flex</sourceDirectory>
> > >            <testSourceDirectory>src/test/flex</testSourceDirectory>
> > >            <pluginManagement>
> > >              <plugins>
> > >                <plugin>
> > >                  <groupId>org.sonatype.flexmojos</groupId>
> > >                  <artifactId>flexmojos-maven-plugin</artifactId>
> > >                  <version>${flexmojos.version}</version>
> >
> > >                  <extensions>true</extensions>
> > >                  <configuration>
> > >                     <moduleFiles>
> > >
> <module>sampleCase/tests/TestProgram.mxml</module>
> > >                     </moduleFiles>
> > >                     <includeTestFiles>
> >
> > >   <includeTestFile>sampleSuite/TestSuite.as</includeTestFile>
> > >                     </includeTestFiles>
> > >                     <targetPlayer>${flash.version}</targetPlayer>
> > >                  </configuration>
> > >                </plugin>
> > >              </plugins>
> > >            </pluginManagement>
> >
> > >            <plugins>
> > >              <plugin>
> > >                <groupId>org.sonatype.flexmojos</groupId>
> > >                <artifactId>flexmojos-maven-plugin</artifactId>
> > >              </plugin>
> > >            </plugins>
> > >          </build>
> > >        <dependencies>
> > >                <dependency>
> > >                        <groupId>flexunit</groupId>
> > >                        <artifactId>flexunit</artifactId>
> > >                        <version>${flexunit.version}</version>
> > >                        <type>swc</type>
> > >                </dependency>
> > >                <dependency>
> > >                        <groupId>com.adobe.flex</groupId>
> > >                        <artifactId>compiler</artifactId>
> > >                        <version>${flex.version}</version>
> > >                        <type>pom</type>
> > >                </dependency>
> > >                <dependency>
> > >                        <groupId>org.sonatype.flexmojos</groupId>
> > >
>  <artifactId>flexmojos-unittest-support</artifactId>
> > >                        <type>swc</type>
> > >                        <scope>test</scope>
> > >                        <version>${flexmojos.version}</version>
> > >                </dependency>
> > >                <dependency
> > >                        <groupId>com.adobe.flex.framework</groupId>
> > >                        <artifactId>playerglobal</artifactId>
> > >                        <version>${flex.sdk.version}</version>
> > >                        <classifier>${flash.version}</classifier>
> > >                        <type>swc</type>
> > >                </dependency>
> > >        </dependencies>
> > > </project>
> > >  On Mon, Oct 18, 2010 at 1:01 PM, Bryan Turner <[email protected]
> >wrote:
> >
> > >> You're still using FlexMojos 3.0.0 for the main plugin, based on that
> pom,
> > >> because your plugin's <version> tag does not reference
> ${flexmojos.version};
> > >> it is explicitly set to 3.0.0.
> >
> > >> On Mon, Oct 18, 2010 at 12:57 PM, kei <[email protected]> wrote:
> >
> > >>> Thank you VELO,
> >
> > >>> I tried FlexUnit 0.9 instead of 4.  The combination of versions is:
> > >>>  <flash.version>9</flash.version>
> > >>>  <flex.sdk.version>3.4.0.9271</flex.sdk.version>
> > >>>  <flexmojos.version>3.7.1</flexmojos.version>
> > >>>  <flexunit.version>0.9</flexunit.version>
> >
> > >>> Then, I got a different error:
> >
> > >>> ...
> > >>> [INFO] [resources:testResources {execution: default-testResources}]
> > >>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> > >>> resources, i.e. build is platform dependent!
> > >>> [INFO] Copying 0 resource
> > >>> [INFO] [flexmojos:test-compile {execution: default-test-compile}]
> > >>> [INFO] Flexmojos 3.7.1
> > >>> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
> > >>> file
> > >>> [INFO] Compiling test class: [sampleSuite.TestSuite]
> > >>> [INFO] [flexmojos:test-run {execution: default-test-run}]
> > >>> [INFO] Flexmojos 3.7.1
> > >>> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
> > >>> file
> > >>> [INFO] Running tests ****\FlexUnitTest\target\test-classes
> > >>> \TestRunner.swf
> > >>> [WARNING] [LAUNCHER] Using regular flashplayer tests
> > >>> [INFO]
> > >>>
> ------------------------------------------------------------------------
> > >>> [INFO] Tests run: 0, Failures: 0, Errors: 0, Time Elapsed: 0 sec
> > >>> [INFO]
> > >>>
> ------------------------------------------------------------------------
> > >>> [ERROR] BUILD ERROR
> > >>> [INFO]
> > >>>
> ------------------------------------------------------------------------
> > >>> [INFO] Invalid state: the flashplayer is closed, but the sockets
> still
> > >>> running...
> >
> > >>> I see a window popping up before the error.
> >
> > >>> Here is my new pom.xml.
> >
> > >>> Regards,
> >
> > >>> Kei
> >
> > >>> <?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>
> > >>>        <parent>
> > >>>                <groupId> **** </groupId>
> > >>>                <artifactId> *** </artifactId>
> > >>>                <version> ***-SNAPSHOT</version>
> > >>>        </parent>
> > >>>        <groupId>sampleCase.tests</groupId>
> > >>>        <artifactId>flexunit4</artifactId>
> > >>>        <name>FlexUnit</name>
> > >>>        <packaging>swc</packaging>
> > >>>        <properties>
> > >>>          <flash.version>9</flash.version>
> > >>>          <flex.sdk.version>3.4.0.9271</flex.sdk.version>
> > >>>          <flexmojos.version>3.7.1</flexmojos.version>
> > >>>          <flexunit.version>0.9</flexunit.version>
> > >>>        </properties>
> > >>>          <build>
> > >>>            <sourceDirectory>src/main/flex</sourceDirectory>
> > >>>            <testSourceDirectory>src/test/flex</testSourceDirectory>
> > >>>            <pluginManagement>
> > >>>              <plugins>
> > >>>                <plugin>
> > >>>                  <groupId>org.sonatype.flexmojos</groupId>
> > >>>                  <artifactId>flexmojos-maven-plugin</artifactId>
> > >>>                  <version>3.0.0</version>
> > >>>                  <extensions>true</extensions>
> > >>>                                <configuration>
> > >>>                                        <moduleFiles>
> >
> > >>>  <module>sampleCase/tests/TestProgram.mxml</module>
> > >>>                                        </moduleFiles>
> > >>>                                        <includeTestFiles>
> >
> > >>>  <includeTestFile>sampleSuite/TestSuite.as</includeTestFile>
> > >>>                                        </includeTestFiles>
> >
> > >>>  <targetPlayer>${flash.version}</targetPlayer>
> >
> > >>>  <packaging>maven-plugin</packaging>
> > >>>                                </configuration>
> > >>>                </plugin>
> > >>>              </plugins>
> > >>>            </pluginManagement>
> > >>>            <!-- To use the plugin goals in your POM or parent POM -->
> > >>>            <plugins>
> > >>>              <plugin>
> > >>>                <groupId>org.servebox.flex</groupId>
> > >>>                <artifactId>flex-plugin</artifactId>
> > >>>                <version>2.3.2</version>
> > >>>              </plugin>
> > >>>            </plugins>
> > >>>          </build>
> > >>>        <dependencies>
> > >>>                <dependency>
> > >>>                        <groupId>flexunit</groupId>
> > >>>                        <artifactId>flexunit</artifactId>
> > >>>                        <version>${flexunit.version}</version>
> > >>>                        <type>swc</type>
> > >>>                </dependency>
> > >>>                <dependency>
> > >>>                        <groupId>com.adobe.flex</groupId>
> > >>>                        <artifactId>compiler</artifactId>
> > >>>                        <version>${flex.version}</version>
> > >>>                        <type>pom</type>
> > >>>                </dependency>
> > >>>                <dependency>
> > >>>                        <groupId>org.sonatype.flexmojos</groupId>
> >
> > >>>  <artifactId>flexmojos-unittest-support</artifactId>
> > >>>                        <type>swc</type>
> > >>>                        <scope>test</scope>
> > >>>                        <version>3.3.0</version>
> > >>>                </dependency>
> > >>>                <dependency>
> > >>>                        <groupId>com.adobe.flex.framework</groupId>
> > >>>                        <artifactId>playerglobal</artifactId>
> > >>>                        <version>${flex.sdk.version}</version>
> > >>>                        <classifier>${flash.version}</classifier>
> > >>>                        <type>swc</type>
> > >>>                </dependency>
> > >>>        </dependencies>
> > >>> </project>
> >
> > >>> On Oct 16, 3:52 pm, Marvin Froeder <[email protected]> wrote:
> > >>> > Flexmojos 3.0.0 doesn't support FlexUnit 4
> >
> > >>>  > On Sat, Oct 16, 2010 at 7:50 PM, Kei Yuasa <[email protected]>
> > >>> wrote:
> > >>> > > By mistake, I sent this question from my another
> >
> > ...
> >
> > read more ยป
>
> --
> 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]<flex-mojos%[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/

Reply via email to