WOW, no, absolutely no, don't do that, flexmojos MUST manage to load resources from src/main/resources out of the box. If it is not, that is a bug and I need to fix.
VELO On Sun, May 23, 2010 at 8:13 AM, [email protected] < [email protected]> wrote: > Hi, > maybe you're using flexmojos 4-SNAPSHOT, > > if so, you can add this to your build section to compile with the > assets in resources ... which just copy resources from resource folder > to main source folder > > <plugin> > <artifactId>maven-resources-plugin</artifactId> > <version>2.4.3</version> > <executions> > <execution> > <id>copy-resources</id> > <phase>validate</phase> > <goals> > <goal>copy-resources</goal> > </goals> > <configuration> > <outputDirectory>src/main/flex/</outputDirectory> > <resources> > <resource> > <directory>src/main/resources</directory> > <filtering>false</filtering> > </resource> > </resources> > </configuration> > </execution> > </executions> > </plugin> > > > Nico > > > > On 23 mayo, 00:01, Marvin Froeder <[email protected]> wrote: > > Well, sorry for not knowing why you can't embed your image. > > > > VELO > > > > > > > > On Sat, May 22, 2010 at 6:47 PM, fiserra <[email protected]> wrote: > > > Thanks a lot for the tip > > > > > On May 22, 11:32 pm, Marvin Froeder <[email protected]> wrote: > > > > Using it is wrong. There is one and only one scenario that is valid, > > > which > > > > isn't yours. > > > > > > On Sat, May 22, 2010 at 5:27 PM, fiserra <[email protected]> > wrote: > > > > > Thanks for the answer! > > > > > > > Can you give some details on how I'm using sourcePaths wrongly? > > > > > > > On May 22, 10:19 pm, Marvin Froeder <[email protected]> wrote: > > > > > > No, if what you are saying is true I have no clue. > > > > > > > > BTW, don't use sourcePaths, specially using it wrongly like you > are. > > > > > > > > VELO > > > > > > > > On Sat, May 22, 2010 at 5:03 PM, fiserra <[email protected]> > > > wrote: > > > > > > > > > I'm getting the following error when using flex-mojos to build > a > > > flex > > > > > > > library > > > > > > > Error: unable to resolve '/images2/iconSave.png' for > transcoding > > > > > > > > > Here is the mxml code: > > > > > > > > > <mx:Button x="315" y="10" paddingTop="2" > > > > > > > width="32" > > > > > height="23" > > > > > > > > > styleName='extButtonMiniBlue' > > > > > > > > > icon="@Embed(source='/images2/iconSave.png')" /> > > > > > > > Here is my pom: > > > > > > > > > <plugin> > > > > > > > <groupId>org.sonatype.flexmojos</groupId> > > > > > > > > > <artifactId>flexmojos-maven-plugin</artifactId> > > > > > <version>${flex-mojos.version}</version> > > > > > > > <extensions>true</extensions> > > > > > > > <configuration> > > > > > > > <sourcePaths> > > > > > > > > > <path>${basedir}/src/main/flex</path> > > > > > > > > > <path>${basedir}/src/main/resources</path> > > > > > > > </sourcePaths> > > > > > > > > > <allowSourcePathOverlap>true</allowSourcePathOverlap> > > > > > > > > > > <resourceBundlePath>${basedir}/src/main/resources/locale/{locale} > > > > > > > </resourceBundlePath> > > > > > > > > > <mergeResourceBundle>true</mergeResourceBundle> > > > > > > > <compiledLocales> > > > > > <locale>cs_CZ</locale> > > > > > <locale>en_US</locale> > > > > > > > </compiledLocales> > > > > > > > > > <targetPlayer>${flashPayer.version}</targetPlayer> > > > > > > > </configuration> > > > > > > > <dependencies> > > > > > > > <dependency> > > > > > > > > > <groupId>com.adobe.flex</groupId> > > > > > > > > > <artifactId>compiler</artifactId> > > > > > > > > > <version>${flex.sdk.version}</version> > > > > > > > <type>pom</type> > > > > > > > </dependency> > > > > > > > </dependencies> > > > > > > > </plugin> > > > > > > > the 'image2' folder is placed under src\main\resources\ > > > > > > > Any ideas what I'm doing wrong? > > > > > > > Thanks in advance! > > > > > > > > > -- > > > > > > > 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]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[email protected]> > > > > > <flex-mojos%[email protected]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[email protected]> > > > > > > > > > <flex-mojos%[email protected]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[email protected]> > > > > > <flex-mojos%[email protected]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[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]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[email protected]> > > > > > <flex-mojos%[email protected]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[email protected]> > > > > > > > > > > For more options, visit this group athttp:// > > > > > 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]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[email protected]> > > > > > <flex-mojos%[email protected]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[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]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[email protected]> > > > > > > For more options, visit this group athttp:// > > > 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]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[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]<flex-mojos%[email protected]> > > For more options, visit this group athttp:// > 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]<flex-mojos%[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/
