You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by akessner <ak...@gmail.com> on 2013/09/03 12:27:11 UTC

Re: AW: AW: how to setup and use maven-flex-plugin

Hi, sorry to bring back an old thread, but I'm having some trouble myself.

I just can't figure out/ follow the previous conversation to get flexmojos
6.0.1 to compile with flex sdk 4.1.0.16248

Here is my Pom:

<?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>

  <groupId>com.whatever</groupId>
  <artifactId>${artifactId}</artifactId>
  <version>${version}</version>
  <packaging>swf</packaging>

  <name>${artifactId} Flex</name>
    <properties>
        <flex.version>4.1.0.16248</flex.version>
        <artifactId>helloWorld3</artifactId>
        <version>1.0-SNAPSHOT</version>
    </properties>
  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <testSourceDirectory>src/test/flex</testSourceDirectory>
    <plugins>
      <plugin>
        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>6.0.1</version>
        <extensions>true</extensions>
		<configuration>
            <storepass/>
			<debug>true</debug>
		</configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>
      <dependency>
          <groupId>com.adobe.flex</groupId>
          <artifactId>compiler</artifactId>
          <version>${flex.version}</version>
          <type>pom</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.flexunit</groupId>
      <artifactId>flexunit</artifactId>
      <version>0.85</version>
      <type>swc</type>
      <scope>test</scope>
    </dependency>
  </dependencies>

  
  <repositories>
     <repository>
        <id>flex-mojos-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </repository>
  </repositories>

  <pluginRepositories>
     <pluginRepository>
        <id>flex-mojos-plugin-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </pluginRepository>
  </pluginRepositories>
</project>



Here is the error:

[ERROR] Failed to execute goal
net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
(default-compile-swf) on project helloWorld3: Execution default-compile-swf
of goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf failed:
Flex compiler and flex framework versions doesn't match. Compiler:
'4.6.0.23201' - Framework: '4.1.0.16248'.
[ERROR] You can use
'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking' to
disable this check.  Please refer to Flexmojos maven doc.
[ERROR] If you prefer fixing it instead of ignoring, take a look at:
https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version
[ERROR] -> [Help 1]



I appreciate the help.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-tp1491p2514.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
Maven is alternating between giving me the error that it can't find
the player global and that it can't find framework:pom:...

[ERROR] Failed to execute goal
net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
(default-compile-swf) on project helloWorld3:
java.lang.reflect.InvocationTargetException: Failed to resolve
artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1]
[ERROR]

However, I see these things in my repository...
brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <ak...@gmail.com> wrote:
> This is sending me into an infinite loop :)
> I've added the compiler to the dependency inside the plugin.  But now
> I'm getting new errors.
> brought to you by the letters A, V, and I
> and the number 47
>
>
> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
> Users] <ml...@n4.nabble.com> wrote:
>> Just answered here
>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-td1491i20.html#a2518
>>
>> ________________________________
>> 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-maven-flex-plugin-tp1491p2519.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-tp1491p2523.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
Thank you for your help, I got everything working.  I've updated the
stackoverflow question incase you want to comment:

http://stackoverflow.com/questions/18505129/how-do-i-get-flexunit-flexmojos-and-mockolate-to-work-together
brought to you by the letters A, V, and I
and the number 47


On Wed, Sep 4, 2013 at 5:29 PM, Frédéric THOMAS [via Apache Flex
Users] <ml...@n4.nabble.com> wrote:
> I just read it better and it not how I do but it is smart.
>
> I usually have parent pom by type of child (swf, swc for Flex) that
> preconfigure other libs, so, the test part resides in an artifact where I
> don't have include either  FM nor other common Flex lib.
>
> At the end the result is almost the same than what you did using
> self-extracting profiles.
>
> -Fred
>
> -----Message d'origine-----
> De : Frédéric THOMAS [mailto:[hidden email]]
> Envoyé : mercredi 4 septembre 2013 16:10
> À : [hidden email]
> Objet : RE: AW: AW: how to setup and use maven-flex-plugin
>
> Yes, I didn't do in deep because I wan't to keep it simple but basically, it
> is what I do as well :-)
>
> -Fred
>
> -----Message d'origine-----
> De : [hidden email] [mailto:[hidden email]]
> Envoyé : mercredi 4 septembre 2013 16:05 À : [hidden email] Objet :
> AW: AW: AW: how to setup and use maven-flex-plugin
>
> Good Idea ... I usually do that using a self-activating Profile in the
> Project root-pom:
>
> <profile>
>             <id>flex-project</id>
>             <activation>
>                 <file>
>                     <exists>src/main/flex</exists>
>                 </file>
>             </activation>
>             <dependencies>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>playerglobal</artifactId>
>                     <version>${flex.version}</version>
>                     <classifier>${flashplayer.version}</classifier>
>                     <type>swc</type>
>                 </dependency>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>textLayout</artifactId>
>                     <version>${flex.version}</version>
>                     <type>swc</type>
>                     <scope>caching</scope>
>                 </dependency>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>framework</artifactId>
>                     <version>${flex.version}</version>
>                     <type>swc</type>
>                     <scope>caching</scope>
>                 </dependency>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>spark</artifactId>
>                     <version>${flex.version}</version>
>                     <type>swc</type>
>                     <scope>caching</scope>
>                 </dependency>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>sparkskins</artifactId>
>                     <version>${flex.version}</version>
>                     <type>swc</type>
>                     <scope>caching</scope>
>                 </dependency>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>mx</artifactId>
>                     <version>${flex.version}</version>
>                     <type>swc</type>
>                     <scope>caching</scope>
>                 </dependency>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>rpc</artifactId>
>                     <version>${flex.version}</version>
>                     <type>swc</type>
>                     <scope>caching</scope>
>                 </dependency>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>charts</artifactId>
>                     <version>${flex.version}</version>
>                     <type>swc</type>
>                     <scope>caching</scope>
>                 </dependency>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>advancedgrids</artifactId>
>                     <version>${flex.version}</version>
>                     <type>swc</type>
>                     <scope>caching</scope>
>                 </dependency>
>                 <dependency>
>                     <groupId>com.adobe.flex.framework</groupId>
>                     <artifactId>flex-framework</artifactId>
>                     <version>${flex.version}</version>
>                     <type>pom</type>
>                 </dependency>
>                 <dependency>
>                     <groupId>org.flexunit</groupId>
>                     <artifactId>flexunit</artifactId>
>                     <version>4.1.0</version>
>                     <type>swc</type>
>                     <classifier>flex4</classifier>
>                     <scope>test</scope>
>                 </dependency>
>             </dependencies>
>        </profile>
>
> This way I don't even have to configure the flexmojos plugin at all (ok ...
> I do have to add it, but it pulls all configuration stuff from the root pom)
> ... all I do is create a src/main/flex Directory and give the module a
> packaging of "swc" or "swf" ... here a sample SWF modules 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/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>     <parent>
>         <groupId>de.cware.cweb</groupId>
>         <artifactId>cweb-core.client</artifactId>
>         <version>1.0.0-SNAPSHOT</version>
>     </parent>
>     <groupId>de.cware.cweb</groupId>
>     <artifactId>cweb-core.client.lib-utils</artifactId>
>     <version>1.0.0-SNAPSHOT</version>
>     <packaging>swc</packaging>
>     <name>C-Web Core (Client): Library Utils</name>
>     <build>
>         <sourceDirectory>src/main/flex</sourceDirectory>
>         <testSourceDirectory>src/test/flex</testSourceDirectory>
>         <plugins>
>             <plugin>
>                 <groupId>${flexmojos.groupId}</groupId>
>                 <artifactId>flexmojos-maven-plugin</artifactId>
>                 <extensions>true</extensions>
>             </plugin>
>         </plugins>
>     </build>
>     <dependencies>
>         <dependency>
>             <groupId>de.cware.cweb</groupId>
>             <artifactId>cweb-evaluator.lib-utils</artifactId>
>             <version>1.0.0-SNAPSHOT</version>
>             <type>swc</type>
>         </dependency>
>         <dependency>
>             <groupId>org.springframework</groupId>
>             <artifactId>spring-actionscript</artifactId>
>             <version>0.7.1</version>
>             <type>swc</type>
>         </dependency>
>         <dependency>
>             <groupId>com.google.maps</groupId>
>             <artifactId>map-flex</artifactId>
>             <version>1.18</version>
>             <type>swc</type>
>         </dependency>
>
>         <dependency>
>             <groupId>de.cware.cweb</groupId>
>             <artifactId>cweb-core.client.lib-model</artifactId>
>             <version>1.0.0-SNAPSHOT</version>
>             <type>swc</type>
>         </dependency>
>     </dependencies>
> </Project>
>
> This way there is no Need to do any of the Default Framework imports,
> Compiler fine-tuning etc at all in your artifact.
>
> Just to add my 50ct to the dsicussion ;-)
>
> Chris
>
> PS: Yes this was a pom taken from an old Project still runnnig with
> FM4.2-beta and Flex 4.5.1 but I guess you should get the Point ;-)
>
>
>
>
>
> ________________________________________
> Von: Frédéric THOMAS [[hidden email]]
> Gesendet: Mittwoch, 4. September 2013 15:41
> An: [hidden email]
> Betreff: RE: AW: AW: how to setup and use maven-flex-plugin
>
> 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:[hidden email]] Envoyé : mercredi 4 septembre 2013
> 15:34 À : [hidden email] 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]" <
> [hidden email]> 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=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-fl
> ex-plugin-tp1491p2562.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-maven-flex-plugin-tp1491p2567.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-tp1491p2659.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
I just read it better and it not how I do but it is smart.

I usually have parent pom by type of child (swf, swc for Flex) that
preconfigure other libs, so, the test part resides in an artifact where I
don't have include either  FM nor other common Flex lib.

At the end the result is almost the same than what you did using
self-extracting profiles.

-Fred

-----Message d'origine-----
De : Frédéric THOMAS [mailto:webdoublefx@hotmail.com] 
Envoyé : mercredi 4 septembre 2013 16:10
À : users@flex.apache.org
Objet : RE: AW: AW: how to setup and use maven-flex-plugin

Yes, I didn't do in deep because I wan't to keep it simple but basically, it
is what I do as well :-)

-Fred

-----Message d'origine-----
De : christofer.dutz@c-ware.de [mailto:christofer.dutz@c-ware.de]
Envoyé : mercredi 4 septembre 2013 16:05 À : users@flex.apache.org Objet :
AW: AW: AW: how to setup and use maven-flex-plugin

Good Idea ... I usually do that using a self-activating Profile in the
Project root-pom:

<profile>
            <id>flex-project</id>
            <activation>
                <file>
                    <exists>src/main/flex</exists>
                </file>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>playerglobal</artifactId>
                    <version>${flex.version}</version>
                    <classifier>${flashplayer.version}</classifier>
                    <type>swc</type>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>textLayout</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>framework</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>spark</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>sparkskins</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>mx</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>rpc</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>charts</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>advancedgrids</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>flex-framework</artifactId>
                    <version>${flex.version}</version>
                    <type>pom</type>
                </dependency>
                <dependency>
                    <groupId>org.flexunit</groupId>
                    <artifactId>flexunit</artifactId>
                    <version>4.1.0</version>
                    <type>swc</type>
                    <classifier>flex4</classifier>
                    <scope>test</scope>
                </dependency>
            </dependencies>
       </profile>

This way I don't even have to configure the flexmojos plugin at all (ok ...
I do have to add it, but it pulls all configuration stuff from the root pom)
... all I do is create a src/main/flex Directory and give the module a
packaging of "swc" or "swf" ... here a sample SWF modules 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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>de.cware.cweb</groupId>
        <artifactId>cweb-core.client</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>
    <groupId>de.cware.cweb</groupId>
    <artifactId>cweb-core.client.lib-utils</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <packaging>swc</packaging>
    <name>C-Web Core (Client): Library Utils</name>
    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>${flexmojos.groupId}</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>de.cware.cweb</groupId>
            <artifactId>cweb-evaluator.lib-utils</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-actionscript</artifactId>
            <version>0.7.1</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.google.maps</groupId>
            <artifactId>map-flex</artifactId>
            <version>1.18</version>
            <type>swc</type>
        </dependency>

        <dependency>
            <groupId>de.cware.cweb</groupId>
            <artifactId>cweb-core.client.lib-model</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <type>swc</type>
        </dependency>
    </dependencies>
</Project>

This way there is no Need to do any of the Default Framework imports,
Compiler fine-tuning etc at all in your artifact.

Just to add my 50ct to the dsicussion ;-)

Chris

PS: Yes this was a pom taken from an old Project still runnnig with
FM4.2-beta and Flex 4.5.1 but I guess you should get the Point ;-)





________________________________________
Von: Frédéric THOMAS [webdoublefx@hotmail.com]
Gesendet: Mittwoch, 4. September 2013 15:41
An: users@flex.apache.org
Betreff: RE: AW: AW: how to setup and use maven-flex-plugin

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:akessner@gmail.com] Envoyé : mercredi 4 septembre 2013
15:34 À : users@flex.apache.org 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]" <
ml-node+s2333346n2561h41@n4.nabble.com> 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-fl
ex-plugin-tp1491p2562.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
Yes, I didn't do in deep because I wan't to keep it simple but basically, it
is what I do as well :-)

-Fred

-----Message d'origine-----
De : christofer.dutz@c-ware.de [mailto:christofer.dutz@c-ware.de] 
Envoyé : mercredi 4 septembre 2013 16:05
À : users@flex.apache.org
Objet : AW: AW: AW: how to setup and use maven-flex-plugin

Good Idea ... I usually do that using a self-activating Profile in the
Project root-pom:

<profile>
            <id>flex-project</id>
            <activation>
                <file>
                    <exists>src/main/flex</exists>
                </file>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>playerglobal</artifactId>
                    <version>${flex.version}</version>
                    <classifier>${flashplayer.version}</classifier>
                    <type>swc</type>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>textLayout</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>framework</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>spark</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>sparkskins</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>mx</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>rpc</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>charts</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>advancedgrids</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>flex-framework</artifactId>
                    <version>${flex.version}</version>
                    <type>pom</type>
                </dependency>
                <dependency>
                    <groupId>org.flexunit</groupId>
                    <artifactId>flexunit</artifactId>
                    <version>4.1.0</version>
                    <type>swc</type>
                    <classifier>flex4</classifier>
                    <scope>test</scope>
                </dependency>
            </dependencies>
       </profile>

This way I don't even have to configure the flexmojos plugin at all (ok ...
I do have to add it, but it pulls all configuration stuff from the root pom)
... all I do is create a src/main/flex Directory and give the module a
packaging of "swc" or "swf" ... here a sample SWF modules 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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>de.cware.cweb</groupId>
        <artifactId>cweb-core.client</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>
    <groupId>de.cware.cweb</groupId>
    <artifactId>cweb-core.client.lib-utils</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <packaging>swc</packaging>
    <name>C-Web Core (Client): Library Utils</name>
    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>${flexmojos.groupId}</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>de.cware.cweb</groupId>
            <artifactId>cweb-evaluator.lib-utils</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-actionscript</artifactId>
            <version>0.7.1</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.google.maps</groupId>
            <artifactId>map-flex</artifactId>
            <version>1.18</version>
            <type>swc</type>
        </dependency>

        <dependency>
            <groupId>de.cware.cweb</groupId>
            <artifactId>cweb-core.client.lib-model</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <type>swc</type>
        </dependency>
    </dependencies>
</Project>

This way there is no Need to do any of the Default Framework imports,
Compiler fine-tuning etc at all in your artifact.

Just to add my 50ct to the dsicussion ;-)

Chris

PS: Yes this was a pom taken from an old Project still runnnig with
FM4.2-beta and Flex 4.5.1 but I guess you should get the Point ;-)





________________________________________
Von: Frédéric THOMAS [webdoublefx@hotmail.com]
Gesendet: Mittwoch, 4. September 2013 15:41
An: users@flex.apache.org
Betreff: RE: AW: AW: how to setup and use maven-flex-plugin

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:akessner@gmail.com] Envoyé : mercredi 4 septembre 2013
15:34 À : users@flex.apache.org 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]" <
ml-node+s2333346n2561h41@n4.nabble.com> 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-fl
ex-plugin-tp1491p2562.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

AW: AW: AW: how to setup and use maven-flex-plugin

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
Good Idea ... I usually do that using a self-activating Profile in the Project root-pom:

<profile>
            <id>flex-project</id>
            <activation>
                <file>
                    <exists>src/main/flex</exists>
                </file>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>playerglobal</artifactId>
                    <version>${flex.version}</version>
                    <classifier>${flashplayer.version}</classifier>
                    <type>swc</type>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>textLayout</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>framework</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>spark</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>sparkskins</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>mx</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>rpc</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>charts</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>advancedgrids</artifactId>
                    <version>${flex.version}</version>
                    <type>swc</type>
                    <scope>caching</scope>
                </dependency>
                <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>flex-framework</artifactId>
                    <version>${flex.version}</version>
                    <type>pom</type>
                </dependency>
                <dependency>
                    <groupId>org.flexunit</groupId>
                    <artifactId>flexunit</artifactId>
                    <version>4.1.0</version>
                    <type>swc</type>
                    <classifier>flex4</classifier>
                    <scope>test</scope>
                </dependency>
            </dependencies>
       </profile>

This way I don't even have to configure the flexmojos plugin at all (ok ... I do have to add it, but it pulls all configuration stuff from the root pom) ... all I do is create a src/main/flex Directory and give the module a packaging of "swc" or "swf" ... here a sample SWF modules 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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>de.cware.cweb</groupId>
        <artifactId>cweb-core.client</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>
    <groupId>de.cware.cweb</groupId>
    <artifactId>cweb-core.client.lib-utils</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <packaging>swc</packaging>
    <name>C-Web Core (Client): Library Utils</name>
    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>${flexmojos.groupId}</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>de.cware.cweb</groupId>
            <artifactId>cweb-evaluator.lib-utils</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-actionscript</artifactId>
            <version>0.7.1</version>
            <type>swc</type>
        </dependency>
        <dependency>
            <groupId>com.google.maps</groupId>
            <artifactId>map-flex</artifactId>
            <version>1.18</version>
            <type>swc</type>
        </dependency>

        <dependency>
            <groupId>de.cware.cweb</groupId>
            <artifactId>cweb-core.client.lib-model</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <type>swc</type>
        </dependency>
    </dependencies>
</Project>

This way there is no Need to do any of the Default Framework imports, Compiler fine-tuning etc at all in your artifact.

Just to add my 50ct to the dsicussion ;-)

Chris

PS: Yes this was a pom taken from an old Project still runnnig with FM4.2-beta and Flex 4.5.1 but I guess you should get the Point ;-)





________________________________________
Von: Frédéric THOMAS [webdoublefx@hotmail.com]
Gesendet: Mittwoch, 4. September 2013 15:41
An: users@flex.apache.org
Betreff: RE: AW: AW: how to setup and use maven-flex-plugin

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:akessner@gmail.com]
Envoyé : mercredi 4 septembre 2013 15:34
À : users@flex.apache.org
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]" <
ml-node+s2333346n2561h41@n4.nabble.com> 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.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
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:akessner@gmail.com] 
Envoyé : mercredi 4 septembre 2013 15:34
À : users@flex.apache.org
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]" <
ml-node+s2333346n2561h41@n4.nabble.com> 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.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
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]" <
ml-node+s2333346n2561h41@n4.nabble.com> 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-maven-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-maven-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/NamlServlet.jtp?macro=unsubscribe_by_code&node=1491&code=YWtlc3NuZXJAZ21haWwuY29tfDE0OTF8LTMwMjc5NTcwMQ==>
> .
> NAML<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_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.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
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:webdoublefx@hotmail.com] 
Envoyé : mardi 3 septembre 2013 18:12
À : users@flex.apache.org
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:akessner@gmail.com] Envoyé : mardi 3 septembre 2013 17:57 À : users@flex.apache.org 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] <ml...@n4.nabble.com> 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.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
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:akessner@gmail.com] 
Envoyé : mardi 3 septembre 2013 17:57
À : users@flex.apache.org
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] <ml...@n4.nabble.com> 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.

AW: AW: AW: how to setup and use maven-flex-plugin

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
The generate thing in FM was part of Velos private suite that he didn't publish because it was his oppinion that he was the only one able to generate FDKs.
Over the years I had a few ideas of how I would like to have things a little different, so I started creating my own deployment structure. I knew how I wanted the output tob e, so it was more a task of iteratively adjusting, generating and validating the output. It took a quite a while, but after a while and a lot of iterations the output was finnaly as I wanted it to be. 

Unfortunately Flexmojos didn't work with that structure, so I created the 6.x branch as a private playground fr using the new FDKs without breaking anything with the latest 5.x version.

Chris

-----Ursprüngliche Nachricht-----
Von: akessner [mailto:akessner@gmail.com] 
Gesendet: Dienstag, 3. September 2013 17:57
An: users@flex.apache.org
Betreff: 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] <ml...@n4.nabble.com> 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.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
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] <ml...@n4.nabble.com> 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-maven-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.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
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>

AW: AW: AW: how to setup and use maven-flex-plugin

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
Öhm ... didn't I Change the GroupID of all the flashplayer related stuff? (Sorry it's been quite some time)
I think I now have the playerglobal at com.adobe.flash.framework (Notice the "flash" instead of "flex"?)
Unfortunately I have to do GWT stuff at the Moment, so I'm a Little rusty ;-)

Chris

________________________________________
Von: akessner [akessner@gmail.com]
Gesendet: Dienstag, 3. September 2013 17:18
An: users@flex.apache.org
Betreff: Re: AW: AW: how to setup and use maven-flex-plugin

I see special instructions for flex sdks  3.0 Moxie M2.180927 and
3.0.0.477A, 3.0.1.1732A and 3.2.0.3958A , and 4.8.0.1359417 and
instructions for AIR in general.

But not for 4.1   (I listed those in case someone does a search in the future )

Was my summary of those 5 points I wrote earlier correct?
brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 6:08 PM, christofer.dutz@c-ware.de [via Apache
Flex Users] <ml...@n4.nabble.com> wrote:
> Could you please check out the code of the mavenizer, if you haven't done
> so. I think I remember that some FDKs needed a Little tweaking. I wrote down
> most of that stuff in the text-file in the Project root. Have a look at that
> to see if there was anything Special with 4.1.0.16076A
>
> Chris
>
> ________________________________________
> Von: akessner [[hidden email]]
> Gesendet: Dienstag, 3. September 2013 16:41
> An: [hidden email]
> Betreff: Re: AW: AW: how to setup and use maven-flex-plugin
>
> Just a few things so that we are all on the same page.
>
> I mavenized skd 4.1.0.16076A and uploaded to my artifactory as well as
> copied into my .m2/repository folder.
> When I set the flex.version to 4.1.016076A I get all sorts of errors
> of it not being found/recognized etc.
>
> I also mavenized sdk 4.6.0.23201 and everything works perfectly when I
> do that.  (only problem is I'm not allowed to use 4.6 cause I have to
> target flashplayer 10.1)
>
> All of this stems from our initial question here:
> http://stackoverflow.com/questions/18505129/how-do-i-get-flexunit-flexmojos-and-mockolate-to-work-together
>
> The only requirements I have is that I get mockolate, flexunit, and
> flashplayer 10.1 all working together, and that I'm able to have it
> run in teamcity through maven :)
> brought to you by the letters A, V, and I
> and the number 47
>
>
> On Tue, Sep 3, 2013 at 5:33 PM, Avi Kessner <[hidden email]> wrote:
>
>> Thanks, my eyes must have gone blury.  You clearly described that in
>> the migrating to flexmojos 6.0 wiki page, and yet I switched them
>> around in my actual pom! D'oh!
>> However, it is still not working.  I assume the playerglobal is not
>> uploaded to the repository in the deploy script?  Both my local and
>> artifactory repositories do not have a pom file for
>> playerglobal-10.1.swc
>>
>> However, in general I feel like I'm missing some crucial bits of
>> information, so let me write down what I think I understand and then
>> you can correct me if I'm wrong.
>>
>> 1.   FlexMojos uses ${flex.version} as a variable in it's pom
>> heirachy.  When I set <flex.version>blah</flex.version> in my pom I am
>> then defining it for all of flexmojos, except for where it isn't.
>> 2.  For the place where it is not defined, (i.e the compiler) then I
>> can add my own dependency to the plugin which will override that node
>> in the relevent flexmojos poms.
>>
>> 3. For new versions of Flex SDK, (starting with flex 4.6+??)  I need
>> to mavenize the sdk I am using and upload that to my repository either
>> manually, or by using the deploy script.
>>
>> 4. In addition, I need to also mavenize and upload the playerglobal
>> for the flash player version I want to use ??
>>
>> 5.  For older versions of flex which still reside on the sonotype
>> repository, I do not need to mavenize the SDK/FDK however, I need to
>> change the pom to use the correct syntax.
>>
>>
>>
>> Is this correct?  If it is, what is the correct syntax for 5?
>>
>>
>>
>> brought to you by the letters A, V, and I
>> and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 4:56 PM, [hidden email] [via Apache
>> Flex Users] <[hidden email]> wrote:
>>> Hi,
>>>
>>> one Thing I changed in FM6 and in the Mavenizer, is that the FlashPlayer
>>> is
>>> no longer directly coupled. In old FDK Versions Velo provided the
>>> player-Version was included. I wanted to have the Player loosely coupled
>>> and
>>> therefore I recall that you have to add a dependency to the playerglobal
>>> or
>>> airglobal in the Version you want to the Project. So you should Import
>>> the
>>> playerglobal in Version "${flex.target.player.version}" without any
>>> classifier and completely remove the flash.classifier variable.
>>>
>>> Chris
>>>
>>> ________________________________________
>>> Von: Frédéric THOMAS [[hidden email]]
>>> Gesendet: Dienstag, 3. September 2013 15:42
>>> An: [hidden email]
>>> Betreff: RE: AW: AW: how to setup and use maven-flex-plugin
>>>
>>> Sorry for the formatting btw, pay attention to use the right version of
>>> the
>>> flex sdk you're using, etc..
>>> I took that from an old project made for FM 3.8 Flex 4.5.0.17855
>>>
>>> It is possible you won't have the exact same dependencies for your
>>> version
>>> depending as well of what you need.
>>>
>>> -----Message d'origine-----
>>> De : Frédéric THOMAS [mailto:[hidden email]]
>>> Envoyé : mardi 3 septembre 2013 15:34
>>> À : [hidden email]
>>> Objet : RE: AW: AW: how to setup and use maven-flex-plugin
>>>
>>> Ah ok, so, I guess, either you mavenize the SDK with the mavenizer and
>>> then
>>> use this one or you add each individual dependency under the dependency
>>> tag
>>> of your module.
>>>
>>> Ex:
>>>
>>>
>>>         <flex.version>4.1.0.16076A</flex.version>
>>>         <flex.theme.version>4.5.0.18623</flex.theme.version>
>>>                 <!-- <flex.version>4.5.1.21328</flex.version> -->
>>>                 <flex.data.version>4.1.0.16076A</flex.data.version>
>>>
>>> <flex.automation.version>4.1.0.16076A</flex.automation.version>
>>>                 <flash.classifier>10.2</flash.classifier>
>>>                 <flex.sdk.classifier>en_US</flex.sdk.classifier>
>>>
>>> <flex.target.player.version>10.1.0</flex.target.player.version>
>>>
>>>                         <!-- Adobe -->
>>>             <dependency>
>>>                 <groupId>com.adobe.flex.framework</groupId>
>>>                 <artifactId>halo</artifactId>
>>>                 <classifier>theme</classifier>
>>>                 <version>${flex.theme.version}</version>
>>>                <type>swc</type>
>>>                <scope>theme</scope>
>>>            </dependency>
>>>             <dependency>
>>>                 <groupId>com.adobe.flex.framework</groupId>
>>>                 <artifactId>spark</artifactId>
>>>                 <version>${flex.theme.version}</version>
>>>                 <classifier>theme</classifier>
>>>                 <type>css</type>
>>>                 <scope>theme</scope>
>>>             </dependency>
>>>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>playerglobal</artifactId>
>>>                                 <version>${flex.version}</version>
>>>
>>> <classifier>${flash.classifier}</classifier>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>flex-framework</artifactId>
>>>                                 <version>${flex.version}</version>
>>>                                 <type>pom</type>
>>>                                 <exclusions>
>>>                                         <exclusion>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>playerglobal</artifactId>
>>>                                         </exclusion>
>>>                                         <exclusion>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>flash-integration</artifactId>
>>>                                         </exclusion>
>>>                                         <exclusion>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>utilities</artifactId>
>>>                                         </exclusion>
>>>                                 </exclusions>
>>>                         </dependency>
>>>
>>>                         <!-- Automation -->
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation_spark</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>rb.swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation_agent</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>rb.swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation_agent</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation_dmv</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>
>>>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>datavisualization</artifactId>
>>>                                 <version>${flex.data.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>datavisualization</artifactId>
>>>                                 <version>${flex.data.version}</version>
>>>                                 <!--
>>> <classifier>${flex.sdk.classifier}</classifier> -->
>>>                                 <type>rb.swc</type>
>>>                         </dependency>
>>>
>>> -----Message d'origine-----
>>> De : akessner [mailto:[hidden email]] Envoyé : mardi 3 septembre 2013
>>> 15:08
>>> À : [hidden email] Objet : Re: AW: AW: how to setup and use
>>> maven-flex-plugin
>>>
>>> Right, sorry I wasn't clear I had done that.
>>> It seems that part of the problem is that I'm only able to find 4.1sdk
>>> online to download which has an A in the version name... so whats in my
>>> local repo is actually 4.1.0.16076A
>>>
>>> So I have framework-4.1.0.16076A.pom   but I am missing and maven can
>>> not find fraemwork-4.1.0.16076.pom
>>>
>>> Why oh why do so many of our users still have flash player 10.3?  argh!
>>> brought to you by the letters A, V, and I and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex Users]
>>> <[hidden email]> wrote:
>>>
>>>> You should remove the compiler dependency from the general
>>>> dependencies of your module but keep it in the dependencies of the FM
>>>> plugin as I indicated to you before.
>>>>
>>>> -----Message d'origine-----
>>>> De : akessner [mailto:[hidden email]]
>>>> Envoyé : mardi 3 septembre 2013 14:31
>>>> À : [hidden email]
>>>> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>>>>
>>>> My bad, it actually doesn't have that pom...   I can create it
>>>> manually, but any ideas why it's missing?
>>>> brought to you by the letters A, V, and I and the number 47
>>>>
>>>>
>>>> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>>>>
>>>>> Maven is alternating between giving me the error that it can't find
>>>>> the player global and that it can't find framework:pom:...
>>>>>
>>>>> [ERROR] Failed to execute goal
>>>>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>>>>> (default-compile-swf) on project helloWorld3:
>>>>> java.lang.reflect.InvocationTargetException: Failed to resolve
>>>>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>>>>
>>>>> However, I see these things in my repository...
>>>>> brought to you by the letters A, V, and I and the number 47
>>>>>
>>>>>
>>>>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>>>>> This is sending me into an infinite loop :) I've added the compiler
>>>>>> to the dependency inside the plugin.  But now I'm getting new
>>>>>> errors.
>>>>>> brought to you by the letters A, V, and I and the number 47
>>>>>>
>>>>>>
>>>>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
>>>>>> Users] <[hidden email]> wrote:
>>>>>>> Just answered here
>>>>>>>
>>>>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use
>>>>>>> -maven-flex-plugin-td1491i20.html#a2518
>>>>>>>
>>>>>>> ________________________________
>>>>>>> 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
>>>>>>> -maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-tp1491p2525.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-tp1491p2526.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-maven-flex-plugin-tp1491p2536.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-tp1491p2543.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-maven-flex-plugin-tp1491p2544.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-tp1491p2545.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
I see special instructions for flex sdks  3.0 Moxie M2.180927 and
3.0.0.477A, 3.0.1.1732A and 3.2.0.3958A , and 4.8.0.1359417 and
instructions for AIR in general.

But not for 4.1   (I listed those in case someone does a search in the future )

Was my summary of those 5 points I wrote earlier correct?
brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 6:08 PM, christofer.dutz@c-ware.de [via Apache
Flex Users] <ml...@n4.nabble.com> wrote:
> Could you please check out the code of the mavenizer, if you haven't done
> so. I think I remember that some FDKs needed a Little tweaking. I wrote down
> most of that stuff in the text-file in the Project root. Have a look at that
> to see if there was anything Special with 4.1.0.16076A
>
> Chris
>
> ________________________________________
> Von: akessner [[hidden email]]
> Gesendet: Dienstag, 3. September 2013 16:41
> An: [hidden email]
> Betreff: Re: AW: AW: how to setup and use maven-flex-plugin
>
> Just a few things so that we are all on the same page.
>
> I mavenized skd 4.1.0.16076A and uploaded to my artifactory as well as
> copied into my .m2/repository folder.
> When I set the flex.version to 4.1.016076A I get all sorts of errors
> of it not being found/recognized etc.
>
> I also mavenized sdk 4.6.0.23201 and everything works perfectly when I
> do that.  (only problem is I'm not allowed to use 4.6 cause I have to
> target flashplayer 10.1)
>
> All of this stems from our initial question here:
> http://stackoverflow.com/questions/18505129/how-do-i-get-flexunit-flexmojos-and-mockolate-to-work-together
>
> The only requirements I have is that I get mockolate, flexunit, and
> flashplayer 10.1 all working together, and that I'm able to have it
> run in teamcity through maven :)
> brought to you by the letters A, V, and I
> and the number 47
>
>
> On Tue, Sep 3, 2013 at 5:33 PM, Avi Kessner <[hidden email]> wrote:
>
>> Thanks, my eyes must have gone blury.  You clearly described that in
>> the migrating to flexmojos 6.0 wiki page, and yet I switched them
>> around in my actual pom! D'oh!
>> However, it is still not working.  I assume the playerglobal is not
>> uploaded to the repository in the deploy script?  Both my local and
>> artifactory repositories do not have a pom file for
>> playerglobal-10.1.swc
>>
>> However, in general I feel like I'm missing some crucial bits of
>> information, so let me write down what I think I understand and then
>> you can correct me if I'm wrong.
>>
>> 1.   FlexMojos uses ${flex.version} as a variable in it's pom
>> heirachy.  When I set <flex.version>blah</flex.version> in my pom I am
>> then defining it for all of flexmojos, except for where it isn't.
>> 2.  For the place where it is not defined, (i.e the compiler) then I
>> can add my own dependency to the plugin which will override that node
>> in the relevent flexmojos poms.
>>
>> 3. For new versions of Flex SDK, (starting with flex 4.6+??)  I need
>> to mavenize the sdk I am using and upload that to my repository either
>> manually, or by using the deploy script.
>>
>> 4. In addition, I need to also mavenize and upload the playerglobal
>> for the flash player version I want to use ??
>>
>> 5.  For older versions of flex which still reside on the sonotype
>> repository, I do not need to mavenize the SDK/FDK however, I need to
>> change the pom to use the correct syntax.
>>
>>
>>
>> Is this correct?  If it is, what is the correct syntax for 5?
>>
>>
>>
>> brought to you by the letters A, V, and I
>> and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 4:56 PM, [hidden email] [via Apache
>> Flex Users] <[hidden email]> wrote:
>>> Hi,
>>>
>>> one Thing I changed in FM6 and in the Mavenizer, is that the FlashPlayer
>>> is
>>> no longer directly coupled. In old FDK Versions Velo provided the
>>> player-Version was included. I wanted to have the Player loosely coupled
>>> and
>>> therefore I recall that you have to add a dependency to the playerglobal
>>> or
>>> airglobal in the Version you want to the Project. So you should Import
>>> the
>>> playerglobal in Version "${flex.target.player.version}" without any
>>> classifier and completely remove the flash.classifier variable.
>>>
>>> Chris
>>>
>>> ________________________________________
>>> Von: Frédéric THOMAS [[hidden email]]
>>> Gesendet: Dienstag, 3. September 2013 15:42
>>> An: [hidden email]
>>> Betreff: RE: AW: AW: how to setup and use maven-flex-plugin
>>>
>>> Sorry for the formatting btw, pay attention to use the right version of
>>> the
>>> flex sdk you're using, etc..
>>> I took that from an old project made for FM 3.8 Flex 4.5.0.17855
>>>
>>> It is possible you won't have the exact same dependencies for your
>>> version
>>> depending as well of what you need.
>>>
>>> -----Message d'origine-----
>>> De : Frédéric THOMAS [mailto:[hidden email]]
>>> Envoyé : mardi 3 septembre 2013 15:34
>>> À : [hidden email]
>>> Objet : RE: AW: AW: how to setup and use maven-flex-plugin
>>>
>>> Ah ok, so, I guess, either you mavenize the SDK with the mavenizer and
>>> then
>>> use this one or you add each individual dependency under the dependency
>>> tag
>>> of your module.
>>>
>>> Ex:
>>>
>>>
>>>         <flex.version>4.1.0.16076A</flex.version>
>>>         <flex.theme.version>4.5.0.18623</flex.theme.version>
>>>                 <!-- <flex.version>4.5.1.21328</flex.version> -->
>>>                 <flex.data.version>4.1.0.16076A</flex.data.version>
>>>
>>> <flex.automation.version>4.1.0.16076A</flex.automation.version>
>>>                 <flash.classifier>10.2</flash.classifier>
>>>                 <flex.sdk.classifier>en_US</flex.sdk.classifier>
>>>
>>> <flex.target.player.version>10.1.0</flex.target.player.version>
>>>
>>>                         <!-- Adobe -->
>>>             <dependency>
>>>                 <groupId>com.adobe.flex.framework</groupId>
>>>                 <artifactId>halo</artifactId>
>>>                 <classifier>theme</classifier>
>>>                 <version>${flex.theme.version}</version>
>>>                <type>swc</type>
>>>                <scope>theme</scope>
>>>            </dependency>
>>>             <dependency>
>>>                 <groupId>com.adobe.flex.framework</groupId>
>>>                 <artifactId>spark</artifactId>
>>>                 <version>${flex.theme.version}</version>
>>>                 <classifier>theme</classifier>
>>>                 <type>css</type>
>>>                 <scope>theme</scope>
>>>             </dependency>
>>>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>playerglobal</artifactId>
>>>                                 <version>${flex.version}</version>
>>>
>>> <classifier>${flash.classifier}</classifier>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>flex-framework</artifactId>
>>>                                 <version>${flex.version}</version>
>>>                                 <type>pom</type>
>>>                                 <exclusions>
>>>                                         <exclusion>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>playerglobal</artifactId>
>>>                                         </exclusion>
>>>                                         <exclusion>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>flash-integration</artifactId>
>>>                                         </exclusion>
>>>                                         <exclusion>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>utilities</artifactId>
>>>                                         </exclusion>
>>>                                 </exclusions>
>>>                         </dependency>
>>>
>>>                         <!-- Automation -->
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation_spark</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>rb.swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation_agent</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>rb.swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation_agent</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>                                 <artifactId>automation_dmv</artifactId>
>>>
>>> <version>${flex.automation.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>
>>>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>datavisualization</artifactId>
>>>                                 <version>${flex.data.version}</version>
>>>                                 <type>swc</type>
>>>                         </dependency>
>>>
>>>                         <dependency>
>>>
>>> <groupId>com.adobe.flex.framework</groupId>
>>>
>>> <artifactId>datavisualization</artifactId>
>>>                                 <version>${flex.data.version}</version>
>>>                                 <!--
>>> <classifier>${flex.sdk.classifier}</classifier> -->
>>>                                 <type>rb.swc</type>
>>>                         </dependency>
>>>
>>> -----Message d'origine-----
>>> De : akessner [mailto:[hidden email]] Envoyé : mardi 3 septembre 2013
>>> 15:08
>>> À : [hidden email] Objet : Re: AW: AW: how to setup and use
>>> maven-flex-plugin
>>>
>>> Right, sorry I wasn't clear I had done that.
>>> It seems that part of the problem is that I'm only able to find 4.1sdk
>>> online to download which has an A in the version name... so whats in my
>>> local repo is actually 4.1.0.16076A
>>>
>>> So I have framework-4.1.0.16076A.pom   but I am missing and maven can
>>> not find fraemwork-4.1.0.16076.pom
>>>
>>> Why oh why do so many of our users still have flash player 10.3?  argh!
>>> brought to you by the letters A, V, and I and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex Users]
>>> <[hidden email]> wrote:
>>>
>>>> You should remove the compiler dependency from the general
>>>> dependencies of your module but keep it in the dependencies of the FM
>>>> plugin as I indicated to you before.
>>>>
>>>> -----Message d'origine-----
>>>> De : akessner [mailto:[hidden email]]
>>>> Envoyé : mardi 3 septembre 2013 14:31
>>>> À : [hidden email]
>>>> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>>>>
>>>> My bad, it actually doesn't have that pom...   I can create it
>>>> manually, but any ideas why it's missing?
>>>> brought to you by the letters A, V, and I and the number 47
>>>>
>>>>
>>>> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>>>>
>>>>> Maven is alternating between giving me the error that it can't find
>>>>> the player global and that it can't find framework:pom:...
>>>>>
>>>>> [ERROR] Failed to execute goal
>>>>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>>>>> (default-compile-swf) on project helloWorld3:
>>>>> java.lang.reflect.InvocationTargetException: Failed to resolve
>>>>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>>>>
>>>>> However, I see these things in my repository...
>>>>> brought to you by the letters A, V, and I and the number 47
>>>>>
>>>>>
>>>>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>>>>> This is sending me into an infinite loop :) I've added the compiler
>>>>>> to the dependency inside the plugin.  But now I'm getting new
>>>>>> errors.
>>>>>> brought to you by the letters A, V, and I and the number 47
>>>>>>
>>>>>>
>>>>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
>>>>>> Users] <[hidden email]> wrote:
>>>>>>> Just answered here
>>>>>>>
>>>>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use
>>>>>>> -maven-flex-plugin-td1491i20.html#a2518
>>>>>>>
>>>>>>> ________________________________
>>>>>>> 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
>>>>>>> -maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-tp1491p2525.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-tp1491p2526.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-maven-flex-plugin-tp1491p2536.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-tp1491p2543.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-maven-flex-plugin-tp1491p2544.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-tp1491p2545.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

AW: AW: AW: how to setup and use maven-flex-plugin

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
Could you please check out the code of the mavenizer, if you haven't done so. I think I remember that some FDKs needed a Little tweaking. I wrote down most of that stuff in the text-file in the Project root. Have a look at that to see if there was anything Special with 4.1.0.16076A

Chris

________________________________________
Von: akessner [akessner@gmail.com]
Gesendet: Dienstag, 3. September 2013 16:41
An: users@flex.apache.org
Betreff: Re: AW: AW: how to setup and use maven-flex-plugin

Just a few things so that we are all on the same page.

I mavenized skd 4.1.0.16076A and uploaded to my artifactory as well as
copied into my .m2/repository folder.
When I set the flex.version to 4.1.016076A I get all sorts of errors
of it not being found/recognized etc.

I also mavenized sdk 4.6.0.23201 and everything works perfectly when I
do that.  (only problem is I'm not allowed to use 4.6 cause I have to
target flashplayer 10.1)

All of this stems from our initial question here:
http://stackoverflow.com/questions/18505129/how-do-i-get-flexunit-flexmojos-and-mockolate-to-work-together

The only requirements I have is that I get mockolate, flexunit, and
flashplayer 10.1 all working together, and that I'm able to have it
run in teamcity through maven :)
brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 5:33 PM, Avi Kessner <ak...@gmail.com> wrote:
> Thanks, my eyes must have gone blury.  You clearly described that in
> the migrating to flexmojos 6.0 wiki page, and yet I switched them
> around in my actual pom! D'oh!
> However, it is still not working.  I assume the playerglobal is not
> uploaded to the repository in the deploy script?  Both my local and
> artifactory repositories do not have a pom file for
> playerglobal-10.1.swc
>
> However, in general I feel like I'm missing some crucial bits of
> information, so let me write down what I think I understand and then
> you can correct me if I'm wrong.
>
> 1.   FlexMojos uses ${flex.version} as a variable in it's pom
> heirachy.  When I set <flex.version>blah</flex.version> in my pom I am
> then defining it for all of flexmojos, except for where it isn't.
> 2.  For the place where it is not defined, (i.e the compiler) then I
> can add my own dependency to the plugin which will override that node
> in the relevent flexmojos poms.
>
> 3. For new versions of Flex SDK, (starting with flex 4.6+??)  I need
> to mavenize the sdk I am using and upload that to my repository either
> manually, or by using the deploy script.
>
> 4. In addition, I need to also mavenize and upload the playerglobal
> for the flash player version I want to use ??
>
> 5.  For older versions of flex which still reside on the sonotype
> repository, I do not need to mavenize the SDK/FDK however, I need to
> change the pom to use the correct syntax.
>
>
>
> Is this correct?  If it is, what is the correct syntax for 5?
>
>
>
> brought to you by the letters A, V, and I
> and the number 47
>
>
> On Tue, Sep 3, 2013 at 4:56 PM, christofer.dutz@c-ware.de [via Apache
> Flex Users] <ml...@n4.nabble.com> wrote:
>> Hi,
>>
>> one Thing I changed in FM6 and in the Mavenizer, is that the FlashPlayer is
>> no longer directly coupled. In old FDK Versions Velo provided the
>> player-Version was included. I wanted to have the Player loosely coupled and
>> therefore I recall that you have to add a dependency to the playerglobal or
>> airglobal in the Version you want to the Project. So you should Import the
>> playerglobal in Version "${flex.target.player.version}" without any
>> classifier and completely remove the flash.classifier variable.
>>
>> Chris
>>
>> ________________________________________
>> Von: Frédéric THOMAS [[hidden email]]
>> Gesendet: Dienstag, 3. September 2013 15:42
>> An: [hidden email]
>> Betreff: RE: AW: AW: how to setup and use maven-flex-plugin
>>
>> Sorry for the formatting btw, pay attention to use the right version of the
>> flex sdk you're using, etc..
>> I took that from an old project made for FM 3.8 Flex 4.5.0.17855
>>
>> It is possible you won't have the exact same dependencies for your version
>> depending as well of what you need.
>>
>> -----Message d'origine-----
>> De : Frédéric THOMAS [mailto:[hidden email]]
>> Envoyé : mardi 3 septembre 2013 15:34
>> À : [hidden email]
>> Objet : RE: AW: AW: how to setup and use maven-flex-plugin
>>
>> Ah ok, so, I guess, either you mavenize the SDK with the mavenizer and then
>> use this one or you add each individual dependency under the dependency tag
>> of your module.
>>
>> Ex:
>>
>>
>>         <flex.version>4.1.0.16076A</flex.version>
>>         <flex.theme.version>4.5.0.18623</flex.theme.version>
>>                 <!-- <flex.version>4.5.1.21328</flex.version> -->
>>                 <flex.data.version>4.1.0.16076A</flex.data.version>
>>
>> <flex.automation.version>4.1.0.16076A</flex.automation.version>
>>                 <flash.classifier>10.2</flash.classifier>
>>                 <flex.sdk.classifier>en_US</flex.sdk.classifier>
>>
>> <flex.target.player.version>10.1.0</flex.target.player.version>
>>
>>                         <!-- Adobe -->
>>             <dependency>
>>                 <groupId>com.adobe.flex.framework</groupId>
>>                 <artifactId>halo</artifactId>
>>                 <classifier>theme</classifier>
>>                 <version>${flex.theme.version}</version>
>>                <type>swc</type>
>>                <scope>theme</scope>
>>            </dependency>
>>             <dependency>
>>                 <groupId>com.adobe.flex.framework</groupId>
>>                 <artifactId>spark</artifactId>
>>                 <version>${flex.theme.version}</version>
>>                 <classifier>theme</classifier>
>>                 <type>css</type>
>>                 <scope>theme</scope>
>>             </dependency>
>>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>playerglobal</artifactId>
>>                                 <version>${flex.version}</version>
>>                                 <classifier>${flash.classifier}</classifier>
>>                                 <type>swc</type>
>>                         </dependency>
>>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>flex-framework</artifactId>
>>                                 <version>${flex.version}</version>
>>                                 <type>pom</type>
>>                                 <exclusions>
>>                                         <exclusion>
>>
>> <groupId>com.adobe.flex.framework</groupId>
>>
>> <artifactId>playerglobal</artifactId>
>>                                         </exclusion>
>>                                         <exclusion>
>>
>> <groupId>com.adobe.flex.framework</groupId>
>>
>> <artifactId>flash-integration</artifactId>
>>                                         </exclusion>
>>                                         <exclusion>
>>
>> <groupId>com.adobe.flex.framework</groupId>
>>
>> <artifactId>utilities</artifactId>
>>                                         </exclusion>
>>                                 </exclusions>
>>                         </dependency>
>>
>>                         <!-- Automation -->
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation_spark</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>rb.swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation_agent</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>rb.swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation_agent</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation_dmv</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>
>>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>datavisualization</artifactId>
>>                                 <version>${flex.data.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>datavisualization</artifactId>
>>                                 <version>${flex.data.version}</version>
>>                                 <!--
>> <classifier>${flex.sdk.classifier}</classifier> -->
>>                                 <type>rb.swc</type>
>>                         </dependency>
>>
>> -----Message d'origine-----
>> De : akessner [mailto:[hidden email]] Envoyé : mardi 3 septembre 2013 15:08
>> À : [hidden email] Objet : Re: AW: AW: how to setup and use
>> maven-flex-plugin
>>
>> Right, sorry I wasn't clear I had done that.
>> It seems that part of the problem is that I'm only able to find 4.1sdk
>> online to download which has an A in the version name... so whats in my
>> local repo is actually 4.1.0.16076A
>>
>> So I have framework-4.1.0.16076A.pom   but I am missing and maven can
>> not find fraemwork-4.1.0.16076.pom
>>
>> Why oh why do so many of our users still have flash player 10.3?  argh!
>> brought to you by the letters A, V, and I and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex Users]
>> <[hidden email]> wrote:
>>
>>> You should remove the compiler dependency from the general
>>> dependencies of your module but keep it in the dependencies of the FM
>>> plugin as I indicated to you before.
>>>
>>> -----Message d'origine-----
>>> De : akessner [mailto:[hidden email]]
>>> Envoyé : mardi 3 septembre 2013 14:31
>>> À : [hidden email]
>>> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>>>
>>> My bad, it actually doesn't have that pom...   I can create it
>>> manually, but any ideas why it's missing?
>>> brought to you by the letters A, V, and I and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>>>
>>>> Maven is alternating between giving me the error that it can't find
>>>> the player global and that it can't find framework:pom:...
>>>>
>>>> [ERROR] Failed to execute goal
>>>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>>>> (default-compile-swf) on project helloWorld3:
>>>> java.lang.reflect.InvocationTargetException: Failed to resolve
>>>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>>>
>>>> However, I see these things in my repository...
>>>> brought to you by the letters A, V, and I and the number 47
>>>>
>>>>
>>>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>>>> This is sending me into an infinite loop :) I've added the compiler
>>>>> to the dependency inside the plugin.  But now I'm getting new
>>>>> errors.
>>>>> brought to you by the letters A, V, and I and the number 47
>>>>>
>>>>>
>>>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
>>>>> Users] <[hidden email]> wrote:
>>>>>> Just answered here
>>>>>>
>>>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use
>>>>>> -maven-flex-plugin-td1491i20.html#a2518
>>>>>>
>>>>>> ________________________________
>>>>>> 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
>>>>>> -maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-tp1491p2525.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-tp1491p2526.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-maven-flex-plugin-tp1491p2536.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-tp1491p2543.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
Just a few things so that we are all on the same page.

I mavenized skd 4.1.0.16076A and uploaded to my artifactory as well as
copied into my .m2/repository folder.
When I set the flex.version to 4.1.016076A I get all sorts of errors
of it not being found/recognized etc.

I also mavenized sdk 4.6.0.23201 and everything works perfectly when I
do that.  (only problem is I'm not allowed to use 4.6 cause I have to
target flashplayer 10.1)

All of this stems from our initial question here:
http://stackoverflow.com/questions/18505129/how-do-i-get-flexunit-flexmojos-and-mockolate-to-work-together

The only requirements I have is that I get mockolate, flexunit, and
flashplayer 10.1 all working together, and that I'm able to have it
run in teamcity through maven :)
brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 5:33 PM, Avi Kessner <ak...@gmail.com> wrote:
> Thanks, my eyes must have gone blury.  You clearly described that in
> the migrating to flexmojos 6.0 wiki page, and yet I switched them
> around in my actual pom! D'oh!
> However, it is still not working.  I assume the playerglobal is not
> uploaded to the repository in the deploy script?  Both my local and
> artifactory repositories do not have a pom file for
> playerglobal-10.1.swc
>
> However, in general I feel like I'm missing some crucial bits of
> information, so let me write down what I think I understand and then
> you can correct me if I'm wrong.
>
> 1.   FlexMojos uses ${flex.version} as a variable in it's pom
> heirachy.  When I set <flex.version>blah</flex.version> in my pom I am
> then defining it for all of flexmojos, except for where it isn't.
> 2.  For the place where it is not defined, (i.e the compiler) then I
> can add my own dependency to the plugin which will override that node
> in the relevent flexmojos poms.
>
> 3. For new versions of Flex SDK, (starting with flex 4.6+??)  I need
> to mavenize the sdk I am using and upload that to my repository either
> manually, or by using the deploy script.
>
> 4. In addition, I need to also mavenize and upload the playerglobal
> for the flash player version I want to use ??
>
> 5.  For older versions of flex which still reside on the sonotype
> repository, I do not need to mavenize the SDK/FDK however, I need to
> change the pom to use the correct syntax.
>
>
>
> Is this correct?  If it is, what is the correct syntax for 5?
>
>
>
> brought to you by the letters A, V, and I
> and the number 47
>
>
> On Tue, Sep 3, 2013 at 4:56 PM, christofer.dutz@c-ware.de [via Apache
> Flex Users] <ml...@n4.nabble.com> wrote:
>> Hi,
>>
>> one Thing I changed in FM6 and in the Mavenizer, is that the FlashPlayer is
>> no longer directly coupled. In old FDK Versions Velo provided the
>> player-Version was included. I wanted to have the Player loosely coupled and
>> therefore I recall that you have to add a dependency to the playerglobal or
>> airglobal in the Version you want to the Project. So you should Import the
>> playerglobal in Version "${flex.target.player.version}" without any
>> classifier and completely remove the flash.classifier variable.
>>
>> Chris
>>
>> ________________________________________
>> Von: Frédéric THOMAS [[hidden email]]
>> Gesendet: Dienstag, 3. September 2013 15:42
>> An: [hidden email]
>> Betreff: RE: AW: AW: how to setup and use maven-flex-plugin
>>
>> Sorry for the formatting btw, pay attention to use the right version of the
>> flex sdk you're using, etc..
>> I took that from an old project made for FM 3.8 Flex 4.5.0.17855
>>
>> It is possible you won't have the exact same dependencies for your version
>> depending as well of what you need.
>>
>> -----Message d'origine-----
>> De : Frédéric THOMAS [mailto:[hidden email]]
>> Envoyé : mardi 3 septembre 2013 15:34
>> À : [hidden email]
>> Objet : RE: AW: AW: how to setup and use maven-flex-plugin
>>
>> Ah ok, so, I guess, either you mavenize the SDK with the mavenizer and then
>> use this one or you add each individual dependency under the dependency tag
>> of your module.
>>
>> Ex:
>>
>>
>>         <flex.version>4.1.0.16076A</flex.version>
>>         <flex.theme.version>4.5.0.18623</flex.theme.version>
>>                 <!-- <flex.version>4.5.1.21328</flex.version> -->
>>                 <flex.data.version>4.1.0.16076A</flex.data.version>
>>
>> <flex.automation.version>4.1.0.16076A</flex.automation.version>
>>                 <flash.classifier>10.2</flash.classifier>
>>                 <flex.sdk.classifier>en_US</flex.sdk.classifier>
>>
>> <flex.target.player.version>10.1.0</flex.target.player.version>
>>
>>                         <!-- Adobe -->
>>             <dependency>
>>                 <groupId>com.adobe.flex.framework</groupId>
>>                 <artifactId>halo</artifactId>
>>                 <classifier>theme</classifier>
>>                 <version>${flex.theme.version}</version>
>>                <type>swc</type>
>>                <scope>theme</scope>
>>            </dependency>
>>             <dependency>
>>                 <groupId>com.adobe.flex.framework</groupId>
>>                 <artifactId>spark</artifactId>
>>                 <version>${flex.theme.version}</version>
>>                 <classifier>theme</classifier>
>>                 <type>css</type>
>>                 <scope>theme</scope>
>>             </dependency>
>>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>playerglobal</artifactId>
>>                                 <version>${flex.version}</version>
>>                                 <classifier>${flash.classifier}</classifier>
>>                                 <type>swc</type>
>>                         </dependency>
>>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>flex-framework</artifactId>
>>                                 <version>${flex.version}</version>
>>                                 <type>pom</type>
>>                                 <exclusions>
>>                                         <exclusion>
>>
>> <groupId>com.adobe.flex.framework</groupId>
>>
>> <artifactId>playerglobal</artifactId>
>>                                         </exclusion>
>>                                         <exclusion>
>>
>> <groupId>com.adobe.flex.framework</groupId>
>>
>> <artifactId>flash-integration</artifactId>
>>                                         </exclusion>
>>                                         <exclusion>
>>
>> <groupId>com.adobe.flex.framework</groupId>
>>
>> <artifactId>utilities</artifactId>
>>                                         </exclusion>
>>                                 </exclusions>
>>                         </dependency>
>>
>>                         <!-- Automation -->
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation_spark</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>rb.swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation_agent</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>rb.swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation_agent</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>automation_dmv</artifactId>
>>
>> <version>${flex.automation.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>
>>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>datavisualization</artifactId>
>>                                 <version>${flex.data.version}</version>
>>                                 <type>swc</type>
>>                         </dependency>
>>
>>                         <dependency>
>>                                 <groupId>com.adobe.flex.framework</groupId>
>>                                 <artifactId>datavisualization</artifactId>
>>                                 <version>${flex.data.version}</version>
>>                                 <!--
>> <classifier>${flex.sdk.classifier}</classifier> -->
>>                                 <type>rb.swc</type>
>>                         </dependency>
>>
>> -----Message d'origine-----
>> De : akessner [mailto:[hidden email]] Envoyé : mardi 3 septembre 2013 15:08
>> À : [hidden email] Objet : Re: AW: AW: how to setup and use
>> maven-flex-plugin
>>
>> Right, sorry I wasn't clear I had done that.
>> It seems that part of the problem is that I'm only able to find 4.1sdk
>> online to download which has an A in the version name... so whats in my
>> local repo is actually 4.1.0.16076A
>>
>> So I have framework-4.1.0.16076A.pom   but I am missing and maven can
>> not find fraemwork-4.1.0.16076.pom
>>
>> Why oh why do so many of our users still have flash player 10.3?  argh!
>> brought to you by the letters A, V, and I and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex Users]
>> <[hidden email]> wrote:
>>
>>> You should remove the compiler dependency from the general
>>> dependencies of your module but keep it in the dependencies of the FM
>>> plugin as I indicated to you before.
>>>
>>> -----Message d'origine-----
>>> De : akessner [mailto:[hidden email]]
>>> Envoyé : mardi 3 septembre 2013 14:31
>>> À : [hidden email]
>>> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>>>
>>> My bad, it actually doesn't have that pom...   I can create it
>>> manually, but any ideas why it's missing?
>>> brought to you by the letters A, V, and I and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>>>
>>>> Maven is alternating between giving me the error that it can't find
>>>> the player global and that it can't find framework:pom:...
>>>>
>>>> [ERROR] Failed to execute goal
>>>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>>>> (default-compile-swf) on project helloWorld3:
>>>> java.lang.reflect.InvocationTargetException: Failed to resolve
>>>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>>>
>>>> However, I see these things in my repository...
>>>> brought to you by the letters A, V, and I and the number 47
>>>>
>>>>
>>>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>>>> This is sending me into an infinite loop :) I've added the compiler
>>>>> to the dependency inside the plugin.  But now I'm getting new
>>>>> errors.
>>>>> brought to you by the letters A, V, and I and the number 47
>>>>>
>>>>>
>>>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
>>>>> Users] <[hidden email]> wrote:
>>>>>> Just answered here
>>>>>>
>>>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use
>>>>>> -maven-flex-plugin-td1491i20.html#a2518
>>>>>>
>>>>>> ________________________________
>>>>>> 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
>>>>>> -maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-tp1491p2525.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-tp1491p2526.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-maven-flex-plugin-tp1491p2536.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-tp1491p2543.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
Thanks for reminding me that as well, I forgot, that's a long time I don't
use the old mavenized SDKs :-)

@Avi, the best way if you want to use FM6.x anyway, is to mavenize the SDKs
you want to use with.

-Fred

-----Message d'origine-----
De : christofer.dutz@c-ware.de [mailto:christofer.dutz@c-ware.de] 
Envoyé : mardi 3 septembre 2013 15:51
À : users@flex.apache.org
Objet : AW: AW: AW: how to setup and use maven-flex-plugin

Hi,

one Thing I changed in FM6 and in the Mavenizer, is that the FlashPlayer is
no longer directly coupled. In old FDK Versions Velo provided the
player-Version was included. I wanted to have the Player loosely coupled and
therefore I recall that you have to add a dependency to the playerglobal or
airglobal in the Version you want to the Project. So you should Import the
playerglobal in Version "${flex.target.player.version}" without any
classifier and completely remove the flash.classifier variable.

Chris

________________________________________
Von: Frédéric THOMAS [webdoublefx@hotmail.com]
Gesendet: Dienstag, 3. September 2013 15:42
An: users@flex.apache.org
Betreff: RE: AW: AW: how to setup and use maven-flex-plugin

Sorry for the formatting btw, pay attention to use the right version of the
flex sdk you're using, etc..
I took that from an old project made for FM 3.8 Flex 4.5.0.17855

It is possible you won't have the exact same dependencies for your version
depending as well of what you need.

-----Message d'origine-----
De : Frédéric THOMAS [mailto:webdoublefx@hotmail.com] Envoyé : mardi 3
septembre 2013 15:34 À : users@flex.apache.org Objet : RE: AW: AW: how to
setup and use maven-flex-plugin

Ah ok, so, I guess, either you mavenize the SDK with the mavenizer and then
use this one or you add each individual dependency under the dependency tag
of your module.

Ex:


        <flex.version>4.1.0.16076A</flex.version>
        <flex.theme.version>4.5.0.18623</flex.theme.version>
                <!-- <flex.version>4.5.1.21328</flex.version> -->
                <flex.data.version>4.1.0.16076A</flex.data.version>
 
<flex.automation.version>4.1.0.16076A</flex.automation.version>
                <flash.classifier>10.2</flash.classifier>
                <flex.sdk.classifier>en_US</flex.sdk.classifier>
 
<flex.target.player.version>10.1.0</flex.target.player.version>

                        <!-- Adobe -->
            <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>halo</artifactId>
                <classifier>theme</classifier>
                <version>${flex.theme.version}</version>
               <type>swc</type>
               <scope>theme</scope>
           </dependency>
            <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>spark</artifactId>
                <version>${flex.theme.version}</version>
                <classifier>theme</classifier>
                <type>css</type>
                <scope>theme</scope>
            </dependency>

                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>playerglobal</artifactId>
                                <version>${flex.version}</version>
                                <classifier>${flash.classifier}</classifier>
                                <type>swc</type>
                        </dependency>

                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>flex-framework</artifactId>
                                <version>${flex.version}</version>
                                <type>pom</type>
                                <exclusions>
                                        <exclusion>
 
<groupId>com.adobe.flex.framework</groupId>
 
<artifactId>playerglobal</artifactId>
                                        </exclusion>
                                        <exclusion>
 
<groupId>com.adobe.flex.framework</groupId>
 
<artifactId>flash-integration</artifactId>
                                        </exclusion>
                                        <exclusion>
 
<groupId>com.adobe.flex.framework</groupId>
 
<artifactId>utilities</artifactId>
                                        </exclusion>
                                </exclusions>
                        </dependency>

                        <!-- Automation -->
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation_spark</artifactId>
 
<version>${flex.automation.version}</version>
                                <type>swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation</artifactId>
 
<version>${flex.automation.version}</version>
                                <type>rb.swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation</artifactId>
 
<version>${flex.automation.version}</version>
                                <type>swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation_agent</artifactId>
 
<version>${flex.automation.version}</version>
                                <type>rb.swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation_agent</artifactId>
 
<version>${flex.automation.version}</version>
                                <type>swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation_dmv</artifactId>
 
<version>${flex.automation.version}</version>
                                <type>swc</type>
                        </dependency>


                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>datavisualization</artifactId>
                                <version>${flex.data.version}</version>
                                <type>swc</type>
                        </dependency>

                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>datavisualization</artifactId>
                                <version>${flex.data.version}</version>
                                <!--
<classifier>${flex.sdk.classifier}</classifier> -->
                                <type>rb.swc</type>
                        </dependency>

-----Message d'origine-----
De : akessner [mailto:akessner@gmail.com] Envoyé : mardi 3 septembre 2013
15:08 À : users@flex.apache.org Objet : Re: AW: AW: how to setup and use
maven-flex-plugin

Right, sorry I wasn't clear I had done that.
It seems that part of the problem is that I'm only able to find 4.1sdk
online to download which has an A in the version name... so whats in my
local repo is actually 4.1.0.16076A

So I have framework-4.1.0.16076A.pom   but I am missing and maven can
not find fraemwork-4.1.0.16076.pom

Why oh why do so many of our users still have flash player 10.3?  argh!
brought to you by the letters A, V, and I and the number 47


On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex Users]
<ml...@n4.nabble.com> wrote:
> You should remove the compiler dependency from the general 
> dependencies of your module but keep it in the dependencies of the FM 
> plugin as I indicated to you before.
>
> -----Message d'origine-----
> De : akessner [mailto:[hidden email]]
> Envoyé : mardi 3 septembre 2013 14:31
> À : [hidden email]
> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>
> My bad, it actually doesn't have that pom...   I can create it
> manually, but any ideas why it's missing?
> brought to you by the letters A, V, and I and the number 47
>
>
> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>
>> Maven is alternating between giving me the error that it can't find 
>> the player global and that it can't find framework:pom:...
>>
>> [ERROR] Failed to execute goal
>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>> (default-compile-swf) on project helloWorld3:
>> java.lang.reflect.InvocationTargetException: Failed to resolve 
>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>
>> However, I see these things in my repository...
>> brought to you by the letters A, V, and I and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>> This is sending me into an infinite loop :) I've added the compiler 
>>> to the dependency inside the plugin.  But now I'm getting new 
>>> errors.
>>> brought to you by the letters A, V, and I and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex 
>>> Users] <[hidden email]> wrote:
>>>> Just answered here
>>>>
>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use
>>>> -maven-flex-plugin-td1491i20.html#a2518
>>>>
>>>> ________________________________
>>>> 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
>>>> -maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-tp1491p2525.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-fl
ex-plugin-tp1491p2526.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
Thanks, my eyes must have gone blury.  You clearly described that in
the migrating to flexmojos 6.0 wiki page, and yet I switched them
around in my actual pom! D'oh!
However, it is still not working.  I assume the playerglobal is not
uploaded to the repository in the deploy script?  Both my local and
artifactory repositories do not have a pom file for
playerglobal-10.1.swc

However, in general I feel like I'm missing some crucial bits of
information, so let me write down what I think I understand and then
you can correct me if I'm wrong.

1.   FlexMojos uses ${flex.version} as a variable in it's pom
heirachy.  When I set <flex.version>blah</flex.version> in my pom I am
then defining it for all of flexmojos, except for where it isn't.
2.  For the place where it is not defined, (i.e the compiler) then I
can add my own dependency to the plugin which will override that node
in the relevent flexmojos poms.

3. For new versions of Flex SDK, (starting with flex 4.6+??)  I need
to mavenize the sdk I am using and upload that to my repository either
manually, or by using the deploy script.

4. In addition, I need to also mavenize and upload the playerglobal
for the flash player version I want to use ??

5.  For older versions of flex which still reside on the sonotype
repository, I do not need to mavenize the SDK/FDK however, I need to
change the pom to use the correct syntax.



Is this correct?  If it is, what is the correct syntax for 5?



brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 4:56 PM, christofer.dutz@c-ware.de [via Apache
Flex Users] <ml...@n4.nabble.com> wrote:
> Hi,
>
> one Thing I changed in FM6 and in the Mavenizer, is that the FlashPlayer is
> no longer directly coupled. In old FDK Versions Velo provided the
> player-Version was included. I wanted to have the Player loosely coupled and
> therefore I recall that you have to add a dependency to the playerglobal or
> airglobal in the Version you want to the Project. So you should Import the
> playerglobal in Version "${flex.target.player.version}" without any
> classifier and completely remove the flash.classifier variable.
>
> Chris
>
> ________________________________________
> Von: Frédéric THOMAS [[hidden email]]
> Gesendet: Dienstag, 3. September 2013 15:42
> An: [hidden email]
> Betreff: RE: AW: AW: how to setup and use maven-flex-plugin
>
> Sorry for the formatting btw, pay attention to use the right version of the
> flex sdk you're using, etc..
> I took that from an old project made for FM 3.8 Flex 4.5.0.17855
>
> It is possible you won't have the exact same dependencies for your version
> depending as well of what you need.
>
> -----Message d'origine-----
> De : Frédéric THOMAS [mailto:[hidden email]]
> Envoyé : mardi 3 septembre 2013 15:34
> À : [hidden email]
> Objet : RE: AW: AW: how to setup and use maven-flex-plugin
>
> Ah ok, so, I guess, either you mavenize the SDK with the mavenizer and then
> use this one or you add each individual dependency under the dependency tag
> of your module.
>
> Ex:
>
>
>         <flex.version>4.1.0.16076A</flex.version>
>         <flex.theme.version>4.5.0.18623</flex.theme.version>
>                 <!-- <flex.version>4.5.1.21328</flex.version> -->
>                 <flex.data.version>4.1.0.16076A</flex.data.version>
>
> <flex.automation.version>4.1.0.16076A</flex.automation.version>
>                 <flash.classifier>10.2</flash.classifier>
>                 <flex.sdk.classifier>en_US</flex.sdk.classifier>
>
> <flex.target.player.version>10.1.0</flex.target.player.version>
>
>                         <!-- Adobe -->
>             <dependency>
>                 <groupId>com.adobe.flex.framework</groupId>
>                 <artifactId>halo</artifactId>
>                 <classifier>theme</classifier>
>                 <version>${flex.theme.version}</version>
>                <type>swc</type>
>                <scope>theme</scope>
>            </dependency>
>             <dependency>
>                 <groupId>com.adobe.flex.framework</groupId>
>                 <artifactId>spark</artifactId>
>                 <version>${flex.theme.version}</version>
>                 <classifier>theme</classifier>
>                 <type>css</type>
>                 <scope>theme</scope>
>             </dependency>
>
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>playerglobal</artifactId>
>                                 <version>${flex.version}</version>
>                                 <classifier>${flash.classifier}</classifier>
>                                 <type>swc</type>
>                         </dependency>
>
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>flex-framework</artifactId>
>                                 <version>${flex.version}</version>
>                                 <type>pom</type>
>                                 <exclusions>
>                                         <exclusion>
>
> <groupId>com.adobe.flex.framework</groupId>
>
> <artifactId>playerglobal</artifactId>
>                                         </exclusion>
>                                         <exclusion>
>
> <groupId>com.adobe.flex.framework</groupId>
>
> <artifactId>flash-integration</artifactId>
>                                         </exclusion>
>                                         <exclusion>
>
> <groupId>com.adobe.flex.framework</groupId>
>
> <artifactId>utilities</artifactId>
>                                         </exclusion>
>                                 </exclusions>
>                         </dependency>
>
>                         <!-- Automation -->
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>automation_spark</artifactId>
>
> <version>${flex.automation.version}</version>
>                                 <type>swc</type>
>                         </dependency>
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>automation</artifactId>
>
> <version>${flex.automation.version}</version>
>                                 <type>rb.swc</type>
>                         </dependency>
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>automation</artifactId>
>
> <version>${flex.automation.version}</version>
>                                 <type>swc</type>
>                         </dependency>
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>automation_agent</artifactId>
>
> <version>${flex.automation.version}</version>
>                                 <type>rb.swc</type>
>                         </dependency>
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>automation_agent</artifactId>
>
> <version>${flex.automation.version}</version>
>                                 <type>swc</type>
>                         </dependency>
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>automation_dmv</artifactId>
>
> <version>${flex.automation.version}</version>
>                                 <type>swc</type>
>                         </dependency>
>
>
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>datavisualization</artifactId>
>                                 <version>${flex.data.version}</version>
>                                 <type>swc</type>
>                         </dependency>
>
>                         <dependency>
>                                 <groupId>com.adobe.flex.framework</groupId>
>                                 <artifactId>datavisualization</artifactId>
>                                 <version>${flex.data.version}</version>
>                                 <!--
> <classifier>${flex.sdk.classifier}</classifier> -->
>                                 <type>rb.swc</type>
>                         </dependency>
>
> -----Message d'origine-----
> De : akessner [mailto:[hidden email]] Envoyé : mardi 3 septembre 2013 15:08
> À : [hidden email] Objet : Re: AW: AW: how to setup and use
> maven-flex-plugin
>
> Right, sorry I wasn't clear I had done that.
> It seems that part of the problem is that I'm only able to find 4.1sdk
> online to download which has an A in the version name... so whats in my
> local repo is actually 4.1.0.16076A
>
> So I have framework-4.1.0.16076A.pom   but I am missing and maven can
> not find fraemwork-4.1.0.16076.pom
>
> Why oh why do so many of our users still have flash player 10.3?  argh!
> brought to you by the letters A, V, and I and the number 47
>
>
> On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex Users]
> <[hidden email]> wrote:
>
>> You should remove the compiler dependency from the general
>> dependencies of your module but keep it in the dependencies of the FM
>> plugin as I indicated to you before.
>>
>> -----Message d'origine-----
>> De : akessner [mailto:[hidden email]]
>> Envoyé : mardi 3 septembre 2013 14:31
>> À : [hidden email]
>> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>>
>> My bad, it actually doesn't have that pom...   I can create it
>> manually, but any ideas why it's missing?
>> brought to you by the letters A, V, and I and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>>
>>> Maven is alternating between giving me the error that it can't find
>>> the player global and that it can't find framework:pom:...
>>>
>>> [ERROR] Failed to execute goal
>>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>>> (default-compile-swf) on project helloWorld3:
>>> java.lang.reflect.InvocationTargetException: Failed to resolve
>>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>>
>>> However, I see these things in my repository...
>>> brought to you by the letters A, V, and I and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>>> This is sending me into an infinite loop :) I've added the compiler
>>>> to the dependency inside the plugin.  But now I'm getting new
>>>> errors.
>>>> brought to you by the letters A, V, and I and the number 47
>>>>
>>>>
>>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
>>>> Users] <[hidden email]> wrote:
>>>>> Just answered here
>>>>>
>>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use
>>>>> -maven-flex-plugin-td1491i20.html#a2518
>>>>>
>>>>> ________________________________
>>>>> 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
>>>>> -maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-tp1491p2525.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-tp1491p2526.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-maven-flex-plugin-tp1491p2536.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-tp1491p2542.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

AW: AW: AW: how to setup and use maven-flex-plugin

Posted by "christofer.dutz@c-ware.de" <ch...@c-ware.de>.
Hi,

one Thing I changed in FM6 and in the Mavenizer, is that the FlashPlayer is no longer directly coupled. In old FDK Versions Velo provided the player-Version was included. I wanted to have the Player loosely coupled and therefore I recall that you have to add a dependency to the playerglobal or airglobal in the Version you want to the Project. So you should Import the playerglobal in Version "${flex.target.player.version}" without any classifier and completely remove the flash.classifier variable.

Chris

________________________________________
Von: Frédéric THOMAS [webdoublefx@hotmail.com]
Gesendet: Dienstag, 3. September 2013 15:42
An: users@flex.apache.org
Betreff: RE: AW: AW: how to setup and use maven-flex-plugin

Sorry for the formatting btw, pay attention to use the right version of the flex sdk you're using, etc..
I took that from an old project made for FM 3.8 Flex 4.5.0.17855

It is possible you won't have the exact same dependencies for your version depending as well of what you need.

-----Message d'origine-----
De : Frédéric THOMAS [mailto:webdoublefx@hotmail.com]
Envoyé : mardi 3 septembre 2013 15:34
À : users@flex.apache.org
Objet : RE: AW: AW: how to setup and use maven-flex-plugin

Ah ok, so, I guess, either you mavenize the SDK with the mavenizer and then use this one or you add each individual dependency under the dependency tag of your module.

Ex:


        <flex.version>4.1.0.16076A</flex.version>
        <flex.theme.version>4.5.0.18623</flex.theme.version>
                <!-- <flex.version>4.5.1.21328</flex.version> -->
                <flex.data.version>4.1.0.16076A</flex.data.version>
                <flex.automation.version>4.1.0.16076A</flex.automation.version>
                <flash.classifier>10.2</flash.classifier>
                <flex.sdk.classifier>en_US</flex.sdk.classifier>
                <flex.target.player.version>10.1.0</flex.target.player.version>

                        <!-- Adobe -->
            <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>halo</artifactId>
                <classifier>theme</classifier>
                <version>${flex.theme.version}</version>
               <type>swc</type>
               <scope>theme</scope>
           </dependency>
            <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>spark</artifactId>
                <version>${flex.theme.version}</version>
                <classifier>theme</classifier>
                <type>css</type>
                <scope>theme</scope>
            </dependency>

                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>playerglobal</artifactId>
                                <version>${flex.version}</version>
                                <classifier>${flash.classifier}</classifier>
                                <type>swc</type>
                        </dependency>

                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>flex-framework</artifactId>
                                <version>${flex.version}</version>
                                <type>pom</type>
                                <exclusions>
                                        <exclusion>
                                                <groupId>com.adobe.flex.framework</groupId>
                                                <artifactId>playerglobal</artifactId>
                                        </exclusion>
                                        <exclusion>
                                                <groupId>com.adobe.flex.framework</groupId>
                                                <artifactId>flash-integration</artifactId>
                                        </exclusion>
                                        <exclusion>
                                                <groupId>com.adobe.flex.framework</groupId>
                                                <artifactId>utilities</artifactId>
                                        </exclusion>
                                </exclusions>
                        </dependency>

                        <!-- Automation -->
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation_spark</artifactId>
                                <version>${flex.automation.version}</version>
                                <type>swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation</artifactId>
                                <version>${flex.automation.version}</version>
                                <type>rb.swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation</artifactId>
                                <version>${flex.automation.version}</version>
                                <type>swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation_agent</artifactId>
                                <version>${flex.automation.version}</version>
                                <type>rb.swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation_agent</artifactId>
                                <version>${flex.automation.version}</version>
                                <type>swc</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>automation_dmv</artifactId>
                                <version>${flex.automation.version}</version>
                                <type>swc</type>
                        </dependency>


                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>datavisualization</artifactId>
                                <version>${flex.data.version}</version>
                                <type>swc</type>
                        </dependency>

                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>datavisualization</artifactId>
                                <version>${flex.data.version}</version>
                                <!-- <classifier>${flex.sdk.classifier}</classifier> -->
                                <type>rb.swc</type>
                        </dependency>

-----Message d'origine-----
De : akessner [mailto:akessner@gmail.com] Envoyé : mardi 3 septembre 2013 15:08 À : users@flex.apache.org Objet : Re: AW: AW: how to setup and use maven-flex-plugin

Right, sorry I wasn't clear I had done that.
It seems that part of the problem is that I'm only able to find 4.1sdk online to download which has an A in the version name... so whats in my local repo is actually 4.1.0.16076A

So I have framework-4.1.0.16076A.pom   but I am missing and maven can
not find fraemwork-4.1.0.16076.pom

Why oh why do so many of our users still have flash player 10.3?  argh!
brought to you by the letters A, V, and I and the number 47


On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex Users] <ml...@n4.nabble.com> wrote:
> You should remove the compiler dependency from the general
> dependencies of your module but keep it in the dependencies of the FM
> plugin as I indicated to you before.
>
> -----Message d'origine-----
> De : akessner [mailto:[hidden email]]
> Envoyé : mardi 3 septembre 2013 14:31
> À : [hidden email]
> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>
> My bad, it actually doesn't have that pom...   I can create it
> manually, but any ideas why it's missing?
> brought to you by the letters A, V, and I and the number 47
>
>
> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>
>> Maven is alternating between giving me the error that it can't find
>> the player global and that it can't find framework:pom:...
>>
>> [ERROR] Failed to execute goal
>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>> (default-compile-swf) on project helloWorld3:
>> java.lang.reflect.InvocationTargetException: Failed to resolve
>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>
>> However, I see these things in my repository...
>> brought to you by the letters A, V, and I and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>> This is sending me into an infinite loop :) I've added the compiler
>>> to the dependency inside the plugin.  But now I'm getting new
>>> errors.
>>> brought to you by the letters A, V, and I and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
>>> Users] <[hidden email]> wrote:
>>>> Just answered here
>>>>
>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use
>>>> -maven-flex-plugin-td1491i20.html#a2518
>>>>
>>>> ________________________________
>>>> 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
>>>> -maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-tp1491p2525.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-tp1491p2526.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
Sorry for the formatting btw, pay attention to use the right version of the flex sdk you're using, etc..
I took that from an old project made for FM 3.8 Flex 4.5.0.17855

It is possible you won't have the exact same dependencies for your version depending as well of what you need.

-----Message d'origine-----
De : Frédéric THOMAS [mailto:webdoublefx@hotmail.com] 
Envoyé : mardi 3 septembre 2013 15:34
À : users@flex.apache.org
Objet : RE: AW: AW: how to setup and use maven-flex-plugin

Ah ok, so, I guess, either you mavenize the SDK with the mavenizer and then use this one or you add each individual dependency under the dependency tag of your module.

Ex:


        <flex.version>4.1.0.16076A</flex.version>
        <flex.theme.version>4.5.0.18623</flex.theme.version>
		<!-- <flex.version>4.5.1.21328</flex.version> -->
		<flex.data.version>4.1.0.16076A</flex.data.version>
		<flex.automation.version>4.1.0.16076A</flex.automation.version>
		<flash.classifier>10.2</flash.classifier>
		<flex.sdk.classifier>en_US</flex.sdk.classifier>
		<flex.target.player.version>10.1.0</flex.target.player.version>

			<!-- Adobe -->
            <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>halo</artifactId>
                <classifier>theme</classifier>
                <version>${flex.theme.version}</version>
               <type>swc</type>
               <scope>theme</scope>
           </dependency>
            <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>spark</artifactId>
                <version>${flex.theme.version}</version>
                <classifier>theme</classifier>
                <type>css</type>
                <scope>theme</scope>
            </dependency>

			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>playerglobal</artifactId>
				<version>${flex.version}</version>
				<classifier>${flash.classifier}</classifier>
				<type>swc</type>
			</dependency>

			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>flex-framework</artifactId>
				<version>${flex.version}</version>
				<type>pom</type>
				<exclusions>
					<exclusion>
						<groupId>com.adobe.flex.framework</groupId>
						<artifactId>playerglobal</artifactId>
					</exclusion>
					<exclusion>
						<groupId>com.adobe.flex.framework</groupId>
						<artifactId>flash-integration</artifactId>
					</exclusion>
					<exclusion>
						<groupId>com.adobe.flex.framework</groupId>
						<artifactId>utilities</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			
			<!-- Automation -->
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation_spark</artifactId>
				<version>${flex.automation.version}</version>
				<type>swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation</artifactId>
				<version>${flex.automation.version}</version>
				<type>rb.swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation</artifactId>
				<version>${flex.automation.version}</version>
				<type>swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation_agent</artifactId>
				<version>${flex.automation.version}</version>
				<type>rb.swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation_agent</artifactId>
				<version>${flex.automation.version}</version>
				<type>swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation_dmv</artifactId>
				<version>${flex.automation.version}</version>
				<type>swc</type>
			</dependency>


			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>datavisualization</artifactId>
				<version>${flex.data.version}</version>
				<type>swc</type>
			</dependency>
		
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>datavisualization</artifactId>
				<version>${flex.data.version}</version>
				<!-- <classifier>${flex.sdk.classifier}</classifier> -->
				<type>rb.swc</type>
			</dependency>

-----Message d'origine-----
De : akessner [mailto:akessner@gmail.com] Envoyé : mardi 3 septembre 2013 15:08 À : users@flex.apache.org Objet : Re: AW: AW: how to setup and use maven-flex-plugin

Right, sorry I wasn't clear I had done that.
It seems that part of the problem is that I'm only able to find 4.1sdk online to download which has an A in the version name... so whats in my local repo is actually 4.1.0.16076A

So I have framework-4.1.0.16076A.pom   but I am missing and maven can
not find fraemwork-4.1.0.16076.pom

Why oh why do so many of our users still have flash player 10.3?  argh!
brought to you by the letters A, V, and I and the number 47


On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex Users] <ml...@n4.nabble.com> wrote:
> You should remove the compiler dependency from the general 
> dependencies of your module but keep it in the dependencies of the FM 
> plugin as I indicated to you before.
>
> -----Message d'origine-----
> De : akessner [mailto:[hidden email]]
> Envoyé : mardi 3 septembre 2013 14:31
> À : [hidden email]
> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>
> My bad, it actually doesn't have that pom...   I can create it
> manually, but any ideas why it's missing?
> brought to you by the letters A, V, and I and the number 47
>
>
> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>
>> Maven is alternating between giving me the error that it can't find 
>> the player global and that it can't find framework:pom:...
>>
>> [ERROR] Failed to execute goal
>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>> (default-compile-swf) on project helloWorld3:
>> java.lang.reflect.InvocationTargetException: Failed to resolve 
>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>
>> However, I see these things in my repository...
>> brought to you by the letters A, V, and I and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>> This is sending me into an infinite loop :) I've added the compiler 
>>> to the dependency inside the plugin.  But now I'm getting new 
>>> errors.
>>> brought to you by the letters A, V, and I and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex 
>>> Users] <[hidden email]> wrote:
>>>> Just answered here
>>>>
>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use
>>>> -maven-flex-plugin-td1491i20.html#a2518
>>>>
>>>> ________________________________
>>>> 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
>>>> -maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-tp1491p2525.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-tp1491p2526.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
Ah ok, so, I guess, either you mavenize the SDK with the mavenizer and then use this one or you add each individual dependency under the dependency tag of your module.

Ex:


        <flex.version>4.1.0.16076A</flex.version>
        <flex.theme.version>4.5.0.18623</flex.theme.version>
		<!-- <flex.version>4.5.1.21328</flex.version> -->
		<flex.data.version>4.1.0.16076A</flex.data.version>
		<flex.automation.version>4.1.0.16076A</flex.automation.version>
		<flash.classifier>10.2</flash.classifier>
		<flex.sdk.classifier>en_US</flex.sdk.classifier>
		<flex.target.player.version>10.1.0</flex.target.player.version>

			<!-- Adobe -->
            <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>halo</artifactId>
                <classifier>theme</classifier>
                <version>${flex.theme.version}</version>
               <type>swc</type>
               <scope>theme</scope>
           </dependency>
            <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>spark</artifactId>
                <version>${flex.theme.version}</version>
                <classifier>theme</classifier>
                <type>css</type>
                <scope>theme</scope>
            </dependency>

			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>playerglobal</artifactId>
				<version>${flex.version}</version>
				<classifier>${flash.classifier}</classifier>
				<type>swc</type>
			</dependency>

			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>flex-framework</artifactId>
				<version>${flex.version}</version>
				<type>pom</type>
				<exclusions>
					<exclusion>
						<groupId>com.adobe.flex.framework</groupId>
						<artifactId>playerglobal</artifactId>
					</exclusion>
					<exclusion>
						<groupId>com.adobe.flex.framework</groupId>
						<artifactId>flash-integration</artifactId>
					</exclusion>
					<exclusion>
						<groupId>com.adobe.flex.framework</groupId>
						<artifactId>utilities</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			
			<!-- Automation -->
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation_spark</artifactId>
				<version>${flex.automation.version}</version>
				<type>swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation</artifactId>
				<version>${flex.automation.version}</version>
				<type>rb.swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation</artifactId>
				<version>${flex.automation.version}</version>
				<type>swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation_agent</artifactId>
				<version>${flex.automation.version}</version>
				<type>rb.swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation_agent</artifactId>
				<version>${flex.automation.version}</version>
				<type>swc</type>
			</dependency>
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>automation_dmv</artifactId>
				<version>${flex.automation.version}</version>
				<type>swc</type>
			</dependency>


			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>datavisualization</artifactId>
				<version>${flex.data.version}</version>
				<type>swc</type>
			</dependency>
		
			<dependency>
				<groupId>com.adobe.flex.framework</groupId>
				<artifactId>datavisualization</artifactId>
				<version>${flex.data.version}</version>
				<!-- <classifier>${flex.sdk.classifier}</classifier> -->
				<type>rb.swc</type>
			</dependency>

-----Message d'origine-----
De : akessner [mailto:akessner@gmail.com] 
Envoyé : mardi 3 septembre 2013 15:08
À : users@flex.apache.org
Objet : Re: AW: AW: how to setup and use maven-flex-plugin

Right, sorry I wasn't clear I had done that.
It seems that part of the problem is that I'm only able to find 4.1sdk online to download which has an A in the version name... so whats in my local repo is actually 4.1.0.16076A

So I have framework-4.1.0.16076A.pom   but I am missing and maven can
not find fraemwork-4.1.0.16076.pom

Why oh why do so many of our users still have flash player 10.3?  argh!
brought to you by the letters A, V, and I and the number 47


On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex Users] <ml...@n4.nabble.com> wrote:
> You should remove the compiler dependency from the general 
> dependencies of your module but keep it in the dependencies of the FM 
> plugin as I indicated to you before.
>
> -----Message d'origine-----
> De : akessner [mailto:[hidden email]]
> Envoyé : mardi 3 septembre 2013 14:31
> À : [hidden email]
> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>
> My bad, it actually doesn't have that pom...   I can create it
> manually, but any ideas why it's missing?
> brought to you by the letters A, V, and I and the number 47
>
>
> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>
>> Maven is alternating between giving me the error that it can't find 
>> the player global and that it can't find framework:pom:...
>>
>> [ERROR] Failed to execute goal
>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>> (default-compile-swf) on project helloWorld3:
>> java.lang.reflect.InvocationTargetException: Failed to resolve 
>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>
>> However, I see these things in my repository...
>> brought to you by the letters A, V, and I and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>> This is sending me into an infinite loop :) I've added the compiler 
>>> to the dependency inside the plugin.  But now I'm getting new 
>>> errors.
>>> brought to you by the letters A, V, and I and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex 
>>> Users] <[hidden email]> wrote:
>>>> Just answered here
>>>>
>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use
>>>> -maven-flex-plugin-td1491i20.html#a2518
>>>>
>>>> ________________________________
>>>> 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
>>>> -maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-tp1491p2525.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-tp1491p2526.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: R: Improve spark List performance

Posted by Alex Harui <ah...@adobe.com>.

On 9/3/13 7:18 AM, "Evyatar Ben Halevi-Arbib" <ev...@gmail.com> wrote:

>Hey,
>
>One more thing I suggest is having the buttons click event listener
>defined
>with weak reference -
> button.addEventListener(MouseEvent.CLICK,
>handleMouseClick*,false,0,true*);
I haven't looked at the code, but why?  Weak references can cause
intermittent behavior.  And these days, for future-proofing, it is best to
avoid them so you code will more easily port to JS if you need to do that
someday.

-Alex



Re: R: Improve spark List performance

Posted by Evyatar Ben Halevi-Arbib <ev...@gmail.com>.
Hey,

One more thing I suggest is having the buttons click event listener defined
with weak reference -
 button.addEventListener(MouseEvent.CLICK, handleMouseClick*,false,0,true*);

Regards,
Evyatar


On Tue, Sep 3, 2013 at 4:46 PM, Angelo Lazzari <la...@gmail.com>wrote:

> Hi,
> this should be a good starting point to tuning your item render:
>
>
> http://solu-pedia.com/2013/04/10/apache-flex-mobile-app-performance-tuning-articles/
>
> Cheers
> Angelo
>
> www.redtulp.com
>
>
>
> 2013/9/3 Peter Ent <pe...@adobe.com>
>
> > Each time the itemRenderer's data is set, you are wiping out all of the
> > button in the TileGroup and re-creating them. That's a source of your
> slow
> > scrolling performance.
> >
> > As nice-and-easy as your approach is, it is better to add some more code
> > complexity and re-use those buttons.
> >
> > Here's one example: you could, for each itemRenderer, have a cache of
> > previously created buttons, which would be empty the first time the
> > itemRenderer was used. If you need 10 buttons but have less than 10
> (e.g.,
> > 0 the first time), "use" the buttons (explained below) you have
> previously
> > created and create the remaining, being sure to also put references to
> > them into your cache.
> >
> > If you have more buttons in your cache than you need, "use" the amount
> you
> > need and "deactivate" the ones you don't. That is, if you have 20 buttons
> > in the cache but only need 8, you'll deactivate the remaining 12.
> >
> > So "use" means to set a button's visible and includeInLayout properties
> to
> > true. "Deactivate" means to set a button's visible and includeInLayout
> > properties to false.
> >
> > I think an approach like this would have better performance for you. If
> > you can avoid setting includeInLayout, it will be even better since all
> > you will be doing is hiding/showing the buttons, but the itemRenederers
> > might not look right if you also don't remove them from the layout.
> >
> > Peter Ent
> > Flex SDK Team
> > Adobe Systems
> >
> > On 9/3/13 9:29 AM, "Federico De Maddalena" <f....@patente.it>
> > wrote:
> >
> > >Hi Ben
> > >I'm developing a mobile project, not desktop!
> > >Images in use are very small.
> > >Usevirtuallayout is set on true.
> > >The code is here:
> > >
> > >       <fx:Script>
> > >               <![CDATA[
> > >                       import spark.components.Button;
> > >                       import spark.core.ContentCache;
> > >
> > >                       import events.SchedaEvent;
> > >
> > >                       static public const s_imageCache:ContentCache=new
> > ContentCache();
> > >
> > >                       override public function set
> > data(value:Object):void
> > >                       {
> > >                               super.data=value;
> > >                               lezione.text=value.titolo;
> > >
> > img.source="img/lez/"+value.lezione+"g.png";
> > >
> > >                               schede.removeAllElements();
> > >                               for(var i:int=0; i<value.schede.length;
> > i++)
> > >                               {
> > >                                       var button:Button=new Button();
> > >                                       button.label=String(i+1);
> > >                                       button.id=value.schede[i];
> > >                                       button.height=40;
> > >                                       button.width=40;
> > >
> > button.addEventListener(MouseEvent.CLICK, handleMouseClick);
> > >                                       schede.addElement(button);
> > >                               }
> > >                       }
> > >
> > >                       private function
> > handleMouseClick(event:MouseEvent):void
> > >                       {
> > >                               sendEvent(parseInt(
> event.currentTarget.id
> > ));
> > >                       }
> > >
> > >                       private function sendEvent(id:int):void
> > >                       {
> > >                               var e:SchedaEvent=new
> > SchedaEvent(SchedaEvent.LOAD_SCHEDA);
> > >                               e.Id=id;
> > >
> > >                               this.owner.dispatchEvent(e);
> > >                       }
> > >               ]]>
> > >       </fx:Script>
> > >
> > >       <s:HGroup width="100%" height="100%" paddingTop="3">
> > >               <s:VGroup height="100%" width="20%" verticalAlign="top"
> > >horizontalAlign="center">
> > >                       <s:Image width="80%" height="80%" id="img"
> > >contentLoader="{s_imageCache}"/>
> > >               </s:VGroup>
> > >               <s:VGroup height="100%" width="70%">
> > >                       <s:Label width="100%" height="20%" id="lezione"/>
> > >                       <s:TileGroup width="100%" height="80%"
> > id="schede"/>
> > >               </s:VGroup>
> > >
> > >       </s:HGroup>
> > >
> > >-----Messaggio originale-----
> > >Da: Ben Smeets [mailto:ben@okapion.com]
> > >Inviato: martedì 3 settembre 2013 15.22
> > >A: users@flex.apache.org
> > >Oggetto: Re: Improve spark List performance
> > >
> > >How many rows in the list? (i.c.w. useVirtualLayout)
> > >
> > >The setup you mention shouldn't be a problem I think (unless the image
> > >you talk about is 200MB a pop), but depends on the implementation
> > >(details). E.g., if the buttons are created every scroll, instead of
> > >reused, that might be a cause.
> > >
> > >Any code you can share, can help (me at least) to track down the
> culprit.
> > >
> > >Not a guru here though, so maybe others will know off the top of their
> > >heads :)
> > >
> > >Ben
> > >
> > >P.S. We are talking desktop app here right? Mobile is a different beast
> > >all together (for me).
> > >
> > >
> > >
> > >On 3 sep. 2013, at 15:16, Federico De Maddalena
> > ><f....@patente.it> wrote:
> > >
> > >> Hi! I'm working on a mobile project.
> > >> I created a spark List, which item renderer is an extension of
> > >> ItemRenderer. Each of my item renderer contains one spark Image, one
> > >> Label and a number of small buttons which varies from 3 to 20.
> > >> Now, scrolling the list is terribly slow. There are ways to improve
> > >> scroll speed? I spent a lot of time but without success.
> > >> Regards
> > >> federico
> > >>
> > >
> >
> >
>
>
> --
> Angelo Lazzari
> mobile: 0039 347 0090 452
> mail: lazzari.angelo@gmail.com
>
>
> ----------------------------
> Verificate la corrispondenza del destinatario; in caso contrario vogliate
> notificare ciò al mittente e, consci della responsabilita'per l'uso
> indebito, cancellare il messaggio e sue copie / Verify the correspondence
> of the addressee; otherwise, notify that to the sender and, conscious of
> the responsibility for the undue use, destroy the message and its copies.
> ----------------------------
>

Re: R: Improve spark List performance

Posted by Angelo Lazzari <la...@gmail.com>.
Hi,
this should be a good starting point to tuning your item render:

http://solu-pedia.com/2013/04/10/apache-flex-mobile-app-performance-tuning-articles/

Cheers
Angelo

www.redtulp.com



2013/9/3 Peter Ent <pe...@adobe.com>

> Each time the itemRenderer's data is set, you are wiping out all of the
> button in the TileGroup and re-creating them. That's a source of your slow
> scrolling performance.
>
> As nice-and-easy as your approach is, it is better to add some more code
> complexity and re-use those buttons.
>
> Here's one example: you could, for each itemRenderer, have a cache of
> previously created buttons, which would be empty the first time the
> itemRenderer was used. If you need 10 buttons but have less than 10 (e.g.,
> 0 the first time), "use" the buttons (explained below) you have previously
> created and create the remaining, being sure to also put references to
> them into your cache.
>
> If you have more buttons in your cache than you need, "use" the amount you
> need and "deactivate" the ones you don't. That is, if you have 20 buttons
> in the cache but only need 8, you'll deactivate the remaining 12.
>
> So "use" means to set a button's visible and includeInLayout properties to
> true. "Deactivate" means to set a button's visible and includeInLayout
> properties to false.
>
> I think an approach like this would have better performance for you. If
> you can avoid setting includeInLayout, it will be even better since all
> you will be doing is hiding/showing the buttons, but the itemRenederers
> might not look right if you also don't remove them from the layout.
>
> Peter Ent
> Flex SDK Team
> Adobe Systems
>
> On 9/3/13 9:29 AM, "Federico De Maddalena" <f....@patente.it>
> wrote:
>
> >Hi Ben
> >I'm developing a mobile project, not desktop!
> >Images in use are very small.
> >Usevirtuallayout is set on true.
> >The code is here:
> >
> >       <fx:Script>
> >               <![CDATA[
> >                       import spark.components.Button;
> >                       import spark.core.ContentCache;
> >
> >                       import events.SchedaEvent;
> >
> >                       static public const s_imageCache:ContentCache=new
> ContentCache();
> >
> >                       override public function set
> data(value:Object):void
> >                       {
> >                               super.data=value;
> >                               lezione.text=value.titolo;
> >
> img.source="img/lez/"+value.lezione+"g.png";
> >
> >                               schede.removeAllElements();
> >                               for(var i:int=0; i<value.schede.length;
> i++)
> >                               {
> >                                       var button:Button=new Button();
> >                                       button.label=String(i+1);
> >                                       button.id=value.schede[i];
> >                                       button.height=40;
> >                                       button.width=40;
> >
> button.addEventListener(MouseEvent.CLICK, handleMouseClick);
> >                                       schede.addElement(button);
> >                               }
> >                       }
> >
> >                       private function
> handleMouseClick(event:MouseEvent):void
> >                       {
> >                               sendEvent(parseInt(event.currentTarget.id
> ));
> >                       }
> >
> >                       private function sendEvent(id:int):void
> >                       {
> >                               var e:SchedaEvent=new
> SchedaEvent(SchedaEvent.LOAD_SCHEDA);
> >                               e.Id=id;
> >
> >                               this.owner.dispatchEvent(e);
> >                       }
> >               ]]>
> >       </fx:Script>
> >
> >       <s:HGroup width="100%" height="100%" paddingTop="3">
> >               <s:VGroup height="100%" width="20%" verticalAlign="top"
> >horizontalAlign="center">
> >                       <s:Image width="80%" height="80%" id="img"
> >contentLoader="{s_imageCache}"/>
> >               </s:VGroup>
> >               <s:VGroup height="100%" width="70%">
> >                       <s:Label width="100%" height="20%" id="lezione"/>
> >                       <s:TileGroup width="100%" height="80%"
> id="schede"/>
> >               </s:VGroup>
> >
> >       </s:HGroup>
> >
> >-----Messaggio originale-----
> >Da: Ben Smeets [mailto:ben@okapion.com]
> >Inviato: martedì 3 settembre 2013 15.22
> >A: users@flex.apache.org
> >Oggetto: Re: Improve spark List performance
> >
> >How many rows in the list? (i.c.w. useVirtualLayout)
> >
> >The setup you mention shouldn't be a problem I think (unless the image
> >you talk about is 200MB a pop), but depends on the implementation
> >(details). E.g., if the buttons are created every scroll, instead of
> >reused, that might be a cause.
> >
> >Any code you can share, can help (me at least) to track down the culprit.
> >
> >Not a guru here though, so maybe others will know off the top of their
> >heads :)
> >
> >Ben
> >
> >P.S. We are talking desktop app here right? Mobile is a different beast
> >all together (for me).
> >
> >
> >
> >On 3 sep. 2013, at 15:16, Federico De Maddalena
> ><f....@patente.it> wrote:
> >
> >> Hi! I'm working on a mobile project.
> >> I created a spark List, which item renderer is an extension of
> >> ItemRenderer. Each of my item renderer contains one spark Image, one
> >> Label and a number of small buttons which varies from 3 to 20.
> >> Now, scrolling the list is terribly slow. There are ways to improve
> >> scroll speed? I spent a lot of time but without success.
> >> Regards
> >> federico
> >>
> >
>
>


-- 
Angelo Lazzari
mobile: 0039 347 0090 452
mail: lazzari.angelo@gmail.com


----------------------------
Verificate la corrispondenza del destinatario; in caso contrario vogliate
notificare ciò al mittente e, consci della responsabilita'per l'uso
indebito, cancellare il messaggio e sue copie / Verify the correspondence
of the addressee; otherwise, notify that to the sender and, conscious of
the responsibility for the undue use, destroy the message and its copies.
----------------------------

Re: Improve spark List performance

Posted by Ben Smeets <be...@okapion.com>.
Ok, than it's a challenge for me as well :) (take that into account when measuring the value of my answer :) ).

The biggest problem i see from the get-go, is this one.

override public function set data(value:Object):void
{
...
				schede.removeAllElements();
				for(var i:int=0; i<value.schede.length; i++)
				{
					var button:Button=new Button();
					button.label=String(i+1);
					button.id=value.schede[i];
					button.height=40;
					button.width=40;
					button.addEventListener(MouseEvent.CLICK, handleMouseClick);
					schede.addElement(button);
				}	
			}

This means that everytime you (re)set the data, all buttons need to be created again. I think your best bet is to move that to commitProperties and instead of creating and removing, set them hidden/not included in layout.

My 0,02

Ben

On 3 sep. 2013, at 15:29, "Federico De Maddalena" <f....@patente.it> wrote:

> Hi Ben
> I'm developing a mobile project, not desktop!
> Images in use are very small.
> Usevirtuallayout is set on true.
> The code is here: 
> 
> 	<fx:Script>
> 		<![CDATA[
> 			import spark.components.Button;
> 			import spark.core.ContentCache;
> 			
> 			import events.SchedaEvent;
> 			
> 			static public const s_imageCache:ContentCache=new ContentCache();
> 			
> 			override public function set data(value:Object):void
> 			{
> 				super.data=value;
> 				lezione.text=value.titolo;
> 				img.source="img/lez/"+value.lezione+"g.png";
> 					
> 				schede.removeAllElements();
> 				for(var i:int=0; i<value.schede.length; i++)
> 				{
> 					var button:Button=new Button();
> 					button.label=String(i+1);
> 					button.id=value.schede[i];
> 					button.height=40;
> 					button.width=40;
> 					button.addEventListener(MouseEvent.CLICK, handleMouseClick);
> 					schede.addElement(button);
> 				}	
> 			}
> 			
> 			private function handleMouseClick(event:MouseEvent):void
> 			{
> 				sendEvent(parseInt(event.currentTarget.id));
> 			}
> 			
> 			private function sendEvent(id:int):void
> 			{
> 				var e:SchedaEvent=new SchedaEvent(SchedaEvent.LOAD_SCHEDA);
> 				e.Id=id;
> 				
> 				this.owner.dispatchEvent(e);
> 			}
> 		]]>
> 	</fx:Script>
> 	
> 	<s:HGroup width="100%" height="100%" paddingTop="3">
> 		<s:VGroup height="100%" width="20%" verticalAlign="top" horizontalAlign="center">
> 			<s:Image width="80%" height="80%" id="img" contentLoader="{s_imageCache}"/>
> 		</s:VGroup>
> 		<s:VGroup height="100%" width="70%">
> 			<s:Label width="100%" height="20%" id="lezione"/>
> 			<s:TileGroup width="100%" height="80%" id="schede"/>
> 		</s:VGroup>
> 		
> 	</s:HGroup> 
> 
> -----Messaggio originale-----
> Da: Ben Smeets [mailto:ben@okapion.com] 
> Inviato: martedì 3 settembre 2013 15.22
> A: users@flex.apache.org
> Oggetto: Re: Improve spark List performance
> 
> How many rows in the list? (i.c.w. useVirtualLayout)
> 
> The setup you mention shouldn't be a problem I think (unless the image you talk about is 200MB a pop), but depends on the implementation (details). E.g., if the buttons are created every scroll, instead of reused, that might be a cause.
> 
> Any code you can share, can help (me at least) to track down the culprit.
> 
> Not a guru here though, so maybe others will know off the top of their heads :)
> 
> Ben
> 
> P.S. We are talking desktop app here right? Mobile is a different beast all together (for me).
> 
> 
> 
> On 3 sep. 2013, at 15:16, Federico De Maddalena <f....@patente.it> wrote:
> 
>> Hi! I'm working on a mobile project.
>> I created a spark List, which item renderer is an extension of 
>> ItemRenderer. Each of my item renderer contains one spark Image, one 
>> Label and a number of small buttons which varies from 3 to 20.
>> Now, scrolling the list is terribly slow. There are ways to improve 
>> scroll speed? I spent a lot of time but without success.
>> Regards
>> federico
>> 
> 
> 


Re: Improve spark List performance

Posted by Deepak MS <me...@gmail.com>.
It's always best to use actionscript based renderers for mobile projects,
instead of mxml based.
http://tv.adobe.com/watch/adc-presents/create-itemrenderers-for-flex-mobile-projects/

That might help you.


On Tue, Sep 3, 2013 at 6:59 PM, Federico De Maddalena <
f.demaddalena@patente.it> wrote:

> Hi Ben
> I'm developing a mobile project, not desktop!
> Images in use are very small.
> Usevirtuallayout is set on true.
> The code is here:
>
>         <fx:Script>
>                 <![CDATA[
>                         import spark.components.Button;
>                         import spark.core.ContentCache;
>
>                         import events.SchedaEvent;
>
>                         static public const s_imageCache:ContentCache=new
> ContentCache();
>
>                         override public function set
> data(value:Object):void
>                         {
>                                 super.data=value;
>                                 lezione.text=value.titolo;
>
> img.source="img/lez/"+value.lezione+"g.png";
>
>                                 schede.removeAllElements();
>                                 for(var i:int=0; i<value.schede.length;
> i++)
>                                 {
>                                         var button:Button=new Button();
>                                         button.label=String(i+1);
>                                         button.id=value.schede[i];
>                                         button.height=40;
>                                         button.width=40;
>
> button.addEventListener(MouseEvent.CLICK, handleMouseClick);
>                                         schede.addElement(button);
>                                 }
>                         }
>
>                         private function
> handleMouseClick(event:MouseEvent):void
>                         {
>                                 sendEvent(parseInt(event.currentTarget.id
> ));
>                         }
>
>                         private function sendEvent(id:int):void
>                         {
>                                 var e:SchedaEvent=new
> SchedaEvent(SchedaEvent.LOAD_SCHEDA);
>                                 e.Id=id;
>
>                                 this.owner.dispatchEvent(e);
>                         }
>                 ]]>
>         </fx:Script>
>
>         <s:HGroup width="100%" height="100%" paddingTop="3">
>                 <s:VGroup height="100%" width="20%" verticalAlign="top"
> horizontalAlign="center">
>                         <s:Image width="80%" height="80%" id="img"
> contentLoader="{s_imageCache}"/>
>                 </s:VGroup>
>                 <s:VGroup height="100%" width="70%">
>                         <s:Label width="100%" height="20%" id="lezione"/>
>                         <s:TileGroup width="100%" height="80%"
> id="schede"/>
>                 </s:VGroup>
>
>         </s:HGroup>
>
> -----Messaggio originale-----
> Da: Ben Smeets [mailto:ben@okapion.com]
> Inviato: martedì 3 settembre 2013 15.22
> A: users@flex.apache.org
> Oggetto: Re: Improve spark List performance
>
> How many rows in the list? (i.c.w. useVirtualLayout)
>
> The setup you mention shouldn't be a problem I think (unless the image you
> talk about is 200MB a pop), but depends on the implementation (details).
> E.g., if the buttons are created every scroll, instead of reused, that
> might be a cause.
>
> Any code you can share, can help (me at least) to track down the culprit.
>
> Not a guru here though, so maybe others will know off the top of their
> heads :)
>
> Ben
>
> P.S. We are talking desktop app here right? Mobile is a different beast
> all together (for me).
>
>
>
> On 3 sep. 2013, at 15:16, Federico De Maddalena <f....@patente.it>
> wrote:
>
> > Hi! I'm working on a mobile project.
> > I created a spark List, which item renderer is an extension of
> > ItemRenderer. Each of my item renderer contains one spark Image, one
> > Label and a number of small buttons which varies from 3 to 20.
> > Now, scrolling the list is terribly slow. There are ways to improve
> > scroll speed? I spent a lot of time but without success.
> > Regards
> > federico
> >
>
>

RE: Improve spark List performance

Posted by Mark Line <ma...@gmail.com>.
The flex compiler compiles everything to AS3 before compiling it to
bytecode.

You can add an extra compiler option to mxml "-keep-generated-actionscript"
to see what it is doing.

Pure AS3 may be faster as you may not need all the code that the
conversation from mxml to as3 generates. Or you might code things "better",
for example binding values is very expensive and you could do that quicker
by using getter and setters etc

Just to confirm the conversion between mxml to as3 is done at compile time,
not run time so you only get the hit when developing 

-----Original Message-----
From: Abdul Sattar [mailto:sattar786@gmail.com] 
Sent: 04 September 2013 15:13
To: users@flex.apache.org
Subject: Re: Improve spark List performance

I am novice to Flex. Please guide me why pure action script item renders are
faster than MXML based ones. Is it true that flex compiler compiles .mxml
files to .swf or .swcs.

Regards,

--
Abdul Sattar
*+92 321 6433805*
Director IT & Operations
Powersoft
S3 Mian Building, Faiz Road,
Old Muslim Town,
Lahore - Pakistan
+92 423 6139876

*
*
Powersoft
S3 Mian Building, Faiz Road, Old Muslim Town, Lahore - Pakistan

*POWERSOFT :: NOTICE AND DISCLAIMER*

This e-mail and any attachment(s) may be confidential and may be legally
privileged.  It is intended solely for the addressee. If you are not the
addressee, dissemination, copying or use of this e-mail or any of its
content is prohibited and may be unlawful. If you are not the intended
recipient please inform the sender immediately and destroy the e-mail, any
attachment(s) and any copies.  All liability for virus infection and/or
external compromise of security in relation to transmissions by email is
excluded to the fullest extent permitted by law. It is your responsibility
to scan or otherwise check this email and any attachment(s). Unless
otherwise stated (i) views expressed in this message are those of the
individual sender (ii) no contract may be construed by this e-mail.


On Wed, Sep 4, 2013 at 3:06 PM, Matyas Szabo
<ma...@plumbee.co.uk>wrote:

> Id make a UIComponent, that implements the Itemrenderer interfaces, 
> and then do everything inside it without in pure actionscript not 
> Flex. Here is an example ive made:
>
> https://github.com/matyasf/DividedList/blob/master/src/dividedlist/DLi
> stRenderer.as I think this is the only way to go, if you want speed 
> with complex renderers.
>
>
> On 4 September 2013 10:59, Harbs <ha...@gmail.com> wrote:
>
> > Wow. Sounds very painful. ;-)
> >
> > On Sep 4, 2013, at 2:16 AM, Alex Harui wrote:
> >
> > > and I've seen folks put a DataGrid in a renderer.
> >
> >
>


RE: Improve spark List performance

Posted by "Raj U. Shaikh" <Ra...@mastek.com>.
Flex compiler can compile your .mxml files to .swc as well as .swf as per your choice.
If you are developing library you will create .swc file and it can be shared and used at compile time.
While .swf file is final outcome of your project which will run on flash player.

I normally used to implement as3 classes instead of mxml.
I don't think so, is there any major diffrence at runtime performance but if you use as3 you will get finular access of apis.(such as removing listeners)


-----Original Message-----
From: Abdul Sattar [mailto:sattar786@gmail.com] 
Sent: Wednesday, September 04, 2013 7:43 PM
To: users@flex.apache.org
Subject: Re: Improve spark List performance

I am novice to Flex. Please guide me why pure action script item renders
are faster than MXML based ones. Is it true that flex compiler compiles
.mxml files to .swf or .swcs.

Regards,

--
Abdul Sattar
*+92 321 6433805*
Director IT & Operations
Powersoft
S3 Mian Building, Faiz Road,
Old Muslim Town,
Lahore - Pakistan
+92 423 6139876

*
*
Powersoft
S3 Mian Building, Faiz Road, Old Muslim Town, Lahore - Pakistan

*POWERSOFT :: NOTICE AND DISCLAIMER*

This e-mail and any attachment(s) may be confidential and may be legally
privileged.  It is intended solely for the addressee. If you are not the
addressee, dissemination, copying or use of this e-mail or any of its
content is prohibited and may be unlawful. If you are not the intended
recipient please inform the sender immediately and destroy the e-mail, any
attachment(s) and any copies.  All liability for virus infection and/or
external compromise of security in relation to transmissions by email is
excluded to the fullest extent permitted by law. It is your responsibility
to scan or otherwise check this email and any attachment(s). Unless
otherwise stated (i) views expressed in this message are those of the
individual sender (ii) no contract may be construed by this e-mail.


On Wed, Sep 4, 2013 at 3:06 PM, Matyas Szabo <ma...@plumbee.co.uk>wrote:

> Id make a UIComponent, that implements the Itemrenderer interfaces, and
> then do everything inside it without in pure actionscript not Flex. Here is
> an example ive made:
>
> https://github.com/matyasf/DividedList/blob/master/src/dividedlist/DListRenderer.as
> I think this is the only way to go, if you want speed with complex
> renderers.
>
>
> On 4 September 2013 10:59, Harbs <ha...@gmail.com> wrote:
>
> > Wow. Sounds very painful... ;-)
> >
> > On Sep 4, 2013, at 2:16 AM, Alex Harui wrote:
> >
> > > and I've seen folks put a DataGrid in a renderer.
> >
> >
>
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Re: Improve spark List performance

Posted by Abdul Sattar <sa...@gmail.com>.
I am novice to Flex. Please guide me why pure action script item renders
are faster than MXML based ones. Is it true that flex compiler compiles
.mxml files to .swf or .swcs.

Regards,

--
Abdul Sattar
*+92 321 6433805*
Director IT & Operations
Powersoft
S3 Mian Building, Faiz Road,
Old Muslim Town,
Lahore - Pakistan
+92 423 6139876

*
*
Powersoft
S3 Mian Building, Faiz Road, Old Muslim Town, Lahore - Pakistan

*POWERSOFT :: NOTICE AND DISCLAIMER*

This e-mail and any attachment(s) may be confidential and may be legally
privileged.  It is intended solely for the addressee. If you are not the
addressee, dissemination, copying or use of this e-mail or any of its
content is prohibited and may be unlawful. If you are not the intended
recipient please inform the sender immediately and destroy the e-mail, any
attachment(s) and any copies.  All liability for virus infection and/or
external compromise of security in relation to transmissions by email is
excluded to the fullest extent permitted by law. It is your responsibility
to scan or otherwise check this email and any attachment(s). Unless
otherwise stated (i) views expressed in this message are those of the
individual sender (ii) no contract may be construed by this e-mail.


On Wed, Sep 4, 2013 at 3:06 PM, Matyas Szabo <ma...@plumbee.co.uk>wrote:

> Id make a UIComponent, that implements the Itemrenderer interfaces, and
> then do everything inside it without in pure actionscript not Flex. Here is
> an example ive made:
>
> https://github.com/matyasf/DividedList/blob/master/src/dividedlist/DListRenderer.as
> I think this is the only way to go, if you want speed with complex
> renderers.
>
>
> On 4 September 2013 10:59, Harbs <ha...@gmail.com> wrote:
>
> > Wow. Sounds very painful… ;-)
> >
> > On Sep 4, 2013, at 2:16 AM, Alex Harui wrote:
> >
> > > and I've seen folks put a DataGrid in a renderer.
> >
> >
>

Re: Improve spark List performance

Posted by Matyas Szabo <ma...@plumbee.co.uk>.
Id make a UIComponent, that implements the Itemrenderer interfaces, and
then do everything inside it without in pure actionscript not Flex. Here is
an example ive made:
https://github.com/matyasf/DividedList/blob/master/src/dividedlist/DListRenderer.as
I think this is the only way to go, if you want speed with complex
renderers.


On 4 September 2013 10:59, Harbs <ha...@gmail.com> wrote:

> Wow. Sounds very painful… ;-)
>
> On Sep 4, 2013, at 2:16 AM, Alex Harui wrote:
>
> > and I've seen folks put a DataGrid in a renderer.
>
>

Re: Improve spark List performance

Posted by Harbs <ha...@gmail.com>.
Wow. Sounds very painful… ;-)

On Sep 4, 2013, at 2:16 AM, Alex Harui wrote:

> and I've seen folks put a DataGrid in a renderer.


Re: Improve spark List performance

Posted by Alex Harui <ah...@adobe.com>.

On 9/3/13 9:19 AM, "Harbs" <ha...@gmail.com> wrote:

>Interesting that you are saying that states would be more performant than
>resizing.
Actually, I'm not saying that.  I'm just pointing out different options.
Some components could have very expensive resize algorithms or issues
being shrunk to zero and restored.  For example, mx:DataGrid will probably
forget its column sizes when shrunk, and I've seen folks put a DataGrid in
a renderer.

>
>Probably, the most performant method would be to calculate the placement
>of each object programmatically without resizing anything.
>(i.e. each obect has a placement position and you place the object based
>on its placement and how many objects before its placement are visible.)
>
>That way all the built-in layout calculations should not be needed.
>
>On Sep 3, 2013, at 7:01 PM, Alex Harui wrote:
>
>> 
>> 
>> On 9/3/13 7:15 AM, "Harbs" <ha...@gmail.com> wrote:
>> 
>>> To expand on Peter's response:
>>> 
>>> Like Peter said, you create all the elements you need when the item
>>> renderer is first created. If you don't want to show a button, set the
>>> visibility to false and depending on how you are laying them out, you
>>> might need to set the size to 0 as well. That way you can simulate them
>>> being added and removed and have things reflow properly. You'll have to
>>> set gap to 0 and you might need to play around with spacers as well for
>>> this to work.
>> FWIW, instead of "size to 0" others use includeInLayout and/or states to
>> manage the existence and placement of widgets.  Each strategy has
>> different memory/performance trade-offs.
>> 
>> -Alex
>> 
>


Re: Improve spark List performance

Posted by Harbs <ha...@gmail.com>.
Interesting that you are saying that states would be more performant than resizing.

Probably, the most performant method would be to calculate the placement of each object programmatically without resizing anything.
(i.e. each obect has a placement position and you place the object based on its placement and how many objects before its placement are visible.)

That way all the built-in layout calculations should not be needed.

On Sep 3, 2013, at 7:01 PM, Alex Harui wrote:

> 
> 
> On 9/3/13 7:15 AM, "Harbs" <ha...@gmail.com> wrote:
> 
>> To expand on Peter's response:
>> 
>> Like Peter said, you create all the elements you need when the item
>> renderer is first created. If you don't want to show a button, set the
>> visibility to false and depending on how you are laying them out, you
>> might need to set the size to 0 as well. That way you can simulate them
>> being added and removed and have things reflow properly. You'll have to
>> set gap to 0 and you might need to play around with spacers as well for
>> this to work.
> FWIW, instead of "size to 0" others use includeInLayout and/or states to
> manage the existence and placement of widgets.  Each strategy has
> different memory/performance trade-offs.
> 
> -Alex
> 


Re: Improve spark List performance

Posted by Alex Harui <ah...@adobe.com>.

On 9/3/13 7:15 AM, "Harbs" <ha...@gmail.com> wrote:

>To expand on Peter's response:
>
>Like Peter said, you create all the elements you need when the item
>renderer is first created. If you don't want to show a button, set the
>visibility to false and depending on how you are laying them out, you
>might need to set the size to 0 as well. That way you can simulate them
>being added and removed and have things reflow properly. You'll have to
>set gap to 0 and you might need to play around with spacers as well for
>this to work.
FWIW, instead of "size to 0" others use includeInLayout and/or states to
manage the existence and placement of widgets.  Each strategy has
different memory/performance trade-offs.

-Alex


Re: Improve spark List performance

Posted by Harbs <ha...@gmail.com>.
To expand on Peter's response:

Like Peter said, you create all the elements you need when the item renderer is first created. If you don't want to show a button, set the visibility to false and depending on how you are laying them out, you might need to set the size to 0 as well. That way you can simulate them being added and removed and have things reflow properly. You'll have to set gap to 0 and you might need to play around with spacers as well for this to work.

HTH,
Harbs

On Sep 3, 2013, at 4:40 PM, Peter Ent wrote:

> Each time the itemRenderer's data is set, you are wiping out all of the
> button in the TileGroup and re-creating them. That's a source of your slow
> scrolling performance.
> 
> As nice-and-easy as your approach is, it is better to add some more code
> complexity and re-use those buttons.
> 
> Here's one example: you could, for each itemRenderer, have a cache of
> previously created buttons, which would be empty the first time the
> itemRenderer was used. If you need 10 buttons but have less than 10 (e.g.,
> 0 the first time), "use" the buttons (explained below) you have previously
> created and create the remaining, being sure to also put references to
> them into your cache.
> 
> If you have more buttons in your cache than you need, "use" the amount you
> need and "deactivate" the ones you don't. That is, if you have 20 buttons
> in the cache but only need 8, you'll deactivate the remaining 12.
> 
> So "use" means to set a button's visible and includeInLayout properties to
> true. "Deactivate" means to set a button's visible and includeInLayout
> properties to false.
> 
> I think an approach like this would have better performance for you. If
> you can avoid setting includeInLayout, it will be even better since all
> you will be doing is hiding/showing the buttons, but the itemRenederers
> might not look right if you also don't remove them from the layout.
> 
> Peter Ent
> Flex SDK Team
> Adobe Systems
> 
> On 9/3/13 9:29 AM, "Federico De Maddalena" <f....@patente.it>
> wrote:
> 
>> Hi Ben
>> I'm developing a mobile project, not desktop!
>> Images in use are very small.
>> Usevirtuallayout is set on true.
>> The code is here: 
>> 
>> 	<fx:Script>
>> 		<![CDATA[
>> 			import spark.components.Button;
>> 			import spark.core.ContentCache;
>> 			
>> 			import events.SchedaEvent;
>> 			
>> 			static public const s_imageCache:ContentCache=new ContentCache();
>> 			
>> 			override public function set data(value:Object):void
>> 			{
>> 				super.data=value;
>> 				lezione.text=value.titolo;
>> 				img.source="img/lez/"+value.lezione+"g.png";
>> 					
>> 				schede.removeAllElements();
>> 				for(var i:int=0; i<value.schede.length; i++)
>> 				{
>> 					var button:Button=new Button();
>> 					button.label=String(i+1);
>> 					button.id=value.schede[i];
>> 					button.height=40;
>> 					button.width=40;
>> 					button.addEventListener(MouseEvent.CLICK, handleMouseClick);
>> 					schede.addElement(button);
>> 				}	
>> 			}
>> 			
>> 			private function handleMouseClick(event:MouseEvent):void
>> 			{
>> 				sendEvent(parseInt(event.currentTarget.id));
>> 			}
>> 			
>> 			private function sendEvent(id:int):void
>> 			{
>> 				var e:SchedaEvent=new SchedaEvent(SchedaEvent.LOAD_SCHEDA);
>> 				e.Id=id;
>> 				
>> 				this.owner.dispatchEvent(e);
>> 			}
>> 		]]>
>> 	</fx:Script>
>> 	
>> 	<s:HGroup width="100%" height="100%" paddingTop="3">
>> 		<s:VGroup height="100%" width="20%" verticalAlign="top"
>> horizontalAlign="center">
>> 			<s:Image width="80%" height="80%" id="img"
>> contentLoader="{s_imageCache}"/>
>> 		</s:VGroup>
>> 		<s:VGroup height="100%" width="70%">
>> 			<s:Label width="100%" height="20%" id="lezione"/>
>> 			<s:TileGroup width="100%" height="80%" id="schede"/>
>> 		</s:VGroup>
>> 		
>> 	</s:HGroup> 
>> 
>> -----Messaggio originale-----
>> Da: Ben Smeets [mailto:ben@okapion.com]
>> Inviato: martedì 3 settembre 2013 15.22
>> A: users@flex.apache.org
>> Oggetto: Re: Improve spark List performance
>> 
>> How many rows in the list? (i.c.w. useVirtualLayout)
>> 
>> The setup you mention shouldn't be a problem I think (unless the image
>> you talk about is 200MB a pop), but depends on the implementation
>> (details). E.g., if the buttons are created every scroll, instead of
>> reused, that might be a cause.
>> 
>> Any code you can share, can help (me at least) to track down the culprit.
>> 
>> Not a guru here though, so maybe others will know off the top of their
>> heads :)
>> 
>> Ben
>> 
>> P.S. We are talking desktop app here right? Mobile is a different beast
>> all together (for me).
>> 
>> 
>> 
>> On 3 sep. 2013, at 15:16, Federico De Maddalena
>> <f....@patente.it> wrote:
>> 
>>> Hi! I'm working on a mobile project.
>>> I created a spark List, which item renderer is an extension of
>>> ItemRenderer. Each of my item renderer contains one spark Image, one
>>> Label and a number of small buttons which varies from 3 to 20.
>>> Now, scrolling the list is terribly slow. There are ways to improve
>>> scroll speed? I spent a lot of time but without success.
>>> Regards
>>> federico
>>> 
>> 
> 


Re: R: Improve spark List performance

Posted by Peter Ent <pe...@adobe.com>.
Each time the itemRenderer's data is set, you are wiping out all of the
button in the TileGroup and re-creating them. That's a source of your slow
scrolling performance.

As nice-and-easy as your approach is, it is better to add some more code
complexity and re-use those buttons.

Here's one example: you could, for each itemRenderer, have a cache of
previously created buttons, which would be empty the first time the
itemRenderer was used. If you need 10 buttons but have less than 10 (e.g.,
0 the first time), "use" the buttons (explained below) you have previously
created and create the remaining, being sure to also put references to
them into your cache.

If you have more buttons in your cache than you need, "use" the amount you
need and "deactivate" the ones you don't. That is, if you have 20 buttons
in the cache but only need 8, you'll deactivate the remaining 12.

So "use" means to set a button's visible and includeInLayout properties to
true. "Deactivate" means to set a button's visible and includeInLayout
properties to false.

I think an approach like this would have better performance for you. If
you can avoid setting includeInLayout, it will be even better since all
you will be doing is hiding/showing the buttons, but the itemRenederers
might not look right if you also don't remove them from the layout.

Peter Ent
Flex SDK Team
Adobe Systems

On 9/3/13 9:29 AM, "Federico De Maddalena" <f....@patente.it>
wrote:

>Hi Ben
>I'm developing a mobile project, not desktop!
>Images in use are very small.
>Usevirtuallayout is set on true.
>The code is here: 
>
>	<fx:Script>
>		<![CDATA[
>			import spark.components.Button;
>			import spark.core.ContentCache;
>			
>			import events.SchedaEvent;
>			
>			static public const s_imageCache:ContentCache=new ContentCache();
>			
>			override public function set data(value:Object):void
>			{
>				super.data=value;
>				lezione.text=value.titolo;
>				img.source="img/lez/"+value.lezione+"g.png";
>					
>				schede.removeAllElements();
>				for(var i:int=0; i<value.schede.length; i++)
>				{
>					var button:Button=new Button();
>					button.label=String(i+1);
>					button.id=value.schede[i];
>					button.height=40;
>					button.width=40;
>					button.addEventListener(MouseEvent.CLICK, handleMouseClick);
>					schede.addElement(button);
>				}	
>			}
>			
>			private function handleMouseClick(event:MouseEvent):void
>			{
>				sendEvent(parseInt(event.currentTarget.id));
>			}
>			
>			private function sendEvent(id:int):void
>			{
>				var e:SchedaEvent=new SchedaEvent(SchedaEvent.LOAD_SCHEDA);
>				e.Id=id;
>				
>				this.owner.dispatchEvent(e);
>			}
>		]]>
>	</fx:Script>
>	
>	<s:HGroup width="100%" height="100%" paddingTop="3">
>		<s:VGroup height="100%" width="20%" verticalAlign="top"
>horizontalAlign="center">
>			<s:Image width="80%" height="80%" id="img"
>contentLoader="{s_imageCache}"/>
>		</s:VGroup>
>		<s:VGroup height="100%" width="70%">
>			<s:Label width="100%" height="20%" id="lezione"/>
>			<s:TileGroup width="100%" height="80%" id="schede"/>
>		</s:VGroup>
>		
>	</s:HGroup> 
>
>-----Messaggio originale-----
>Da: Ben Smeets [mailto:ben@okapion.com]
>Inviato: martedì 3 settembre 2013 15.22
>A: users@flex.apache.org
>Oggetto: Re: Improve spark List performance
>
>How many rows in the list? (i.c.w. useVirtualLayout)
>
>The setup you mention shouldn't be a problem I think (unless the image
>you talk about is 200MB a pop), but depends on the implementation
>(details). E.g., if the buttons are created every scroll, instead of
>reused, that might be a cause.
>
>Any code you can share, can help (me at least) to track down the culprit.
>
>Not a guru here though, so maybe others will know off the top of their
>heads :)
>
>Ben
>
>P.S. We are talking desktop app here right? Mobile is a different beast
>all together (for me).
>
>
>
>On 3 sep. 2013, at 15:16, Federico De Maddalena
><f....@patente.it> wrote:
>
>> Hi! I'm working on a mobile project.
>> I created a spark List, which item renderer is an extension of
>> ItemRenderer. Each of my item renderer contains one spark Image, one
>> Label and a number of small buttons which varies from 3 to 20.
>> Now, scrolling the list is terribly slow. There are ways to improve
>> scroll speed? I spent a lot of time but without success.
>> Regards
>> federico
>> 
>


R: Improve spark List performance

Posted by Federico De Maddalena <f....@patente.it>.
Hi Ben
I'm developing a mobile project, not desktop!
Images in use are very small.
Usevirtuallayout is set on true.
The code is here: 

	<fx:Script>
		<![CDATA[
			import spark.components.Button;
			import spark.core.ContentCache;
			
			import events.SchedaEvent;
			
			static public const s_imageCache:ContentCache=new ContentCache();
			
			override public function set data(value:Object):void
			{
				super.data=value;
				lezione.text=value.titolo;
				img.source="img/lez/"+value.lezione+"g.png";
					
				schede.removeAllElements();
				for(var i:int=0; i<value.schede.length; i++)
				{
					var button:Button=new Button();
					button.label=String(i+1);
					button.id=value.schede[i];
					button.height=40;
					button.width=40;
					button.addEventListener(MouseEvent.CLICK, handleMouseClick);
					schede.addElement(button);
				}	
			}
			
			private function handleMouseClick(event:MouseEvent):void
			{
				sendEvent(parseInt(event.currentTarget.id));
			}
			
			private function sendEvent(id:int):void
			{
				var e:SchedaEvent=new SchedaEvent(SchedaEvent.LOAD_SCHEDA);
				e.Id=id;
				
				this.owner.dispatchEvent(e);
			}
		]]>
	</fx:Script>
	
	<s:HGroup width="100%" height="100%" paddingTop="3">
		<s:VGroup height="100%" width="20%" verticalAlign="top" horizontalAlign="center">
			<s:Image width="80%" height="80%" id="img" contentLoader="{s_imageCache}"/>
		</s:VGroup>
		<s:VGroup height="100%" width="70%">
			<s:Label width="100%" height="20%" id="lezione"/>
			<s:TileGroup width="100%" height="80%" id="schede"/>
		</s:VGroup>
		
	</s:HGroup> 

-----Messaggio originale-----
Da: Ben Smeets [mailto:ben@okapion.com] 
Inviato: martedì 3 settembre 2013 15.22
A: users@flex.apache.org
Oggetto: Re: Improve spark List performance

How many rows in the list? (i.c.w. useVirtualLayout)

The setup you mention shouldn't be a problem I think (unless the image you talk about is 200MB a pop), but depends on the implementation (details). E.g., if the buttons are created every scroll, instead of reused, that might be a cause.

Any code you can share, can help (me at least) to track down the culprit.

Not a guru here though, so maybe others will know off the top of their heads :)

Ben

P.S. We are talking desktop app here right? Mobile is a different beast all together (for me).



On 3 sep. 2013, at 15:16, Federico De Maddalena <f....@patente.it> wrote:

> Hi! I'm working on a mobile project.
> I created a spark List, which item renderer is an extension of 
> ItemRenderer. Each of my item renderer contains one spark Image, one 
> Label and a number of small buttons which varies from 3 to 20.
> Now, scrolling the list is terribly slow. There are ways to improve 
> scroll speed? I spent a lot of time but without success.
> Regards
> federico
> 


Re: Improve spark List performance

Posted by Ben Smeets <be...@okapion.com>.
How many rows in the list? (i.c.w. useVirtualLayout)

The setup you mention shouldn't be a problem I think (unless the image you talk about is 200MB a pop), but depends on the implementation (details). E.g., if the buttons are created every scroll, instead of reused, that might be a cause.

Any code you can share, can help (me at least) to track down the culprit.

Not a guru here though, so maybe others will know off the top of their heads :)

Ben

P.S. We are talking desktop app here right? Mobile is a different beast all together (for me).



On 3 sep. 2013, at 15:16, Federico De Maddalena <f....@patente.it> wrote:

> Hi! I'm working on a mobile project.
> I created a spark List, which item renderer is an extension of
> ItemRenderer. Each of my item renderer contains one spark Image, one
> Label and a number of small buttons which varies from 3 to 20.
> Now, scrolling the list is terribly slow. There are ways to improve
> scroll speed? I spent a lot of time but without success.
> Regards
> federico
> 


Improve spark List performance

Posted by Federico De Maddalena <f....@patente.it>.
Hi! I'm working on a mobile project.
I created a spark List, which item renderer is an extension of
ItemRenderer. Each of my item renderer contains one spark Image, one
Label and a number of small buttons which varies from 3 to 20.
Now, scrolling the list is terribly slow. There are ways to improve
scroll speed? I spent a lot of time but without success.
Regards
federico

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
Right, sorry I wasn't clear I had done that.
It seems that part of the problem is that I'm only able to find 4.1sdk
online to download which has an A in the version name... so whats in
my local repo is actually 4.1.0.16076A

So I have framework-4.1.0.16076A.pom   but I am missing and maven can
not find fraemwork-4.1.0.16076.pom

Why oh why do so many of our users still have flash player 10.3?  argh!
brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 3:47 PM, Frédéric THOMAS [via Apache Flex
Users] <ml...@n4.nabble.com> wrote:
> You should remove the compiler dependency from the general dependencies of
> your module but keep it in the dependencies of the FM plugin as I indicated
> to you before.
>
> -----Message d'origine-----
> De : akessner [mailto:[hidden email]]
> Envoyé : mardi 3 septembre 2013 14:31
> À : [hidden email]
> Objet : Re: AW: AW: how to setup and use maven-flex-plugin
>
> My bad, it actually doesn't have that pom...   I can create it
> manually, but any ideas why it's missing?
> brought to you by the letters A, V, and I and the number 47
>
>
> On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <[hidden email]> wrote:
>
>> Maven is alternating between giving me the error that it can't find
>> the player global and that it can't find framework:pom:...
>>
>> [ERROR] Failed to execute goal
>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>> (default-compile-swf) on project helloWorld3:
>> java.lang.reflect.InvocationTargetException: Failed to resolve
>> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>>
>> However, I see these things in my repository...
>> brought to you by the letters A, V, and I and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <[hidden email]> wrote:
>>> This is sending me into an infinite loop :)
>>> I've added the compiler to the dependency inside the plugin.  But now
>>> I'm getting new errors.
>>> brought to you by the letters A, V, and I
>>> and the number 47
>>>
>>>
>>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
>>> Users] <[hidden email]> wrote:
>>>> Just answered here
>>>>
>>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-td1491i20.html#a2518
>>>>
>>>> ________________________________
>>>> 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-maven-flex-plugin-tp1491p2519.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-tp1491p2524.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-maven-flex-plugin-tp1491p2525.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-tp1491p2526.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
You should remove the compiler dependency from the general dependencies of your module but keep it in the dependencies of the FM plugin as I indicated to you before.

-----Message d'origine-----
De : akessner [mailto:akessner@gmail.com] 
Envoyé : mardi 3 septembre 2013 14:31
À : users@flex.apache.org
Objet : Re: AW: AW: how to setup and use maven-flex-plugin

My bad, it actually doesn't have that pom...   I can create it
manually, but any ideas why it's missing?
brought to you by the letters A, V, and I and the number 47


On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <ak...@gmail.com> wrote:
> Maven is alternating between giving me the error that it can't find 
> the player global and that it can't find framework:pom:...
>
> [ERROR] Failed to execute goal
> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> (default-compile-swf) on project helloWorld3:
> java.lang.reflect.InvocationTargetException: Failed to resolve 
> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1] [ERROR]
>
> However, I see these things in my repository...
> brought to you by the letters A, V, and I and the number 47
>
>
> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <ak...@gmail.com> wrote:
>> This is sending me into an infinite loop :)
>> I've added the compiler to the dependency inside the plugin.  But now
>> I'm getting new errors.
>> brought to you by the letters A, V, and I
>> and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
>> Users] <ml...@n4.nabble.com> wrote:
>>> Just answered here
>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-td1491i20.html#a2518
>>>
>>> ________________________________
>>> 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-maven-flex-plugin-tp1491p2519.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-tp1491p2524.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
My bad, it actually doesn't have that pom...   I can create it
manually, but any ideas why it's missing?
brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 3:26 PM, Avi Kessner <ak...@gmail.com> wrote:
> Maven is alternating between giving me the error that it can't find
> the player global and that it can't find framework:pom:...
>
> [ERROR] Failed to execute goal
> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> (default-compile-swf) on project helloWorld3:
> java.lang.reflect.InvocationTargetException: Failed to resolve
> artifact com.adobe.flex:framework:pom:4.1.0.16248 -> [Help 1]
> [ERROR]
>
> However, I see these things in my repository...
> brought to you by the letters A, V, and I
> and the number 47
>
>
> On Tue, Sep 3, 2013 at 3:12 PM, Avi Kessner <ak...@gmail.com> wrote:
>> This is sending me into an infinite loop :)
>> I've added the compiler to the dependency inside the plugin.  But now
>> I'm getting new errors.
>> brought to you by the letters A, V, and I
>> and the number 47
>>
>>
>> On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
>> Users] <ml...@n4.nabble.com> wrote:
>>> Just answered here
>>> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-td1491i20.html#a2518
>>>
>>> ________________________________
>>> 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-maven-flex-plugin-tp1491p2519.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-tp1491p2524.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
This is sending me into an infinite loop :)
I've added the compiler to the dependency inside the plugin.  But now
I'm getting new errors.
brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 2:59 PM, Frédéric THOMAS [via Apache Flex
Users] <ml...@n4.nabble.com> wrote:
> Just answered here
> http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-td1491i20.html#a2518
>
> ________________________________
> 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-maven-flex-plugin-tp1491p2519.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-tp1491p2520.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
Just answered here
http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-td1491i20.html#a2518



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-tp1491p2519.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
Ok yikes that didn't work...

Let's try this again. Sorry for the "spam"

Hi, sorry to bring back an old thread, but I'm having some trouble myself. 

I just can't figure out/ follow the previous conversation to get flexmojos
6.0.1 to compile with flex sdk 4.1.0.16248 

Here is my Pom: 

<?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>

  <groupId>com.whatever</groupId>
  <artifactId>${artifactId}</artifactId>
  <version>${version}</version>
  <packaging>swf</packaging>

  <name>${artifactId} Flex</name>
    <properties>
        <flex.version>4.1.0.16248</flex.version>
        <artifactId>helloWorld3</artifactId>
        <version>1.0-SNAPSHOT</version>
    </properties>
  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <testSourceDirectory>src/test/flex</testSourceDirectory>
    <plugins>
      <plugin>
        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>6.0.1</version>
        <extensions>true</extensions>
                <configuration>
            <storepass/>
                        <debug>true</debug>
                </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>
      <dependency>
          <groupId>com.adobe.flex</groupId>
          <artifactId>compiler</artifactId>
          <version>${flex.version}</version>
          <type>pom</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.flexunit</groupId>
      <artifactId>flexunit</artifactId>
      <version>0.85</version>
      <type>swc</type>
      <scope>test</scope>
    </dependency>
  </dependencies>

  
  <repositories>
     <repository>
        <id>flex-mojos-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </repository>
  </repositories>

  <pluginRepositories>
     <pluginRepository>
        <id>flex-mojos-plugin-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </pluginRepository>
  </pluginRepositories>
</project>



Here is the error: 

[ERROR] Failed to execute goal
net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
(default-compile-swf) on project helloWorld3: Execution default-compile-swf
of goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf failed:
Flex compiler and flex framework versions doesn't match. Compiler:
'4.6.0.23201' - Framework: '4.1.0.16248'. 
[ERROR] You can use
'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking' to
disable this check.  Please refer to Flexmojos maven doc. 
[ERROR] If you prefer fixing it instead of ignoring, take a look at:
https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version
[ERROR] -> [Help 1] 



I appreciate the help.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-tp1491p2516.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
Ok, getting closer...

Now I'm getting this error:

ERROR] Failed to execute goal
net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
(default-compile-swf) on project helloWorld3:
java.lang.reflect.InvocationTargetException: Global artifact is not
available. Make sure to add 'playerglobal' or 'airglobal' to this
project. -> [Help 1]
[ERROR]

Even though I have this...

<configuration>
            <storepass/>
<debug>true</debug>
</configuration>
          <dependencies>
              <dependency>
                  <groupId>com.adobe.flex</groupId>
                  <artifactId>compiler</artifactId>
                  <version>${flex.version}</version>
                  <type>pom</type>
              </dependency>
              <dependency>
                  <groupId>com.adobe.flex.framework</groupId>
                  <artifactId>playerglobal</artifactId>
                  <version>${flex.version}</version>
                  <classifier>10.1</classifier>
                  <type>swc</type>
              </dependency>
          </dependencies>


And/OR this:


<dependencies>
      <dependency>
          <groupId>com.adobe.flex</groupId>
          <artifactId>compiler</artifactId>
          <version>${flex.version}</version>
          <type>pom</type>
      </dependency>
      <dependency>
          <groupId>com.adobe.flex.framework</groupId>
          <artifactId>playerglobal</artifactId>
          <version>${flex.version}</version>
          <classifier>10.1</classifier>
          <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.flexunit</groupId>
      <artifactId>flexunit</artifactId>
      <version>0.85</version>
      <type>swc</type>
      <scope>test</scope>
    </dependency>
  </dependencies>


I've tried adding playerglobal to both sections, one section, and
neither sections :(

I really appreciate this help.  I've been working on this for too many
days now.  Can't wait till we are able to get the whole maven stack
working for Flex quickly and easily :)
brought to you by the letters A, V, and I
and the number 47


On Tue, Sep 3, 2013 at 2:32 PM, Frédéric THOMAS [via Apache Flex
Users] <ml...@n4.nabble.com> wrote:
> Try to add a compiler dependency right after the configuration tag:
>
>                 <configuration>
>                      ...
>                 </configuration>
>
>                 <dependencies>
>                     <dependency>
>                         <groupId>com.adobe.flex</groupId>
>                         <artifactId>compiler</artifactId>
>                         <version>${flex.version}</version>
>                         <type>pom</type>
>                     </dependency>
>                 </dependencies>
>
> akessner wrote
> Forgot to subscribe before sending the message, so I'm replying to force it
> through :)
>
>
>
> ________________________________
> 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-maven-flex-plugin-tp1491p2518.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-tp1491p2522.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by Frédéric THOMAS <we...@hotmail.com>.
Try to add a compiler dependency right after the configuration tag:

                <configuration>
                     ...
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>${flex.version}</version>
                        <type>pom</type>
                    </dependency>
                </dependencies>


akessner wrote
> Forgot to subscribe before sending the message, so I'm replying to force
> it through :)





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-tp1491p2518.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: AW: AW: how to setup and use maven-flex-plugin

Posted by akessner <ak...@gmail.com>.
Forgot to subscribe before sending the message, so I'm replying to force it
through :)



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/how-to-setup-and-use-maven-flex-plugin-tp1491p2515.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.