I'm trying to mavenize a Flex project using Flash Builder 4 as IDE.
I'm using flexmojos 4.0-beta-7
with flex sdk 4.5.0.19786
.
In my pom.xml
I have:
<build>
<sourceDirectory>${basedir}/src/main/flex</sourceDirectory>
...
</build>
and I have this directory structure ${basedir}/src/main/flex/assets/icons/**.png
.
I have ${basedir}/pom.xml
. I followed OpenScales fx samples as a model for my project.
FlashBuilder compiles normally, but invoking $>mvn clean package
lots of unable to resolve 'assets/icons/*.png' for transcoding
errors are raised.
Does assets
folder have to be added explicitly for compiling? How?
Here it is my complete ${basedir}/pom.xml
and here the output from $>mvn clean package
.
I had the same problem a long time ago. And solved it replacing all the paths in Embed
directives from 'assets/icons/food_fr.gif'
to '/assets/icons/food_fr.gif'
.