You could add an <execution/> statement to your <plugin/> section with
the <goal>compile-swf</goal> and the appropriate <configuration/> but I
doubt velo will support it if you ran into trouble.
The best approach is IMHO to cut your application into several pieces.
One project per final application and an additional project (if needed)
containing all the common code that will be shared amongst your final
applications.
A parent pom.xml referencing all those (maven) module and you're set up.
See
https://github.com/Flexmojos/flexmojos/tree/flexmojos-4.x/flexmojos-testing/flexmojos-test-harness/projects/concept/simple-flex-modular
for example of needed pom.xml.
--
Simon.
Le 28/11/2011 14:55, gabriel a écrit :
how can i compile 2 applications in one project with 4.0-beta-3 or 4.0-
beta-7?
i have ofbackoffice.mxml& ofmanager.mxml in the same project.
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flex.mojos.maven.version}</version>
<configuration>
<debug>true</debug>
<locales>
<param>en_US</param>
</locales>
<sourceFile>./ofmanager.mxml</sourceFile>
<finalName>ofmanager</finalName>
<contextRoot>onefingerserver</contextRoot>
<services>../oneFingerServer/src/main/webapp/WEB-INF/flex/
services-config.xml</services>
<configurationReport>true</configurationReport>
<compilerWarnings>
<show-actionscript-warnings>false</show-actionscript-warnings>
<warn-bad-nan-comparison>false</warn-bad-nan-comparison>
</compilerWarnings>
<additionalApplications>
<param>./ofbackoffice.mxml</param>
</additionalApplications>
</configuration>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
Thanks, Gabriel
--
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/