Molehill

78 views
Skip to first unread message

misterbenn

unread,
Mar 21, 2011, 1:50:01 PM3/21/11
to Flex SDK Maven Install
Hi,

So I've got a Molehill SDK version working with FM4 and FlexUnit. It's
building swc libraries fine locally and in Hudson CI.

I made a couple of changes to the GitHub project to make this work:

1. Changed the 'deploy_4.5_molehill.sh' and 'install_4.5_molehill.sh'
scripts to include

zip flex_sdk_4.5.0.19786.zip frameworks/libs/player/10.2/
playerglobal.swc
zip flex_sdk_4.5.0.19786.zip frameworks/libs/player/10.3/
playerglobal.swc
zip flex_sdk_4.5.0.19786.zip frameworks/libs/player/11.0/
playerglobal.swc

Where the playerglobal.swc is the Molehill version. Probably
unnecessary to add all of these.

Of course this requires the frameworks/libs/player/xx.x folders to be
created and the swc dropped in.

2. Running this work fine with everything, except it stops with the
error

Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:
4.0-SNAPSHOT:dita-asdoc (default-dita-asdoc) ...

Not sure what is causing this, but I simply added <ditaSkip>true</
ditaSkip> to the configuration in the pom to skip this goal and it
works fine.

I haven't tested this with a swf project yet.



Conrad Winchester

unread,
Mar 21, 2011, 3:08:19 PM3/21/11
to flex-sdk-ma...@googlegroups.com
Hi Ben,

OK, so you are completely replacing the playerglobal.swc with the molehill one so that you don't have to add external scope. I am happy but surprised that works - If you have a github account I can allow you to contribute to the repository if you want.

Please let me know what your github account name is and I'll enable it.

If we can get a molehill SDK working then I'd like to blog about that - I sorted out the deploy issues and am able to deploy to release repositories as well as snapshot ones - That was fixed by adding the empty classifier node to the swc descriptor for swc's that need locales.

I am intrigued by your reference to the 10.3 player - does that even exist?

I will try out your techniques later,

cheers for the input

Conrad WInchester

misterbenn

unread,
Mar 21, 2011, 4:48:47 PM3/21/11
to Flex SDK Maven Install
I'm surprised it worked as well. It was my first go and was a more
just so see what would happen. I'm building the Away3D broomstick with
it and there are no problems so far.
I haven't tested it with a flex project (though FlexUnit is one) and
it's it's just a Maven build via Eclipse - I havent seen if there are
any problems with Intellij. Also, as mentioned above, there was a
problem with the dita-asdoc, so there might be a other issues with
configuration settings and goals which haven't come up yet.

Also not sure if the swf-version tag flex-config.xml was being
compiled properly. I was adding in a project specific flex-config, but
not sure if I've left it in. Will check tomorrow as that could
potentially be an issue.

I think 10.3 was a short-lived version when Molehill was still
private, not sure. I had it in my local SDK so left it in. Probably
can go now.

I'd be happy to contribute what I've done - my GitHub name is
bbeaumont.



On Mar 21, 7:08 pm, Conrad Winchester <conrad.winches...@gmail.com>
wrote:

conrad.w...@gmail.com

unread,
Mar 21, 2011, 5:11:55 PM3/21/11
to flex-sdk-ma...@googlegroups.com, misterbenn
I have to go to bed now, but I thought I'd let you know that there are probably some inportant changes that need to be made to the molehill descriptors that i have already made to the standard 4.5 install.

I'll check tomorrow. BTW you are now a contributor to the github repo

Conrad

conrad.w...@gmail.com

unread,
Mar 22, 2011, 3:41:04 AM3/22/11
to flex-sdk-ma...@googlegroups.com, misterbenn
Hi Ben,

I have deployed a release version of what I think is a working Molehill SDK to my nexus repository

its version is

4.5.0.19786-MOLEHILL-022711

and the repository info is

<repository>
<id>flash-nexus-repository-public</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>

Please let me know if you think this is a goodun' It uses the stuff you did, with the information that flex-mojos-beta-6 understands the swf version parameter :-)

<configuration>
<sourceFile>InteractionTest.as</sourceFile>
<debug>true</debug>
<targetPlayer>11.0.0</targetPlayer>
<swfVersion>13</swfVersion>
<ignoreVersionIssues>true</ignoreVersionIssues>
</configuration>

Seems to work .... Very cool


misterbenn

unread,
Mar 22, 2011, 6:25:28 AM3/22/11
to Flex SDK Maven Install
Works for me! Great stuff.

I'm still getting the dita-asdoc error, so still need the
<ditaSkip>true</ditaSkip> tag. However, from other things I've read,
it might just be to do with the project itself.

On Mar 22, 7:41 am, "conrad.winches...@googlemail.com"

misterbenn

unread,
Mar 22, 2011, 9:18:12 AM3/22/11
to Flex SDK Maven Install
Looks like the latest SDK is up on the main Sonatype repo, with
molehill. Appears to have cooincided with the beta-6 release.

https://repository.sonatype.org/content/groups/flexgroup/com/adobe/flex/compiler/4.5.0.19786/

I just deleted everything and did an update - seemed to work.

What we have here is still useful as it means we can get on using new
SDK updates pretty much as soon as they are released - essential as
the Away3D library is under active development.

conrad.w...@gmail.com

unread,
Mar 22, 2011, 10:44:11 AM3/22/11
to Flex SDK Maven Install

Do you still have the dits doc issues with the sonatype deploy?

On Mar 22, 1:18 pm, misterbenn <benbeaum...@gmail.com> wrote:
> Looks like the latest SDK is up on the main Sonatype repo, with
> molehill. Appears to have cooincided with the beta-6 release.
>
> https://repository.sonatype.org/content/groups/flexgroup/com/adobe/fl...

misterbenn

unread,
Mar 22, 2011, 11:12:00 AM3/22/11
to Flex SDK Maven Install
Hmm. Not sure whats going on now.

Away3D library doesn't build with the Sonatype SDK - fails as though
missing the Molehill stuff (can't find Context3D etc).
However if I use a previously compiled Away3D library (i.e. with our
SDK) in a project using the Sonatype SDK it compiles and runs fine.
Both have correct swf version and target player in the generated
config.xml
Doesn't make a whole lot of sense - possibly the Sonatype SDK doesn't
have Molehill but somehow can automagically use it?



On Mar 22, 2:44 pm, "conrad.winches...@googlemail.com"

conrad.w...@gmail.com

unread,
Mar 22, 2011, 11:32:53 AM3/22/11
to Flex SDK Maven Install
I'm sorry, I'm a bit lost now... Do you mean it builds without error
using the sonatype SDK, but will not run after that saying it can't
find context3d?

But my one works?

misterbenn

unread,
Mar 22, 2011, 11:49:05 AM3/22/11
to Flex SDK Maven Install
The Away3D library fails to compile using the Sonatype SDK - the error
is about missing Context3D and other molehill API features. This
indicates the Sonatype SDK doesn't have molehill capabilities.

That means the only Away3D swc in my local Nexus repo is one compiled
using your 4.5.0.19786-MOLEHILL-022711 SDK

I have another swf project which is using the Away3D swc compiled
using 4.5.0.19786-MOLEHILL-022711. If I compile this project using the
Sonatype SDK, it compiles and runs fine - no runtime errors, which
indicates that the sonatype SDK does have Molehill!

If I just use 4.5.0.19786-MOLEHILL-022711 SDK for both project, it all
works.
I'm pretty confused by all this, but for now I'm sticking to
4.5.0.19786-MOLEHILL-022711 as it works.

On Mar 22, 3:32 pm, "conrad.winches...@googlemail.com"

Simon Morvan

unread,
Mar 22, 2011, 12:13:48 PM3/22/11
to flex-sdk-ma...@googlegroups.com
Le 22/03/2011 16:49, misterbenn a écrit :
> The Away3D library fails to compile using the Sonatype SDK - the error
> is about missing Context3D and other molehill API features. This
> indicates the Sonatype SDK doesn't have molehill capabilities.
Deploy the playerglobal.swc that was released separately by adobe to
your local repo using a different classifier. Then, exclude de
playerglobal dependency from the velo sdk and add your own.

--
Simon


misterbenn

unread,
Mar 24, 2011, 1:51:44 PM3/24/11
to Flex SDK Maven Install
Ok, that makes sense, did it like this, where the second entry is an
uploaded molehill playerglobal.swc wit hthe molehill classifier

<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.5.0.19786</version>
<type>pom</type>
<exclusions>
<exclusion>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>4.5.0.19786</version>
<type>swc</type>
<classifier>molehill</classifier>
</dependency>
</dependencies>
>  smime.p7s
> 7KViewDownload

Simon Morvan

unread,
Mar 24, 2011, 7:03:41 PM3/24/11
to flex-sdk-ma...@googlegroups.com
Le 24/03/2011 18:51, misterbenn a écrit :
> Ok, that makes sense, did it like this, where the second entry is an
> uploaded molehill playerglobal.swc wit hthe molehill classifier
Absolutely. It allows keeping a "vanilla" 19786 sdk in your repository
instead of monkey patching it before installation.

--
Simon


Simon Morvan

unread,
Mar 24, 2011, 7:05:37 PM3/24/11
to flex-sdk-ma...@googlegroups.com
Oh ! There was also a flex-config.xml to add in resources (and link to
it in plugin config in your pom.xml) to add the "player 11" and "swf
format 13" target options.

pom.xml (FM plugin configuration):
<configFiles><file>src/main/resources/flex-config.xml</file></configFiles>

flex-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<flex-config>
<target-player>11</target-player>
<swf-version>13</swf-version>
</flex-config>

James Ward

unread,
Apr 2, 2011, 7:33:03 PM4/2/11
to Flex SDK Maven Install
This is great stuff! Will it be merged into the mainline Flex Mojos?
I tried the latest FM 4.0 snapshot and swfVersion didn't work. So I
assume this beta 6 branch has some additional stuff that hasn't been
merged back, right?

Thanks!

-James

Conrad Winchester

unread,
Apr 3, 2011, 4:51:15 AM4/3/11
to flex-sdk-ma...@googlegroups.com
Unfortunately Marvin Froeder does not approve of this activity, does not want my help and has banned me from the flex moos google group. Therefore this stuff will stay in this group.

Really sorry about that.

Conrad

James Ward

unread,
Apr 3, 2011, 11:07:58 AM4/3/11
to flex-sdk-ma...@googlegroups.com
Bummer. :(

I've filled a few feature requests along these lines:
https://issues.sonatype.org/browse/FLEXMOJOS-401
https://issues.sonatype.org/browse/FLEXMOJOS-400


-James

Reply all
Reply to author
Forward
0 new messages