Ok, there are two ways that I can think of to achieve this; VELO maybe
you could validate:
1) Collapse your 2 plugin declarations into 1, which has the 2
execution tags, each of which has its own configuration tag. Keep the
ids in the execution tags, so Maven doesn't complain, but perhaps drop
the phase tags.
2) Consider developing the 2 wrappers yourself: leave only the ${swf}
and ${application} tokens for interpolation, or; use a variable naming
convention e.g. prefix variables for wrapper1.html with 'w1.' and
wrapper2.html with 'w2.' and configure you parameters tag accordingly.
See
http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/wrapper-mojo.html#parameters
for details.
I think I prefer the 2nd solution; makes details about your
application more explicit - the intention isn't so lost in the Maven
configuration.
Darren
On Dec 21, 4:20 pm, velo <[email protected]> wrote:
> http://jira.codehaus.org/browse/MNG-4487
>
> On Dec 21, 12:47 pm, eprevot <[email protected]> wrote:
>
>
>
> > Hi
>
> > Is it possible to make multiple html wrappers for one swf in one
> > project ?
> > For example to launch the same swf with different configuration.
>
> > I tried setting two plugin blocks in my pom. When executing mvn
> > install, the trace says the two executions are called but finally i
> > get just one html :
>
> > <plugin>
> > <groupId>org.sonatype.flexmojos</groupId>
> > <artifactId>flexmojos-maven-plugin</artifactId>
> > <version>${flex-mojos.version}</version>
> > <executions>
> > <execution>
> > <id>make-wrapper-1</id>
> > <phase>generate-resources</phase>
> > <goals>
> > <goal>wrapper</goal>
> > </goals>
> > </execution>
> > </executions>
> > <configuration>
> > <htmlName>Wrapper1</htmlName>
> > ... first conf...
> > </configuration>
> > </plugin>
> > <plugin>
> > <groupId>org.sonatype.flexmojos</groupId>
> > <artifactId>flexmojos-maven-plugin</artifactId>
> > <version>${flex-mojos.version}</version>
> > <executions>
> > <execution>
> > <id>make-wrapper-2</id>
> > <phase>generate-resources</phase>
> > <goals>
> > <goal>wrapper</goal>
> > </goals>
> > </execution>
> > </executions>
> > <configuration>
> > <htmlName>Wrapper2</htmlName>
> > ... other conf...
> > </configuration>
> > </plugin>
>
> > Thx
--
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/