You can solve your issue by (carefully) using the build helper plugin
from CodeHaus :
http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html
--
Simon
Le 04/07/2011 18:05, Carsten Schlipf a écrit :
Hi Velo,
I have a follow up question on this old thread:
"Missing source paths after switching to use flexmojos 4.0-alpha4 from
flexmojos 3.6.1"
https://groups.google.com/group/flex-mojos/browse_thread/thread/740e6f32c55b5a55/becf202999b9ec70?lnk=gst&q=source-path#becf202999b9ec70
Sorry to have to bother you on this old issue. I've read various
threads here and I've read your last comment on
https://issues.sonatype.org/browse/FLEXMOJOS-327, where you've wrote
"So, flexmojos 4 won't allow you to tamper with sourcePaths anymore,
that does cause problems and it isn't maven way.
You need to include the extra sourceRoots to maven. Like you would do
to any java project."
Well, I understand you one one side, but on the other placing
resources like images into the resources folder and embedding them
form Flex sources using the EMBED directive is a fairly standard use
case. So quite a lot developers will have to tamper with sourcePaths.
I've tried to add additional source paths using the build-
helper=maven-
plugin like described here:
http://www.redstream.nl/2009/03/03/adding-extra-source-path-to-your-maven-build/
However in FlexMojos 4.0-beta-3 this has no effect on the generated
compiler configuration. The directive soure-path still only contains
the src/main/flex folder. So maybe I am just too stupid to find how to
properly add sourceRoots like you've said. So it would be great, if
you could explain how to do this with Maven 3 properly. I believe that
would be of great help also to others and avoid more questions.
--
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/