Hi,

had the same problem ... as I couldn't find a workaround I changed all my
src values from:

/path/to/file.png

To:

/../resources/path/to/file.png

This worked. It's not nice, but the last time I asked, I didn't get any
assistance here, so currently I'm stuck with this ugly, but working
workaround :-(

Hope it helps,

    Chris




2011/2/23 wlepinski <[email protected]>

> Hi,
>
> I'm trying to compile a projeto using flexmojos 4.0-beta-2 and i'm
> facing problems with the default-resources goal.
>
> Actually the resources was copied to the target/classes folder but
> when the default-compile-swc run i'm getting the following error:
>
> [INFO] --- flexmojos-maven-plugin:4.0-beta-2:compile-swc (default-
> compile-swc) @ component-organograma ---
> [INFO] Flexmojos 4.0-beta-2
> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
> file
> Writing configuration dump to projectfolder\component-organograma-1.0-
> SNAPSHOT-configs.xml
> projectfolder\OrganizationChart.as(289): col: 3: Error: unable to
> resolve '/icons/cursor_drag_arrow.png' for transcoding
>
> [Embed( source="/icons/cursor_drag_arrow.png" )]
>
> This is my build section:
>
> <build>
>        <plugins>
>                <plugin>
>                        <groupId>org.sonatype.flexmojos</groupId>
>                        <artifactId>flexmojos-maven-plugin</artifactId>
>                        <configuration>
>                                <includeAsClasses>
>                                        <source>
>
>  <directory>src/main/flex</directory>
>                                        </source>
>                                </includeAsClasses>
>                                <namespaces>
>                                        <namespace>
>                                                <uri>
> http://www.dclick.com.br/components</uri>
>
>  <manifest>manifest.xml</manifest>
>                                        </namespace>
>                                </namespaces>
>                                <includeNamespaces>
>                                        <namespace>
> http://www.dclick.com.br/components</namespace>
>                                </includeNamespaces>
>                        </configuration>
>                        <dependencies>
>                                <dependency>
>                                        <groupId>com.adobe.flex</groupId>
>                                        <artifactId>compiler</artifactId>
>
>  <version>${flex.sdk.version}</version>
>                                        <type>pom</type>
>                                </dependency>
>                        </dependencies>
>                </plugin>
>        </plugins>
> </build>
>
> And the parent build section of this project:
>
> <build>
>        <sourceDirectory>src/main/flex</sourceDirectory>
>        <testSourceDirectory>src/test/flex</testSourceDirectory>
>
>        <!-- To define the plugin version in your parent POM -->
>        <pluginManagement>
>                <plugins>
>                        <plugin>
>                                <groupId>org.sonatype.flexmojos</groupId>
>
>  <artifactId>flexmojos-maven-plugin</artifactId>
>                                <version>${flexmojos.version}</version>
>                        </plugin>
>                </plugins>
>        </pluginManagement>
>        <plugins>
>                <plugin>
>                        <groupId>org.sonatype.flexmojos</groupId>
>                        <artifactId>flexmojos-maven-plugin</artifactId>
>                        <version>${flexmojos.version}</version>
>                        <extensions>true</extensions>
>                        <configuration>
>
>  <resourceBundlePath>${basedir}/locale/{locale}</
> resourceBundlePath>
>                                <coverage>true</coverage>
>                        </configuration>
>                        <dependencies>
>                                <dependency>
>                                        <groupId>com.adobe.flex</groupId>
>                                        <artifactId>compiler</artifactId>
>
>  <version>${flex.sdk.version}</version>
>                                        <type>pom</type>
>                                </dependency>
>                        </dependencies>
>                </plugin>
>        </plugins>
> </build>
>
> I'm doing some misconfiguration of the project?
>
> Thanks.
>
> --
> 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/
>

-- 
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/

Reply via email to