2

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?

user383715
  • 25
  • 4

1 Answers1

5

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 
Yaba
  • 5,979
  • 8
  • 38
  • 44
  • 1
    How do you avoid the warnings about theme being an invalid scope? – Fabi1816 Dec 31 '14 at 12:10
  • I don't. As far as I know this is hardcoded in Maven 3.x and I haven't found a way yet to avoid this warning other than ignoring it in our build management tool. – Yaba Feb 03 '15 at 10:29