Hello,

We got the same problem and we fixed it by setting the dependency of
the compiler in the pluggin declaration

                <plugin>
                     <groupId>org.sonatype.flexmojos</groupId>
                     <artifactId>flexmojos-maven-plugin</artifactId>
                     <version>${flexmojos-maven-plugin.version}</
version>
                     <dependencies>
                         <dependency>
                             <groupId>com.adobe.flex</groupId>
                             <artifactId>compiler</artifactId>
                             <version>${flex.sdk.version}</version>
                             <type>pom</type>
                         </dependency>
                         <dependency>
                             <groupId>com.adobe.flex.compiler</
groupId>
                             <artifactId>asdoc</artifactId>
                             <version>${flex.sdk.version}</version>
                             <type>zip</type>
                             <classifier>template</classifier>
                         </dependency>
                     </dependencies>
                </plugin>


with the folllowing property

<flexmojos-maven-plugin.version>3.4.2</flexmojos-maven-plugin.version>
<flex.sdk.version>3.4.0.9271</flex.sdk.version>

Hope it will help

Cyril Balit



On Oct 22, 5:48 pm, Marvin Froeder <[email protected]> wrote:
> So this is not 
> working:http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-sw...
>
> It should be fine...
> That is not good....
>
> VELO
>
> On Thu, Oct 22, 2009 at 2:44 PM, ruchitel <[email protected]> wrote:
>
> > Thanks, somehow missed it.
> > Looks like there is no way to change maven build behavior to
> > statically link shared libraries. I added  line
> > <staticLinkRuntimeSharedLibraries>true</
> > staticLinkRuntimeSharedLibraries> to plugin configuration in pom.xml.
> > I also added <static-link-runtime-shared-libraries>true</static-link-
> > runtime-shared-libraries> to configFile. But, in config report it
> > still shows as  <static-link-runtime-shared-libraries>false</static-
> > link-runtime-shared-libraries>.
>
> > On Oct 22, 7:55 am, Logan Allred <[email protected]> wrote:
> > > On Wed, Oct 21, 2009 at 1:16 PM, ruchitel <[email protected]> wrote:
> > > > I run both builds and compared files as outlined in FAQ. While not
> > > > identical (I am not even sure it's possible to make them identical),
> > > > for all practical differences are inconsequiential, see below.
>
> > > Well, there are differences that are not inconsequential.
>
> > > > FlexBuilder Dump begin**************************************
> > > >   <runtime-shared-library-path>
> > > >      <path-element>D:\bea\dev\Flex Builder 3 Plug-In\sdks
> > > > \3.4.0\frameworks\libs\framework.swc</path-element>
> > > >      <rsl-url>framework_3.4.0.9271.swz</rsl-url>
> > > >   </runtime-shared-library-path>
> > > >   <runtime-shared-library-path>
> > > >      <path-element>D:\bea\dev\Flex Builder 3 Plug-In\sdks
> > > > \3.4.0\frameworks\libs\rpc.swc</path-element>
> > > >      <rsl-url>rpc_3.4.0.9271.swz</rsl-url>
> > > >   </runtime-shared-library-path>
> > > >   <runtime-shared-library-path>
> > > >      <path-element>D:\bea\dev\Flex Builder 3 Plug-In\sdks
> > > > \3.4.0\frameworks\libs\datavisualization.swc</path-element>
> > > >      <rsl-url>datavisualization_3.4.0.9271.swz</rsl-url>
> > > >   </runtime-shared-library-path>
> > > >   <!-- static-link-runtime-shared-libraries: statically link the
> > > > libraries specified by the -runtime-shared-libraries-path option.-->
> > > >   <static-link-runtime-shared-libraries>true</static-link-runtime-
> > > > shared-libraries>
> > > > FlexBuilder Dump end**************************************
> > > > Maven dump begin***************************************
> > > >        <runtime-shared-library-path>
>
> >  <path-element>D:\data\projects\ciss\R4\code\SU_CISS_Dev_R4\vobs
> > > > \CISS_lib\lib\com\adobe\flex\framework\framework
> > > > \3.4.0.9271\framework-3.4.0.9271.swc</path-element>
> > > >                <rsl-url>framework_3.4.0.9271.swz</rsl-url>
> > > >        </runtime-shared-library-path>
> > > >        <runtime-shared-library-path>
>
> >  <path-element>D:\data\projects\ciss\R4\code\SU_CISS_Dev_R4\vobs
> > > > \CISS_lib\lib\com\adobe\flex\framework\rpc
> > > > \3.4.0.9271\rpc-3.4.0.9271.swc</path-element>
> > > >                <rsl-url>rpc_3.4.0.9271.swz</rsl-url>
> > > >        </runtime-shared-library-path>
> > > >        <runtime-shared-library-path>
>
> >  <path-element>D:\data\projects\ciss\R4\code\SU_CISS_Dev_R4\vobs
> > > > \CISS_lib\lib\com\adobe\flex\framework\datavisualization
> > > > \3.4.0.9271\datavisualization-3.4.0.9271.swc</path-element>
> > > >                <rsl-url>datavisualization_3.4.0.9271.swz</rsl-url>
> > > >        </runtime-shared-library-path>
>
> >  <static-link-runtime-shared-libraries>false</static-link-runtime-
> > > > shared-libraries>
> > > > Maven dump end***************************************
>
> > > You'll notice that Flex Builder has
> > > <static-link-runtime-shared-libraries> set to true while Maven has it
> > > false.  That means that FB is not actually using your RSLs. You can
> > > confirm this by removing the RSL .swf and .swz files from the FB
> > > bin-debug and noticing the app still runs without RSL errors.
>
> > > I have my RSLs defined like this in my pom, see if that helps:
> > >           <rslUrls>
>
> > <rsl>{artifactId}-{version}.{extension},,{artifactId}-{version}.swf</rsl>
> > >           </rslUrls>
>
> > > Logan
--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to