When compiling using flexmojos I get the warning:
[WARNING] No themes are explicitly defined in the 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
I have tried adding:
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<type>swc</type>
<scope>theme</scope>
<version>${flex.sdk.version}</version>
</dependency>
But I just get an error:
com.adobe.flex.framework:spark:swc must be one of [compile, runtime, system] but is 'theme'
I just want to use the standard Spark theme.
Thanks
I am using Flex-Mojos 4.1-beta, and themes "just work" ™ I cannot vouch for earlier versions.
Taking an example, pull in the spark theme (part of the SDK):
Now, pull in the theme which I've earlier, myself defined:
And the 'spark' theme is applied, then overridden by the rules I've defined in my own theme swc. Nothing else to do.
Using the 'themes' subsection of 'plugin'->'configuration' creates unhelpful Null Pointer Exceptions, e.g:
Error output: