Been working on this for far too long, not to share the solution I
found.
Had a simple task, add one of the adobe flex sdk sample themes onto a
project with dual maven/flash builder compiling.
Flash builder piece of cake.
Flex Mojos (flexmojos-version 4.0-RC1 & flex-version 4.5.1.21328)
massive pain, with lots of to me at least ""Error: The style 'BLAH' is
only supported by type 'spark.components.BLAH' with the theme(s)
'spark, mobile'." Solution" errors
Here's the solution I found:
install the compiled theme swc you rather like into your local repo
I used this rather niffy maven plugin helper for a installer pom
{code}
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>youview.tools</groupId>
<artifactId>installer-pom</artifactId>
<packaging>pom</packaging>
<version>1.0</version>
<name>Installer Pom for Flash Tools</name>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
<extensions>true</extensions>
<configuration>
<packaging>swc</packaging>
</configuration>
<executions>
<execution>
<id>deploy-graphite-theme-1.0</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>SOMEPATH/libs/graphite-theme-1.0.swc</file>
<groupId>youview.tools.theme</groupId>
<artifactId>graphite-theme</artifactId>
<version>1.0</version>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
{code}
Then in the code in dependencies dead easy basically just needed the
spark theme added as well... DOH!
{code}
<?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>youview.tools</groupId>
<artifactId>VirtualRemote</artifactId>
<version>1.3</version>
<packaging>air</packaging>
<name>VirtualRemote</name>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos-version}</version>
NORMAL MAVEN CODE GUFF
</plugin>
</plugins>
</build>
<dependencies>
<!-- from sonatype repo -->
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<type>swc</type>
<scope>theme</scope>
<version>${flex-version}</version>
</dependency>
<!-- installer above -->
<dependency>
<groupId>youview.tools.theme</groupId>
<artifactId>graphite-theme</artifactId>
<version>1.0</version>
<type>swc</type>
<scope>theme</scope>
</dependency>
</dependencies>
</project>
{code}
All those "Error: The style 'BLAH' is only supported by type
'spark.components.BLAH' with the theme(s) 'spark, mobile'." Solution
dead and a lovely air app with a theme
:)
tada
Ant
--
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/