Hi all,

I have made some progress with making an actual maven repo for this:

First look at

http://www.flexthinker.com/2010/03/installing-flex-sdk-into-maven-repository/

which explains how someone installed a Flex SDK 4.1 into a maven repository. 


A few months ago I took these scripts and created a flex 4.5 installer

https://github.com/piercer/flex_sdk_maven_install


I have now created a broomstick branch of this which
1) Adds a broomstick.swc  dependency into the deployed SDK pom.
2) updated the configs.zip to include the flex-config from the away3d patch
3) Made the default player 10.2

In theory we can now install a molehill SDK into a nexus repository. Here is 
how -


1) Follow John Lindquists instructions on creating a molehill SDK. Make sure 
that the SDK is in a directory whose path contains no spaces

http://johnlindquist.com/2011/02/28/quickstart-for-molehill-and-away3d/

However don't put flashplayer_inc_playerglobal_022711.swc in the player libs 
folder, instead replace player global.swc in 
frameworks/libs/player/10.2/playerglobal.swc 


2) Unfortunately this SDK lacks some things that seem to be needed to make 
FlexMojos happy. We need to copy some files over from the standard 4.5.0 sdk 
distributed with Flash Builder Burrito

frameworks/libs/datavisualisation.swc
frameworks/libs/flex.swc
frameworks/libs/utilities.swc

frameworks/locale/en_US/datavisualisation.swc


3) Install locally 

./install-flex-sdk.sh /flex_sdk_4.5.0.19786 4.5.0.19786

Where /flex_sdk_4.5.0.19786 is the place you have created this custom SDK


4) Tweak what you just made.

cd ~/.m2/repository/com/adobe/flex/framework/playerglobal/4.5.0.19786
cp playerglobal-4.5.0.19786-en_US.rb.swc playerglobal-4.5.0.19786.rb.swc
cp playerglobal-4.5.0.19786-en_US.rb.swc.md5 playerglobal-4.5.0.19786.rb.swc.md5
cp playerglobal-4.5.0.19786-en_US.rb.swc.sha1 
playerglobal-4.5.0.19786.rb.swc.sha1

This gets round an unresolved dependency - don't have time to look into this 
right now and don't know why it happens


You now have an SDK in you maven repository that can be used with the pom 
attached below - I have used it to successfully build InteractionTest, however 
I can not get the built InteractionTest to run , 

I will look into this tonight, but those brave enough to try and contribute can 
play with this all that they want!


Conrad Winchester



<?xml version="1.0"?>
<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>com.dz015.example</groupId>
    <artifactId>broomstick-test</artifactId>
    <version>1.0</version>
    <packaging>swf</packaging>

     <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <flex.sdk.version>4.5.0.19786</flex.sdk.version>
        <flexmojos.version>3.8</flexmojos.version>
    </properties>

    <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>${flexmojos.version}</version>
                <extensions>true</extensions>
                <configuration>
                        <sourceFile>InteractionTest.as</sourceFile>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>${flex.sdk.version}</version>
                        <type>pom</type>
                    </dependency>
                </dependencies>
            </plugin>

        </plugins>
    </build>

    <dependencies>

        <dependency>
            <groupId>com.adobe.flex.framework</groupId>
            <artifactId>flex-framework</artifactId>
            <version>${flex.sdk.version}</version>
            <type>pom</type>
        </dependency>

    </dependencies>

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

    <pluginRepositories>

        <pluginRepository>
            <id>flex-mojos-repository</id>
            <url>http://repository.sonatype.org/content/groups/flexgroup/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>

    </pluginRepositories>

</project>



On 8 Mar 2011, at 17:36, Marvin Froeder wrote:

> See go for it..
> 
> On Tue, Mar 8, 2011 at 2:35 PM, Michael Krotscheck <[email protected]> 
> wrote:
> Yeah, do what I do.
> 
> 1- Download a zipped SDK from Adobe.
> 2- Upload the whole file into your repo.
> 3- Unzip it during process-resources (or generate-resources, or what have you)
> 4- Build with antrun
> 
> Michael Krotscheck
> 
> 
> On Mar 8, 2011, at 8:44 AM, Marvin Froeder wrote:
> 
> > Know, does anyone has any other idea on how to get this better?
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
> 
> http://flexmojos.sonatype.org/
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>  
> http://flexmojos.sonatype.org/

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to