Doh, i found the solution myself. For everyone else ever comming along this problem, im my case it was a security sandbox problem:
the target folder generated by maven wasn't within the trusted folders, and since my app has network and local connectivity the local part was ignored. by setting the maven target folder trusted within the global flash player security settings ( at http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html ) all my problems were gone! On 21 Nov., 21:16, masi <[email protected]> wrote: > Hi Everybody, > > in the last days i tried setting up a Flex-Maven environment with Flex > Mojos. Everything working great so far, but after searching for hours > on the net there are still some issues i came along. > > Sincehttp://www.sonatype.com/books/mvnref-book/reference/flex-dev.html > seems to be outdated as all the solutions i found so far (or atleast > i'm to dumb to get it) i'll try to get help this way. > > i got image files / xml config files stored within src/main/resources/ > asserts and src/main/resources/appConfig > and my pom.xml has the following lines added to get external > ressources working with flex mojos > > within the <build>: > > <resources> > <resource> > <directory>${basedir}/src/main/resources</directory> > <filtering>true</filtering> > </resource> > </resources> > <plugins> > <plugin> > <artifactId>maven-resources-plugin</artifactId> > <executions> > <execution> > <phase>package</phase> > <goals> > <goal>resources</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > > also, the ressource folder is set as second src folder within the flex > properties. > well, the build runs successfully and flex mojos creates the target > with the asserts and the appConfig folders within the class folder of > the outputed target. > > Problem: Now all relative links within my compiled application to the > ressources are broken. I tried like all variations i could think of, > but my images dont show up and my xml is not loaded. > > when using standard flex compiler the output swf is putted into the > bin-debug folder, placing the asserts and appConfig folders within > that bin-debug folder allows me reletive linking to the files using > something like > /asserts/myimage.png. since after the maven build the files resist > inside /classes/asserts i was thinking that would do it, but it > dosn't. > > so, could anyone be so kind to tell me what i'm doing wrong? -- 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/
