VELO,

I have a project with a flex and web modules.  While running within
Flexbuilder, I am able to copy the generated wrapper files into the
war file.  However, when running from command line, like I would need
to run it when using Hudson, the wrapper goal doesn't seem to do
anything.

I've checked all the posts and I don't see what it is that I'm doing
wrong.

Here's the relevant portion of my test-war module's pom.xml:

         <plugin>
             <groupId>org.sonatype.flexmojos</groupId>
             <artifactId>flexmojos-maven-plugin</artifactId>
             <version>${flex-mojos.version}</version>

             <executions>
                 <execution>
                     <goals>
                         <goal>wrapper</goal>
                         <goal>copy-flex-resources</goal>
                     </goals>

                     <configuration>
                         <sourceFile>test.mxml</sourceFile>
                         <templateURI>folder:${basedir}/../html-
template</templateURI>
                         <parameters>
                              <swf>${build.finalName}</swf>
                              <width>100%</width>
                              <height>100%</height>
                         </parameters>

                         <wrapperArtifact>
                             <groupId>com.acs.test</groupId>
                             <artifactId>test-flex</artifactId>
                             <version>${version}</version>
                             <type>swf</type>
                         </wrapperArtifact>

                         <templateInclusions>
                             <String>**/*.jsp</String>
                             <String>WEB-INF/**/*</String>
                         </templateInclusions>

                         <templateExclusions>
                             <String>**/*.txt</String>
                         </templateExclusions>
                     </configuration>
                 </execution>
             </executions>
         </plugin>

And ….

             <dependency>
                  <groupId>${project.groupId}</groupId>
                  <artifactId>test-flex</artifactId>
                  <version>${version}</version>
                  <classifier>html-bundle</classifier>
                  <type>zip</type>
                  <scope>provided</scope>
            </dependency>


I am using FlexMojos 3.5.0.  When I run “mvn clean install”, my war
file only contains the swf file and an index.html file that isn’t a
flex wrapper.

Finally, what is the best way to handle this dual use of maven (inside
and outside of flexbuilder)?  Profiles perhaps?  I look forward to any
help you can provide as I am sure that you are extremely busy.  Great
tool by the way!

Rene









-- 
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://flexmojos.sonatype.org/

Reply via email to