The html and swf artifacts appear to be in the war module targets/war/work On Tue, Sep 13, 2011 at 10:32 AM, Christofer Dutz < [email protected]> wrote:
> Oh ... sorry ... you allready did. My bad ... should have more > carefully read you post :-( > Did you have a look at what is generated in the targets exploded war > directory. Is the wrapper there? > > Chris > > > 2011/9/13 Christofer Dutz <[email protected]>: > > Take a look at this chapter: > > > https://docs.sonatype.org/display/FLEXMOJOS/Html+Wrapper+Mojo#HtmlWrapperMojo-war > > > > Chris > > > > 2011/9/13 Christofer Dutz <[email protected]>: > >> That plugin only copies your swf dependencies ... it doesn't generate > any html. > >> > >> Chris > >> > >> 2011/9/13 Marc Luce <[email protected]>: > >>> I have this in my flex pom > >>> > >>> <executions> > >>> > >>> <execution> > >>> > >>> <goals> > >>> > >>> <goal>copy-flex-resources</goal> > >>> > >>> <goal>compile-swf</goal> > >>> > >>> <goal>wrapper</goal> > >>> > >>> </goals> > >>> > >>> </execution> > >>> > >>> </executions> > >>> > >>> <configuration> > >>> > >>> > >>> > >>> <wrapperArtifact> > >>> > >>> <groupId>${groupId}</groupId> > >>> > >>> <artifactId>${artifactId}</artifactId> > >>> > >>> </wrapperArtifact> > >>> > >>> and this in my webapp pom > >>> > >>> <executions> > >>> > >>> <execution> > >>> > >>> <goals> > >>> > >>> <!-- <goal>copy-flex-resources</goal> --> > >>> > >>> <goal>wrapper</goal> > >>> > >>> </goals> > >>> > >>> </execution> > >>> > >>> </executions> > >>> > >>> <configuration> > >>> > >>> <wrapperArtifact> > >>> > >>> <groupId>${groupId}</groupId> > >>> > >>> <artifactId>odex-flex</artifactId> > >>> > >>> </wrapperArtifact> > >>> > >>> > >>> > >>> <templateInclusions> > >>> > >>> <String>html-template/*.html</String> > >>> > >>> <String>html-template/*.js</String> > >>> > >>> </templateInclusions> > >>> > >>> </configuration> > >>> > >>> It does not generate the "wrapped" html. I am not sure what I am doing > >>> wrong > >>> > >>> On Tue, Sep 13, 2011 at 10:01 AM, Christofer Dutz > >>> <[email protected]> wrote: > >>>> > >>>> Flexmojos doesn't automatically generate the html wrappers as the > >>>> FlashBuilder does. There is however a maven module that you can use to > >>>> make flexmojos generate that: > >>>> https://docs.sonatype.org/display/FLEXMOJOS/Html+Wrapper+Mojo > >>>> > >>>> Chrs > >>>> > >>>> 2011/9/13 Marc Luce <[email protected]>: > >>>> > I hope I have included all the valuable parts of the pom file. This > is > >>>> > the > >>>> > pom for my flex project. > >>>> > > >>>> > <executions> > >>>> > > >>>> > <execution> > >>>> > > >>>> > <goals> > >>>> > > >>>> > <goal>copy-flex-resources</goal> > >>>> > > >>>> > <goal>compile-swf</goal> > >>>> > > >>>> > </goals> > >>>> > > >>>> > </execution> > >>>> > > >>>> > </executions> > >>>> > > >>>> > <configuration> > >>>> > > >>>> > <targetPlayer>10.0.0</targetPlayer> > >>>> > > >>>> > > >>>> > > >>>> > <definesDeclaration> > >>>> > > >>>> > <property> > >>>> > > >>>> > <name>DEBUG::version</name> > >>>> > > >>>> > <value>'1.0.4'</value> > >>>> > > >>>> > </property> > >>>> > > >>>> > </definesDeclaration> > >>>> > > >>>> > <warnings> > >>>> > > >>>> > <noConstructor>false</noConstructor> > >>>> > > >>>> > </warnings> > >>>> > > >>>> > <locales> > >>>> > > >>>> > <locale>en_US</locale> > >>>> > > >>>> > </locales> > >>>> > > >>>> > <sourceFile>Main.mxml</sourceFile> > >>>> > > >>>> > > >>>> > > >>>> > <themes> > >>>> > > >>>> > > >>>> > > <theme>${project.build.directory}/configs/themes/spark-theme.css</theme> > >>>> > > >>>> > > >>>> > > <theme>${project.build.directory}/configs/themes/halo-theme.swc</theme> > >>>> > > >>>> > </themes> > >>>> > > >>>> > > >>>> > > >>>> > </configuration> > >>>> > > >>>> > > >>>> > On Tue, Sep 13, 2011 at 12:40 AM, MarkV <[email protected]> > wrote: > >>>> >> > >>>> >> Hi, > >>>> >> > >>>> >> Maybe post your pom file? I assume you have added the execution > >>>> >> goal for wrapper for flexmojos which does the template processing > and > >>>> >> outputs it to ${basedir}/target/war/work/wrapped-template by > default. > >>>> >> > >>>> >> Which is what you then what you set the webResource directory to > so > >>>> >> the maven war plugin can package up your war. > >>>> >> > >>>> >> MarkV. > >>>> >> > >>>> >> On Sep 12, 9:25 am, Marc Luce <[email protected]> wrote: > >>>> >> > We have 3 projects defined in eclipse - domain, flex, and webapp. > We > >>>> >> > have developed the project completely within eclipse. The flex > >>>> >> > project obviously depends on the domain project, and we modified > the > >>>> >> > flex-build properties in eclipse for the flex project to use the > >>>> >> > webapp (src/main/webapp) directory for the output of the flex > >>>> >> > compile. When we clean (for instance) the flex project, the > compiler > >>>> >> > will create html and swf files in the webapp directory. When we > >>>> >> > deploy the webapp project to tomcat, we are able to access the > >>>> >> > generated html page. > >>>> >> > > >>>> >> > We are now attempting to port the build process to use maven. > >>>> >> > Everything appears to work swimmingly, however, when we deploy > the > >>>> >> > war > >>>> >> > artifact from the webapp module, there is no html file where we > >>>> >> > expect > >>>> >> > it. What we have to do is copy the html and swf artifacts > generated > >>>> >> > by the compiler through eclipse into the webapp directory > manually. > >>>> >> > After we move the generated files manually, when we build the war > and > >>>> >> > deploy it, we can find the html pages that we need. Am I > invoking > >>>> >> > the > >>>> >> > compiler wrong? Is the copy-resources not working as I expect it > to? > >>>> >> > I am just not real sure how to proceed with this. Any help will > be > >>>> >> > greatly appreciated. > >>>> >> > >>>> >> -- > >>>> >> 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/ > >>>> > > >>>> > >>>> -- > >>>> 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/ > >>> > >> > > > > -- > 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/
