Hi,

I'm trying to use the modular web application archetype.Within that I
have put in all the mxml and .as stuff related to our project.Also i
have created a locale folder under src/main/flex and put in
our .properties file.

When i try to compile the swf with flexmojos:compile-swf goal it fails
with the following error.

[ERROR] Unable to resolve resource bundle "CRSResource" for locale
"en_US".
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error compiling!
[INFO]
------------------------------------------------------------------------


My pom.xml for the swf module looks like this

  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>xyz</groupId>
    <artifactId>crsmodapp</artifactId>
    <version>1.0-SNAPSHOT</version>
  </parent>
  <groupId>xyz</groupId>
  <artifactId>swf-swf</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>swf</packaging>
  <name>swf Application</name>
  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <testSourceDirectory>src/test/flex</testSourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.sonatype.flexmojos</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>3.2.0</version>
        <extensions>true</extensions>

        <configuration>
          <locales>
             <locale>en_US</locale>
          </locales>
   <resourceBundlePath>src/main/flex/locale/en_US</
resourceBundlePath>
        </configuration>

      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>flex-framework</artifactId>
      <version>3.2.0.3958</version>
      <type>pom</type>
    </dependency>

    <!-- flexmojos Unit testing support -->

    <dependency>
      <groupId>org.sonatype.flexmojos</groupId>
      <artifactId>flexmojos-unittest-support</artifactId>
      <version>3.2.0</version>
      <type>swc</type>
      <scope>test</scope>
    </dependency>
 <!-- Cairngorm dependency -->
    <dependency>
      <groupId>crs-flex</groupId>
      <artifactId>Cairngorm</artifactId>
      <version>2.1</version>
      <type>swc</type>
    </dependency>
 <!-- corelib dependency -->
    <dependency>
      <groupId>crs-flex</groupId>
      <artifactId>corelib</artifactId>
      <version>0.1</version>
      <type>swc</type>
    </dependency>
<!-- flexlib dependency -->
    <dependency>
      <groupId>crs-flex</groupId>
      <artifactId>flexlib</artifactId>
      <version>2.4</version>
      <type>swc</type>
    </dependency>
<!-- Datavisualisation dependency -->
 <dependency>
  <groupId>crs-flex</groupId>
     <artifactId>Datavisualization</artifactId>
     <version>0.1</version>
     <type>swc</type>
   </dependency>
   <dependency>
    <groupId>crs-flex</groupId>
    <artifactId>Datavisualization</artifactId>
    <version>2.3</version>
    <type>rb.swc</type>
  </dependency>

  </dependencies>
</project>


Can someone plesae tell me how to configure my resource.properties
which is at
src/main/flex/locale/en_US/CRSResource.properties.
I have looked up many threads but haven't found a proper answer.In
FlexBuilder it is as easy as adding this properties file to the build
path.
Any help is much appreciated.

Regards,
Chetan

--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to