Compile several SWF files with Flexmojos and install them into local repository -
i'm trying compile main application (.mxml) swf file , many css files swf files create skins can loaded @ runtime.
i use :
... <execution> <id>default-compile-swf</id> <configuration> <sourcefile>./com/sim/tide/views/impls/application/sim.mxml</sourcefile> <debug>true</debug> <services>${web.services.location}/services-config.xml</services> </configuration> </execution> <execution> <id>compile-css-black_is_mine</id> <phase>compile</phase> <goals> <goal>compile-swf</goal> </goals> <configuration> <finalname>black_is_mine</finalname> <sourcefile>../resources/styles/black_is_mine.css</sourcefile> </configuration> </execution> ...
this code seems work because in ${project.build.directory}
have 2 swf files, 1 application , 1 skin.
my problem occured in install
phase. now, it's swf skin file installed on local repository, it's no longer swf based on application artifact's name remains name of application skin...to summarize, if m.swf
generated swf file based on application file , c.swf
generated swf file based on css file, goal install
install c.swf
on local repository name m.swf
.
i tried change configuration of execution :
<execution> <id>default-install</id> <phase>install</phase> <goals> <goal>install</goal> </goals> <configuration> <file>${project.build.directory}/${project.artifactid}-${sim-flex.version}.swf</file> </configuration> </execution>
to select right swf install no effect...
so how can use flexmojos
compile many swf files want , install them local repository please ? seems 1 swf file can installed.
i found "hack", install swf want org.apache.maven.plugins:maven-install-plugin:install-file
local repository , cancel default install goal :
<execution> <id>default-install</id> <phase>non_existing_phase</phase> </execution>
now, goal never triggered because bounded phase not exist.
Comments
Post a Comment