When I say module I mean maven module indeed, so, yes: 1- Add the test dependencies you need (FU, Mockolate, etc...) in a new module + optionally some useful test code in sources, package it as swc, build it with FM. 2- Add this freshly test lib dependency as test (scope test) dependency of the modules you need to test.
That a nice way separate your test concerns. -Fred -----Message d'origine----- De : akessner [mailto:[email protected]] Envoyé : mercredi 4 septembre 2013 15:34 À : [email protected] Objet : RE: AW: AW: how to setup and use maven-flex-plugin Great idea! I save that as a pom or as a swc artifact ? On 4 Sep 2013 15:22, "Frédéric THOMAS [via Apache Flex Users]" < [email protected]> wrote: > Btw, a cool thing you can do if you didn't yet, is to create another > maven module with the FU4.1, mockolate and whatever the test libs you > need + the base code and utilities as sources and include that lib as > dependency of the module you want to add tests and maven scoping this lib as > "test" > indeed. > > -Fred > > -----Message d'origine----- > De : Frédéric THOMAS [mailto:[hidden > email]<http://user/SendEmail.jtp?type=node&node=2561&i=0>] > > Envoyé : mardi 3 septembre 2013 18:12 > À : [hidden email] <http://user/SendEmail.jtp?type=node&node=2561&i=1> > Objet : RE: AW: AW: how to setup and use maven-flex-plugin > > That wasn't generated, that's one year I use FM6, I just picked it up > from one of my project but even with those minimum dep, it should work: > > <dependencies> > <dependency> > <groupId>com.adobe.flash.framework</groupId> > <artifactId>playerglobal</artifactId> > <version>${playerglobal.version}</version> > <type>rb.swc</type> > </dependency> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>flex-framework</artifactId> > <version>${flex.version}</version> > <type>pom</type> > </dependency> > </dependencies> > > I've project working with FM6.x + FU4.1 + Mockolate too. > > -Fred > > -----Message d'origine----- > De : akessner [mailto:[hidden > email]<http://user/SendEmail.jtp?type=node&node=2561&i=2>] > Envoyé : mardi 3 septembre 2013 17:57 À : [hidden > email]<http://user/SendEmail.jtp?type=node&node=2561&i=3>Objet : Re: > AW: AW: how to setup and use maven-flex-plugin > > That is great, thank you! > It works 99% (can't get mockolate to pass a test though, but I think > I'll have to do that tommorow) > > Can you explain how you generated that pom file? (I tried using the > generate archetype from the flexmojos wiki) > > > Chris, > Yes, you did!! I did not notice the flash instead of flex until now, > but now that I look I see all the files are there! ARG! > brought to you by the letters A, V, and I and the number 47 > > > On Tue, Sep 3, 2013 at 6:32 PM, Frédéric THOMAS [via Apache Flex > Users] <[hidden email] <http://user/SendEmail.jtp?type=node&node=2561&i=4>> > wrote: > > > I quickly built a project with your SDK version mavenized, this is > > the > > pom.xml: > > > > <?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/xsd/maven-4.0.0.xsd"> > > <modelVersion>4.0.0</modelVersion> > > > > <groupId>testMaven</groupId> > > <artifactId>testMaven</artifactId> > > <version>1.0-SNAPSHOT</version> > > > > <packaging>swf</packaging> > > > > <properties> > > <flexmojos.version>6.0.1</flexmojos.version> > > <flex.version>4.1.0.16076A</flex.version> > > <playerglobal.version>10.1</playerglobal.version> > > <flashplayer.version>10.1</flashplayer.version> > > <flex.debug>true</flex.debug> > > </properties> > > > > <build> > > <sourceDirectory>src/main/flex</sourceDirectory> > > <testSourceDirectory>src/test/flex</testSourceDirectory> > > <resources> > > <resource> > > <directory>src/main/resources</directory> > > <filtering>true</filtering> > > <includes> > > <include>**/*</include> > > </includes> > > </resource> > > </resources> > > <plugins> > > <plugin> > > <groupId>net.flexmojos.oss</groupId> > > <artifactId>flexmojos-maven-plugin</artifactId> > > <version>${flexmojos.version}</version> > > <extensions>true</extensions> > > <configuration> > > <storepass/> > > <targetPlayer>10.1</targetPlayer> > > <debug>${flex.debug}</debug> > > <defines> > > <property> > > <name>CONFIG::debugging</name> > > <value>${flex.debug}</value> > > </property> > > <property> > > <name>CONFIG::versionNumber</name> > > <value>'${project.version}'</value> > > </property> > > </defines> > > </configuration> > > <dependencies> > > <dependency> > > <groupId>com.adobe.flex</groupId> > > <artifactId>compiler</artifactId> > > <version>${flex.version}</version> > > <type>pom</type> > > </dependency> > > </dependencies> > > </plugin> > > </plugins> > > </build> > > > > <dependencies> > > <dependency> > > <groupId>com.adobe.flex.framework.themes</groupId> > > <artifactId>halo</artifactId> > > <version>${flex.version}</version> > > <scope>theme</scope> > > <type>swc</type> > > </dependency> > > > > <dependency> > > <groupId>com.adobe.flash.framework</groupId> > > <artifactId>playerglobal</artifactId> > > <version>${playerglobal.version}</version> > > <type>swc</type> > > </dependency> > > <dependency> > > <groupId>com.adobe.flash.framework</groupId> > > <artifactId>playerglobal</artifactId> > > <version>${playerglobal.version}</version> > > <type>rb.swc</type> > > </dependency> > > <dependency> > > <groupId>com.adobe.flex.framework</groupId> > > <artifactId>flash-integration</artifactId> > > <version>${flex.version}</version> > > <type>swc</type> > > </dependency> > > <dependency> > > <groupId>com.adobe.flex.framework</groupId> > > <artifactId>flex-framework</artifactId> > > <version>${flex.version}</version> > > <type>pom</type> > > </dependency> > > <dependency> > > <groupId>com.adobe.flex.framework</groupId> > > <artifactId>flash-integration</artifactId> > > <version>${flex.version}</version> > > <type>rb.swc</type> > > </dependency> > > </dependencies> > > </project> > > > > > > ________________________________ > > If you reply to this email, your message will be added to the > > discussion > > below: > > http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use- > > ma ven-flex-plugin-tp1491p2546.html To unsubscribe from how to setup > > and use maven-flex-plugin, click here. > > NAML > > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-ma > ven-flex-plugin-tp1491p2549.html Sent from the Apache Flex Users > mailing list archive at Nabble.com. > > > ------------------------------ > If you reply to this email, your message will be added to the > discussion > below: > > http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-ma > ven-flex-plugin-tp1491p2561.html To unsubscribe from how to setup and > use maven-flex-plugin, click > here<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServl > et.jtp?macro=unsubscribe_by_code&node=1491&code=YWtlc3NuZXJAZ21haWwuY2 > 9tfDE0OTF8LTMwMjc5NTcwMQ==> > . > NAML<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServl > et.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=n > abble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNa > mespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subs > cribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-sen > d_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-tp1491p2562.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
