I use Flex-Mojos 4.1 beta, and "just work" โข themes I cannot vouch for earlier versions.
Taking an example, draw the spark theme (part of the SDK):
<dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>spark</artifactId> <version>${flex.version}</version> <scope>theme</scope> <type>swc</type> </dependency>
Now, pull the topic that I previously defined myself:
<dependency> <groupId>ie.hunt</groupId> <artifactId>theme-library</artifactId> <version>1.0-SNAPSHOT</version> <type>swc</type> <scope>theme</scope> </dependency>
And the theme "spark" is applied, then redefined by the rules that I defined in my own theme swc. Do nothing else.
Using the subsection 'themes' 'plugin' โ 'configuration' creates useless Null Pointer exceptions, for example:
<configuration> <themes> <theme>spark.css</theme> <themes> ... </configuration>
Error output:
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.1-beta:compile-swc (default-compile-swc) on project theme-library: java.lang.NullPointerException -> [Help 1]
Bryan hunt
source share