Hi, I have setup a Library Project with Flex 4 and a resource bundle named 'testbundle', but when compiling the project, I get the error
Flexmojos 4.0-alpha-1: Error: could not find source for resource testbundle. This is the POM: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>test.locales</artifactId> <version>1.0-SNAPSHOT</version> <name>Test only</name> <packaging>swc</packaging> <build> <sourceDirectory>src/main/flex</sourceDirectory> <testSourceDirectory>src/test/flex</testSourceDirectory> <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>4.0-alpha-1</version> <extensions>true</extensions> <configuration> <compiledLocales> <locale>en_US</locale> <locale>de_DE</locale> </compiledLocales> <targetPlayer>10.0.0</targetPlayer> <debug>false</debug> </configuration> <!-- Explicitly define the Flex SDK compiler version to be used -- > <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>4.0.0.14159</version> <type>pom</type> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <version>4.0.0.14159</version> <type>pom</type> </dependency> </dependencies> </project> And I have only simple MXML: <?xml version="1.0" encoding="utf-8"?> <s:Group width="400" height="300" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Metadata> [ResourceBundle("testbundle")] </fx:Metadata> </s:Group> The testbundle.properties files are here: src/main/locales/en_US/testbundle.properties src/main/locales/de_DE/testbundle.properties When I remove the <fx:Metadata> from the MXML it works, but I need those to access the bundles... I am pretty sure that this used to work with Flexmojos 3.6... Can anybody help or give a hint what I am doing wrong here? Thanks. Simon -- 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/
