Hi Jamie,
As you don't get any answer, let me answer you even if I'm late ;-)
Unfortunately there is no integration between FM and m2e. I don't know if
you are using Flash Builder, but just in case here is our workaround:
- create a folder named "flex-bin" (for example) in your webapp project,
inside the /target directory
- open your swf project properties > select Flex Build Path
- configure the output folder to point to the folder previously created
${DOCUMENTS}/yourWebAppProject/target/flex-bin
- then open your webapp project properties > select Deployment Assembly
- add the /target/flex-bin folder to the packaging structure
Hope this helps
Best regards
Remi
On Tue, Nov 15, 2011 at 12:05 AM, Jamie Cramb <[email protected]> wrote:
> Hi all,
>
> We are currently trying to setup a Flex build using Flexmojos but we
> are having a few issues getting it to play nicely with the WTP tools
> in Eclipse 3.6.x (we are using STS 2.6.1.SR1 to be exact).
>
> We have the following setup:
>
> 1) We are using Flexmojos version 3.8 with m2eclipse and Eclipse
> 3.6.x.
> 2) We have a Flex SWF project that is a dependency of the WAR project;
> the artifact has been published to the repository and is also present
> in the workspace.
> 3) We have a WAR project which declares the Flex SWF project as a
> dependency and also includes the flexmojos-maven-plugin with the "copy-
> flex-resources" goal.
>
> <plugin>
> <groupId>org.sonatype.flexmojos</groupId>
> <artifactId>flexmojos-maven-plugin</artifactId>
> <version>3.8</version>
> <configuration>
> <useFinalName>true</useFinalName>
> <stripVersion>true</stripVersion>
>
> <stripModuleArtifactInfo>true</stripModuleArtifactInfo>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>copy-flex-resources</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> We are able to run mvn package manually and have the exploded WAR
> build to the project's /target; however, we are unable to get WTP to
> automatically package up the SWFs as part of the server deploy (i.e.
> run the copy-flex-resources goal so that the SWFs appear in the root
> of the exploded war in the wtpwebapps folder).
>
> Is Flexmojos integrated well enough with WTP that it will support
> execution of the copy-flex-resources during the auto-package and
> deploy of the WAR project?
>
> Thanks in advance.
>
> Cheers,
> Jamie
>
> --
> 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/