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:[email protected]] Envoyé : mardi 3 septembre 2013 18:12 À : [email protected] 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:[email protected]] Envoyé : mardi 3 septembre 2013 17:57 À : [email protected] 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] <[email protected]> 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-maven-flex-plugin-tp1491p2549.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
