Hi VELO
I'm not sure I follow... so to be sure:
The pom of my WAR module looks somewhat like this:
...
<build>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<goals>
<goal>copy-flex-resources</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>my.comp</groupId>
<artifactId>swf</artifactId>
<version>1.0-SNAPSHOT</version>
<type>swf</type>
</dependency>
</dependencies>
The dependency is toward the MainApp SWF artifact - which IS included
in the war, but the remaining modules are not.
You ask if I have added dependencies to the other modules - I have
tried adding a dependency to one of the modules by adding classifier
attribute:
<dependency>
<groupId>my.comp</groupId>
<artifactId>swf</artifactId>
<version>1.0-SNAPSHOT</version>
<type>swf</type>
<classifier>ModuleOne</classifier>
</dependency>
No error is reported when building the WAR module, but only the
MainApp SWF is included.
If you know of any other way to do this, I'm all ears.
Thanks
/Michael
On Oct 5, 2:17 pm, Marvin Froeder <[email protected]> wrote:
> ?!
> I have no idea what lead you into that conclusion.
>
> VELO
>
> On Mon, Oct 5, 2009 at 9:14 AM, Michael Martinsen <
>
> [email protected]> wrote:
>
> > The modules (module1 and module2) are not Maven artifacts as the
> > MainApp SWF itself is. They are simply Flex modules which live
> > togehter with the MainApp SWF Maven module; the modules are loaded by
> > the main app at runtime.
> > Hence - as far as I know - I cannot add a dependency to those (without
> > splitting them into separate maven modules)
>
> > /Michael
>
> > On Oct 5, 1:44 pm, Marvin Froeder <[email protected]> wrote:
> > > Did you add all 3 dependencies to your war pom? Mean the main swf,
> > module1
> > > and module2?
> > > If yes, and did not work, it is a limitation on copy mojo.
>
> > > VELO
>
> > > On Mon, Oct 5, 2009 at 4:01 AM, Michael Martinsen <
>
> > > [email protected]> wrote:
>
> > > > Hi
>
> > > > I'm currently in the process of moving an existing Flex project which
> > > > is
> > > > based on pure-mvc and has multiple Flex modules.
> > > > My project has the following maven layout:
>
> > > > <root>
> > > > -> swf
> > > > -> war
>
> > > > Now the swf module uses the mojo compiler and it is called with the
> > > > moduleFiles included:
>
> > > > <plugin>
> > > > <groupId>org.sonatype.flexmojos</groupId>
> > > > <artifactId>flexmojos-maven-plugin</artifactId>
> > > > <version>3.3.0</version>
> > > > <configuration>
> > > > <sourceFile>MainApp.mxml</sourceFile>
> > > > <targetPlayer>10.0.0</targetPlayer>
> > > > <moduleFiles>
> > > > <module>ModuleOne.mxml</module>
> > > > <module>ModuleTwo.mxml</module>
> > > > </moduleFiles>
>
> > > > It produces the main SWF file AND the ModuleOne.swf and ModuleTwo.swf.
>
> > > > The war module uses the copy-flex-resource goal to copy the resources
> > > > into
> > > > the war and it has a dependency to the swf module.
> > > > But only the main app of the swf module is included...
> > > > Is there any way to make the copy-flex-resource goal do this?
>
> > > > Thanks
>
> > > > /Michael
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---