I think the way to do it in FM4 is to add a dependency to your themes
and scope them with "theme"

   <dependency>
     <groupId>mygroup</groupId>
     <artifactId>myartifact</artifactId>
     <version>myversion</version>
     <scope>theme</scope>
     <type>swc</type>
   </dependency>

Chris

2011/10/27 David Vree <[email protected]>:
> Trying to upgrade from Flexmojos 3.8 to 4.0-RC2 and am getting a new
> warning I had not seen before:
>
> [WARNING] No themes are explicitly defined in the <theme> section or
> in any scope="theme" dependencies. Flexmojos is now attempting to
> figure out which themes to include. (to avoid this warning you should
> explicitly state your theme dependencies)
> [WARNING] Adding spark.css theme because spark.swc was included as a
> dependency
>
> In my case, I have several themes which I've created as CSS files and
> included in my SWF.  Googling around, it looks like one can reference
> a CSS file as a theme in the pom so I tried this in my configuration:
>
> <themes>
>        <theme>com/mycorp/core/flex/client/css/Main.css</theme>
> </themes>
>
> What I got was a NullPointerException:
>
> [INFO] --- flexmojos-maven-plugin:4.0-RC2:compile-swf (default-compile-
> swf) @ myapp-core-flex-client ---
> [INFO] Flexmojos 4.0-RC2
> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
> file
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6.646s
> [INFO] Finished at: Thu Oct 27 10:12:50 EDT 2011
> [INFO] Final Memory: 10M/130M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
> plugin:4.0-RC2:compile-swf (default-compile-swf) on project myapp-core-
> flex-client: java.lang.NullPointerException -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> I've tried all manner of different names for the file all with the
> same resulting NullPointerException.  Here is (most of) my effective
> POM:
>
>      <plugin>
>        <groupId>org.sonatype.flexmojos</groupId>
>        <artifactId>flexmojos-maven-plugin</artifactId>
>        <version>4.0-RC2</version>
>        <extensions>true</extensions>
>        <dependencies>
>          <dependency>
>            <groupId>org.sonatype.flexmojos</groupId>
>            <artifactId>flexmojos-threadlocaltoolkit-wrapper</
> artifactId>
>            <version>4.0-RC2</version>
>            <scope>compile</scope>
>          </dependency>
>          <dependency>
>            <groupId>org.sonatype.flexmojos</groupId>
>            <artifactId>flexmojos-generator-graniteds-2.2.0</
> artifactId>
>            <version>4.0-RC2</version>
>            <scope>compile</scope>
>          </dependency>
>          <dependency>
>            <groupId>com.adobe.flex</groupId>
>            <artifactId>compiler</artifactId>
>            <version>4.1.0.16076</version>
>            <type>pom</type>
>            <scope>compile</scope>
>          </dependency>
>          <dependency>
>            <groupId>com.mycorp</groupId>
>            <artifactId>gas3-helper</artifactId>
>            <version>2.2.0</version>
>            <scope>compile</scope>
>          </dependency>
>        </dependencies>
>        <configuration>
>          <sourceFile>com/mycorp/core/flex/client/main/
> MyappCoreFlexClient.mxml</sourceFile>
>          <targetPlayer>10.0.0</targetPlayer>
>          <locales>
>            <locale>en_US</locale>
>          </locales>
>          <themes>
>            <theme>com/mycorp/core/flex/client/css/Main.css</theme>
>          </themes>
>          <debug>true</debug>
>          <compilerWarnings>
>            <show-actionscript-warnings>true</show-actionscript-
> warnings>
>            <show-binding-warnings>true</show-binding-warnings>
>            <show-shadowed-device-font-warnings>true</show-shadowed-
> device-font-warnings>
>            <show-show-unused-type-selector-warnings>true</show-show-
> unused-type-selector-warnings>
>            <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
>          </compilerWarnings>
>        </configuration>
>      </plugin>
>
> --
> 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