I provided one solution here - 
http://groups.google.com/group/flex-mojos/browse_thread/thread/a2fe8cf8f6e62b2b
using the folder hierarchy but it sounds like since you already using
a zip that the strategy of using an an assembly in your swf wrapper
pom might work better.

                                    <plugin>

 
<groupId>org.apache.maven.plugins</groupId>

                                        <artifactId>maven-assembly-
plugin</artifactId>

                                        <executions>

                                            <execution>

                                                <id>make shared
resources</id>

                                                <goals>

                                                    <goal>single</
goal>

                                                </goals>

                                                <phase>package</phase>

                                                <configuration>

                                                    <descriptors>

                                                        <descriptor>$
{assembly.descriptor}</descriptor>

                                                    </descriptors>

                                                </configuration>

                                            </execution>

                                        </executions>

                                    </plugin>

And then unpack the dependency in your war packaging pom

                        <plugins>

                                    <plugin>

                                                <artifactId>maven-
dependency-plugin</artifactId>

                                                <executions>

 
<execution>

 
<id>unpack-modeler-zip</id>

 
<goals>

 
<goal>unpack-dependencies</goal>

 
</goals>

 
<phase>generate-resources</phase>

 
<configuration>

 
<outputDirectory>${project.build.directory}/site</outputDirectory>

 
<includeArtifacIds>Modeler-swf,Modeler-fixture-test</
includeArtifacIds>

 
<includeGroupIds>${project.groupId}</includeGroupIds>

 
<includeClassifiers>html-bundle,html-bundle-qtp</includeClassifiers>

 
<excludeTransitive>true</excludeTransitive>

 
<excludeTypes>jar,swf</excludeTypes>

 
</configuration>

                                                            </
execution>

                                                </executions>

                                    </plugin>

                        </plugins>

            <dependencies>

                        <dependency>

                                    <groupId>com.xtrac.plm.modeler</
groupId>

                                    <artifactId>Modeler-swf</
artifactId>

                                    <version>6.6-SNAPSHOT</version>

                                    <classifier>${swf.classifier}</
classifier>

                                    <type>zip</type>

                                    <scope>provided</scope>

                                    <exclusions>

                                                <exclusion>

 
<groupId>com.adobe.flex.sdk</groupId>

 
<artifactId>datavisualization</artifactId>

                                                </exclusion>

                                                <exclusion>

 
<groupId>com.adobe.flex.sdk</groupId>

 
<artifactId>framework</artifactId>

                                                </exclusion>

                                                <exclusion>

 
<groupId>com.adobe.flex.sdk</groupId>

 
<artifactId>rpc</artifactId>

                                                </exclusion>

                                    </exclusions>

                        </dependency>

            </dependencies>

On Aug 6, 8:58 am, Marvin Froeder <[email protected]> wrote:
> I don't recall, there is probably a reason, I just don't touch this code
> since a long, long time....
>
> On Fri, Aug 6, 2010 at 11:53 AM, Sebastien Bordes <
>
> [email protected]> wrote:
> > Like many people I'm trying to create the html wrapper with the
> > wrapper goal into my war maven module...
>
> > Here the plugin called by the war module
>
> >                        <plugin>
> >                                <groupId>org.sonatype.flexmojos</groupId>
>
> >  <artifactId>flexmojos-maven-plugin</artifactId>
> >                                <version>3.7.1</version>
> >                                <executions>
> >                                        <execution>
> >                                                <goals>
>
> >  <goal>copy-flex-resources</goal>
> >                                                        <goal>wrapper</goal>
> >                                                </goals>
> >                                        </execution>
> >                                </executions>
>
> >                                <configuration>
> >                                <htmlName>index</htmlName>
>
> >  <templateURI>embed:client-side-detection-with-history</
> > templateURI>
> >                                        <wrapperArtifact>
> >                                                <groupId>mycompany</groupId>
>
> >  <artifactId>application</artifactId>
> >                                        </wrapperArtifact>
> >                                </configuration>
> >                        </plugin>
>
> > The htmlName argument is managed but not the templateURI and after
> > having a look into the source code I saw this in
> > HtmlWrapperMojo.rewireForWar:
>
> >        final Xpp3DomMap config =
> > MavenPluginUtil.getParameters(warPlugin);
>
> >        // Map this.templateURI to folder:
> > {warPlugin.warSourceDirectory)
> >        String warSourceDirectory = config.get("warSourceDirectory");
> >        if (warSourceDirectory == null) {
> >            warSourceDirectory = project.getBasedir() + "/src/main/
> > webapp";
> >        }
> >        this.templateURI = "folder:" + warSourceDirectory;
>
> > Why did you override this value
>
> > As a workaround U unzip the template.zip intot the src/main/webapp but
> > I would prefer not having to let these files here
>
> > Thanks
>
> > --
> > 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]<flex-mojos%[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/

Reply via email to