Ok ... I think I get the point. But I would suggest not to double-add the 
dependencies as swc and swf.
Usually I resolved this problem by creating a pom artifact that is not part of 
the reactor. I manually add this pom to IntelliJ and in side all I have is 
"<module>../../module-a/client</module>" ... but I really get the point ... 
Thinking about it ... would it be helpful to have a goal in flexmojos that does 
the same as the "copy-flex-resources" goal, but locally for testing?
Eventually it could also be possible to simply use that goal with an extra 
execution ... I'll test that right away ... :-)

Chris

________________________________________
Von: mscharp <michael.sch...@fmr.com>
Gesendet: Mittwoch, 2. September 2015 00:34
An: dev@flex.apache.org
Betreff: Re: AW: FlexMojos with RSLs

Hey Chris.

Thanks for the insight.  I didn't edit the wiki, but wanted to share at
least what I had found in case it was helpful as a starting point for you
writing the wiki or anyone else upgrading.

The reason I have to depend on the swf files explicitly is because of my
project structure.  I have 2 projects, one is a war project and the other is
the flex project.  When I build my flex project, and it outputs to the
target directory, and without the dependency on the RSL swfs no rsl
directory or files are created.  I need them there for testing locally while
not inside of a war.  The war project does not depend on the swfs explicitly
and it does correctly install the RSLs inside of the war.

I noticed a couple things also that I thought I'd share in case others run
into the same issues.  Using the dependency like this:

<dependency>
        <groupId>org.apache.flex.framework</groupId>
        <artifactId>framework</artifactId>
        <version>${flex.sdk.version}</version>
        <classifier>${language}</classifier>
        <type>rb.swc</type>
        <scope>rsl</scope>
</dependency>

Resulted in a "Flex Error #1001: Digest mismatch with RSL" error.  After
reading your email I removed the classifier and changed it to:

<dependency>
        <groupId>org.apache.flex.framework</groupId>
        <artifactId>framework</artifactId>
        <version>${flex.sdk.version}</version>
        <type>rb.swc</type>
        <scope>rsl</scope>
</dependency>

And then I got this error "Error: unable to load SWC
framework-4.14.1.rb.swc: could not find catalog.xml within the SWC."

So then I changed it (removed scope) to:

<dependency>
        <groupId>org.apache.flex.framework</groupId>
        <artifactId>framework</artifactId>
        <version>${flex.sdk.version}</version>
        <type>rb.swc</type>
</dependency>

And it all seems to work.

Thanks again Chris for all the work you put into this and answering emails!



--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FlexMojos-with-RSLs-tp48944p48956.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to