PS: Thanks to this discussion I'm adding this to my libs too ;-)

2011/8/17 Christofer Dutz <[email protected]>:
> Glad I could help :-)
>
> 2011/8/17 kb <[email protected]>:
>> Chris,
>>
>> This may b the answer , correct me if i'm wrong.
>>
>> A swc is nothing but a zip of a swf and a xml file.
>> so create-rsl goal would actually extract the swf file from swc,
>> optimize it ( 
>> http://livedocs.adobe.com/flex/3/html/help.html?content=rsl_07.html#226272
>> )
>> create digest and the create a swf artifact out of it.
>>
>> But ur pointer was very useful for me.. I had assumed that the copy-
>> flex-resources would automatically perform this goal when a swc
>> dependency is specified as rsl.
>> but it's not doing. Flash builder does this and hence that was
>> expectation.
>> May be this can be an ehnancement request on part of flex-mojos :)
>>
>> So, now essentially, for all library projects we can add create-rsl
>> goal, and install artifacts and then  copy-flex-resources plugin would
>> pick it up from there.
>>
>> Thanks for that pointer. That was really helpful.
>>
>> On Aug 17, 3:41 pm, Christofer Dutz <[email protected]>
>> wrote:
>>> And if they were actually equal, there would be no need for the
>>> flexmojos create-rsl 
>>> goal:http://repository.sonatype.org/content/sites/flexmojos-site/4.0-beta-...
>>>
>>> Chris
>>>
>>> 2011/8/17 Christofer Dutz <[email protected]>:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> > Well I just know, that I purchased IBM Elixir more than one Year ago
>>> > and that contained every Lib in a swc and an rsl version ... that's
>>> > what made me come to that assumption.
>>>
>>> > Chris
>>>
>>> > 2011/8/17 kb <[email protected]>:
>>> >> Just did some documentation reading and i doubt if there's any such
>>> >> thingy. i.e seperate versions of swc for rsls.
>>>
>>> >> from Adobe 
>>> >> livedocshttp://livedocs.adobe.com/flex/3/html/help.html?content=rsl_01.html#1...
>>>
>>> >> A standard or cross-domain RSL is a library of custom components,
>>> >> classes, and other assets that you create. You can create a library
>>> >> using either Flex Builder or the compc command-line compiler. A
>>> >> library is a SWC file or open directory that contains a library.swf
>>> >> file and a catalog.xml file, as well as properties files and other
>>> >> embedded assets. You can use any library as an RSL, but libraries do
>>> >> not need to be used as RSLs.
>>>
>>> >> On Aug 17, 2:56 pm, Christofer Dutz <[email protected]>
>>> >> wrote:
>>> >>> Sorry ... never done that before ... but if you find out, please post 
>>> >>> it ;-)
>>>
>>> >>> Chris
>>>
>>> >>> 2011/8/17 kb <[email protected]>:
>>>
>>> >>> > Chris,
>>>
>>> >>> > how to do it ?
>>> >>> > Any idea on how to compile a swc as an rsl version using flex-mojos ?
>>>
>>> >>> > On Aug 17, 2:01 pm, Christofer Dutz <[email protected]>
>>> >>> > wrote:
>>> >>> >> Well as far as I know you can't deploy any swc as rsl library. At
>>> >>> >> least I know that I have several commercial libs, that are provided 
>>> >>> >> as
>>> >>> >> "swc" and "rsl.swc", so I bet there is a difference. So If you don't
>>> >>> >> have an rsl-version, simply use it as ordinary library.
>>>
>>> >>> >> Chris
>>>
>>> >>> >> 2011/8/17 kb <[email protected]>:
>>>
>>> >>> >> > Chris,
>>>
>>> >>> >> > Sorry that i copied a different error message.
>>> >>> >> > The message is
>>> >>> >> > [ERROR] Failed to execute goal 
>>> >>> >> > org.sonatype.flexmojos:flexmojos-maven-
>>> >>> >> > plugin:4.0-RC1:copy-flex-resources (copy-flex-resources) on project
>>> >>> >> > smh: Execution copy-flex-resources of goal
>>> >>> >> >  org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex-
>>> >>> >> > resources failed: Failed to resolve artifact
>>> >>> >> > org.puremvc.pipes:Utility_AS3_MultiCore_Pipes:swf:1.1 -> [Help 1]
>>>
>>> >>> >> > i.e there are no custom dependencies.
>>> >>> >> > I've added thse dependencies in my swf project pom file
>>> >>> >> >    <dependency>
>>> >>> >> >        <groupId>org.puremvc.pipes</groupId>
>>> >>> >> >        <artifactId>Utility_AS3_MultiCore_Pipes</artifactId>
>>> >>> >> >        <version>1.1</version>
>>> >>> >> >        <type>swc</type>
>>> >>> >> >        <scope>rsl</scope>
>>> >>> >> >    </dependency>
>>> >>> >> >    <dependency>
>>> >>> >> >        <groupId>org.puremvc.multicore</groupId>
>>> >>> >> >        <artifactId>PureMVC_AS3_MultiCore</artifactId>
>>> >>> >> >        <version>1.0.5</version>
>>> >>> >> >        <type>swc</type>
>>> >>> >> >        <scope>rsl</scope>
>>> >>> >> >    </dependency>
>>>
>>> >>> >> > and copy-flex-resources is throwing error when attempting to copy 
>>> >>> >> > one
>>> >>> >> > of these.
>>>
>>> >>> >> > On Aug 17, 12:46 pm, Christofer Dutz 
>>> >>> >> > <[email protected]>
>>> >>> >> > wrote:
>>> >>> >> >> I assume that the missing lib is referenced by one of your custom 
>>> >>> >> >> dependencies.
>>> >>> >> >> In this case you set their scope to "rsl" but this scope is not
>>> >>> >> >> automatically applied to the dependencies of the libs that module
>>> >>> >> >> references (It's a Maven limitation).
>>> >>> >> >> You would have to explicitly define the dependency to 
>>> >>> >> >> com.hp.ci:ci-ui-lib:swf:
>>> >>> >> >> 0.0.1-SNAPSHOT with scope rsl ... I think ...
>>>
>>> >>> >> >> Chris
>>>
>>> >>> >> >> 2011/8/17 kb <[email protected]>:
>>>
>>> >>> >> >> > UPDATE 1 :
>>> >>> >> >> > I somehow got that to work with combination of 4.0-RC1 and 
>>> >>> >> >> > correcting
>>> >>> >> >> > the pom. But there is another problem. The custom dependencies 
>>> >>> >> >> > i had
>>> >>> >> >> > added like
>>>
>>> >>> >> >> >    <dependency>
>>> >>> >> >> >        <groupId>org.puremvc.pipes</groupId>
>>> >>> >> >> >        <artifactId>Utility_AS3_MultiCore_Pipes</artifactId>
>>> >>> >> >> >        <version>1.1</version>
>>> >>> >> >> >        <type>swc</type>
>>> >>> >> >> >        <scope>rsl</scope>
>>> >>> >> >> >    </dependency>
>>>
>>> >>> >> >> >    <dependency>
>>> >>> >> >> >        <groupId>org.puremvc.multicore</groupId>
>>> >>> >> >> >        <artifactId>PureMVC_AS3_MultiCore</artifactId>
>>> >>> >> >> >        <version>1.0.5</version>
>>> >>> >> >> >        <type>swc</type>
>>> >>> >> >> >        <scope>rsl</scope>
>>> >>> >> >> >    </dependency>
>>> >>> >> >> > are not getting copied. getting following error
>>>
>>> >>> >> >> > [ERROR] Failed to execute goal 
>>> >>> >> >> > org.sonatype.flexmojos:flexmojos-maven-
>>> >>> >> >> > plugin:4.0-RC1:copy-flex-resources (copy-flex-resources) on 
>>> >>> >> >> > project
>>> >>> >> >> > smh: Execution copy-flex-resources of goal
>>> >>> >> >> > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex-
>>> >>> >> >> > resources failed: Failed to resolve artifact 
>>> >>> >> >> > com.hp.ci:ci-ui-lib:swf:
>>> >>> >> >> > 0.0.1-SNAPSHOT -> [Help 1]
>>>
>>> >>> >> >> > I believe the flex-mojos plugin shud automatically extract the 
>>> >>> >> >> > swf
>>> >>> >> >> > from respective swc and copy to destination instead of we 
>>> >>> >> >> > installing
>>> >>> >> >> > into repository. Am i correct on this ?
>>>
>>> >>> >> >> > On Aug 17, 3:05 am, Christofer Dutz 
>>> >>> >> >> > <[email protected]>
>>> >>> >> >> > wrote:
>>> >>> >> >> >> I know, that I used to use an older FM version for copying the
>>> >>> >> >> >> resources, in one of my projects. Even with FM4 there are some 
>>> >>> >> >> >> issues
>>> >>> >> >> >> with that project.
>>> >>> >> >> >> On another project there are no problems at all.
>>>
>>> >>> >> >> >> While debugging the problem, I narrowed it down, that it was a 
>>> >>> >> >> >> result
>>> >>> >> >> >> of FM being unable to load the pom of my project for some 
>>> >>> >> >> >> reasons and
>>> >>> >> >> >> this caused a NPE while resolving the name of the project.
>>> >>> >> >> >> Unfortunately I didn't manage to narrow it down to what the 
>>> >>> >> >> >> actual
>>> >>> >> >> >> problem was. But as I resolved it by using an ollde version 
>>> >>> >> >> >> (3.7.1) I
>>> >>> >> >> >> quit searching.
>>>
>>> >>> >> >> >> But reading your error message, seems to be a different issue. 
>>> >>> >> >> >> I
>>> >>> >> >> >> remember that there are 2 libs in the SDK that don't folllow 
>>> >>> >> >> >> the usual
>>> >>> >> >> >> versioning rule and are deployed in the FM repo with a 
>>> >>> >> >> >> version-number
>>> >>> >> >> >> that is different from the one used by Adobe ... textLayout is 
>>> >>> >> >> >> one of
>>> >>> >> >> >> them. So the problem is that you provide the artifact url 
>>> >>> >> >> >> template in
>>> >>> >> >> >> the rslUrls property so flexmojos will try to download a 
>>> >>> >> >> >> textLayout in
>>> >>> >> >> >> version 4.1.0.16076 but no Adobe Server contains such an 
>>> >>> >> >> >> artifact (I
>>> >>> >> >> >> think I remeber the version to be something 2.xxx). I think 
>>> >>> >> >> >> this might
>>> >>> >> >> >> be causing your problems. I use the following config with 
>>> >>> >> >> >> FM4.0-RC1
>>> >>> >> >> >> fogether with Fllex 4.5.0.20967 and it works great:
>>>
>>> >>> >> >> >>                 <plugin>
>>> >>> >> >> >>                     <groupId>org.sonatype.flexmojos</groupId>
>>> >>> >> >> >>                     
>>> >>> >> >> >> <artifactId>flexmojos-maven-plugin</artifactId>
>>> >>> >> >> >>                     <version>${flexmojos.version}</version>
>>> >>> >> >> >>                     <configuration>
>>> >>> >> >> >>                         <debug>${flex.debug}</debug>
>>> >>> >> >> >>                         <swfVersion>11</swfVersion>
>>> >>> >> >> >>                         <licenses>
>>> >>> >> >> >>                             
>>> >>> >> >> >> <flashbuilder4>${flex.serial-number}</flashbuilder4>
>>> >>> >> >> >>                         </licenses>
>>> >>> >> >> >>                         <themes>
>>> >>> >> >> >>                             <theme>
>>>
>>> >>> >> >> >> ${settings.localRepository}/com/adobe/flex/framework/framework/${flex.versi
>>> >>> >> >> >>  on}/configs_zip/themes/Spark/spark.css
>>> >>> >> >> >>                             </theme>
>>> >>> >> >> >>                         </themes>
>>> >>> >> >> >>                         <rslUrls>
>>> >>> >> >> >>                             
>>> >>> >> >> >> <url>rsl/{artifactId}-{version}.{extension}</url>
>>> >>> >> >> >>                         </rslUrls>
>>> >>> >> >> >>                     </configuration>
>>> >>> >> >> >>                     <dependencies>
>>> >>> >> >> >>                         <!-- This handles a bug in maven which 
>>> >>> >> >> >> causes
>>> >>> >> >> >> problems with flex resources -->
>>> >>> >> >> >>                         <dependency>
>>> >>> >> >> >>                             
>>> >>> >> >> >> <groupId>org.sonatype.flexmojos</groupId>
>>>
>>> >>> >> >> >> <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
>>> >>> >> >> >>                             
>>> >>> >> >> >> <version>${flexmojos.version}</version>
>>> >>> >> >> >>                         </dependency>
>>> >>> >> >> >>                         <!-- Without this FM will use the 
>>> >>> >> >> >> compiler
>>> >>> >> >> >> configured in its
>>> >>> >> >> >>                         master pom, which will result in 
>>> >>> >> >> >> version conflicts -->
>>> >>> >> >> >>                         <dependency>
>>> >>> >> >> >>                             <groupId>com.adobe.flex</groupId>
>>> >>> >> >> >>                             <artifactId>compiler</artifactId>
>>> >>> >> >> >>                             <version>${flex.version}</version>
>>> >>> >> >> >>                             <type>pom</type>
>>> >>> >> >> >>                         </dependency>
>>> >>> >> >> >>                     </dependencies>
>>> >>> >> >> >>                 </plugin>
>>>
>>> >>> >> >> >> The main difference ist, that I use the rsls
>>>
>>> ...
>>>
>>> read more »
>>
>> --
>> 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