Question

I can't set my custom theme in Maven like I do it in Eclipse by changing theme in project properties.

I note the theme swc in dependencies, the compiler founds it but the theme doesn't change.

Who knows how can I set a custom theme in Maven?

Was it helpful?

Solution

Use the scope 'theme' for the dependency of the theme swc. E.g. to use the Spark theme specify this dependency:

<dependency>
  <groupId>com.adobe.flex.framework</groupId>
  <artifactId>spark</artifactId>
  <type>swc</type>
  <scope>theme</scope>
</dependency>

Then you'll see this compiler option in the output:

-compiler.theme /home/cschlipf/.m2/repository/com/adobe/flex/framework/spark/4.1.0.16248/spark-4.1.0.16248.swc 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top