Got it.  As a test, I've tried to add spark as a theme scope in my SWF
project dependencies via:

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

But I got this:

[WARNING]
[WARNING] Some problems were encountered while building the effective
model for com.mycorp.core:myapp-core-flex-client:swf:1.0.0-SNAPSHOT
[WARNING] 'dependencies.dependency.scope' for
com.adobe.flex.framework:spark:swc must be one of [provided, compile,
runtime, test, system] but is 'theme'. @ line 48, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer
support building such malformed projects.
[WARNING]

Any clue?

On Oct 27, 11:11 am, Christofer Dutz <[email protected]>
wrote:
> The "theme" is a scope ... so your theme Projects just have to be
> SWCs. Don't think you have to change anything.
>
> 2011/10/27 David Vree <[email protected]>:
>
>
>
>
>
>
>
> > Wow -- so I have to create a theme SWC project for all 8 of my
> > themes?
>
> > Yikes what a pain!
>
> > On Oct 27, 10:23 am, Christofer Dutz <[email protected]>
> > wrote:
> >> I think the way to do it in FM4 is to add a dependency to your themes
> >> and scope them with "theme"
>
> >>    <dependency>
> >>      <groupId>mygroup</groupId>
> >>      <artifactId>myartifact</artifactId>
> >>      <version>myversion</version>
> >>      <scope>theme</scope>
> >>      <type>swc</type>
> >>    </dependency>
>
> >> Chris
>
> >> 2011/10/27 David Vree <[email protected]>:
>
> >> > Trying to upgrade from Flexmojos 3.8 to 4.0-RC2 and am getting a new
> >> > warning I had not seen before:
>
> >> > [WARNING] No themes are explicitly defined in the <theme> 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
>
> >> > In my case, I have several themes which I've created as CSS files and
> >> > included in my SWF.  Googling around, it looks like one can reference
> >> > a CSS file as a theme in the pom so I tried this in my configuration:
>
> >> > <themes>
> >> >        <theme>com/mycorp/core/flex/client/css/Main.css</theme>
> >> > </themes>
>
> >> > What I got was a NullPointerException:
>
> >> > [INFO] --- flexmojos-maven-plugin:4.0-RC2:compile-swf (default-compile-
> >> > swf) @ myapp-core-flex-client ---
> >> > [INFO] Flexmojos 4.0-RC2
> >> > [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
> >> > file
> >> > [INFO]
> >> > ------------------------------------------------------------------------
> >> > [INFO] BUILD FAILURE
> >> > [INFO]
> >> > ------------------------------------------------------------------------
> >> > [INFO] Total time: 6.646s
> >> > [INFO] Finished at: Thu Oct 27 10:12:50 EDT 2011
> >> > [INFO] Final Memory: 10M/130M
> >> > [INFO]
> >> > ------------------------------------------------------------------------
> >> > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
> >> > plugin:4.0-RC2:compile-swf (default-compile-swf) on project myapp-core-
> >> > flex-client: java.lang.NullPointerException -> [Help 1]
> >> > [ERROR]
> >> > [ERROR] To see the full stack trace of the errors, re-run Maven with
> >> > the -e switch.
> >> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >> > [ERROR]
> >> > [ERROR] For more information about the errors and possible solutions,
> >> > please read the following articles:
> >> > [ERROR] [Help 
> >> > 1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> >> > I've tried all manner of different names for the file all with the
> >> > same resulting NullPointerException.  Here is (most of) my effective
> >> > POM:
>
> >> >      <plugin>
> >> >        <groupId>org.sonatype.flexmojos</groupId>
> >> >        <artifactId>flexmojos-maven-plugin</artifactId>
> >> >        <version>4.0-RC2</version>
> >> >        <extensions>true</extensions>
> >> >        <dependencies>
> >> >          <dependency>
> >> >            <groupId>org.sonatype.flexmojos</groupId>
> >> >            <artifactId>flexmojos-threadlocaltoolkit-wrapper</
> >> > artifactId>
> >> >            <version>4.0-RC2</version>
> >> >            <scope>compile</scope>
> >> >          </dependency>
> >> >          <dependency>
> >> >            <groupId>org.sonatype.flexmojos</groupId>
> >> >            <artifactId>flexmojos-generator-graniteds-2.2.0</
> >> > artifactId>
> >> >            <version>4.0-RC2</version>
> >> >            <scope>compile</scope>
> >> >          </dependency>
> >> >          <dependency>
> >> >            <groupId>com.adobe.flex</groupId>
> >> >            <artifactId>compiler</artifactId>
> >> >            <version>4.1.0.16076</version>
> >> >            <type>pom</type>
> >> >            <scope>compile</scope>
> >> >          </dependency>
> >> >          <dependency>
> >> >            <groupId>com.mycorp</groupId>
> >> >            <artifactId>gas3-helper</artifactId>
> >> >            <version>2.2.0</version>
> >> >            <scope>compile</scope>
> >> >          </dependency>
> >> >        </dependencies>
> >> >        <configuration>
> >> >          <sourceFile>com/mycorp/core/flex/client/main/
> >> > MyappCoreFlexClient.mxml</sourceFile>
> >> >          <targetPlayer>10.0.0</targetPlayer>
> >> >          <locales>
> >> >            <locale>en_US</locale>
> >> >          </locales>
> >> >          <themes>
> >> >            <theme>com/mycorp/core/flex/client/css/Main.css</theme>
> >> >          </themes>
> >> >          <debug>true</debug>
> >> >          <compilerWarnings>
> >> >            <show-actionscript-warnings>true</show-actionscript-
> >> > warnings>
> >> >            <show-binding-warnings>true</show-binding-warnings>
> >> >            <show-shadowed-device-font-warnings>true</show-shadowed-
> >> > device-font-warnings>
> >> >            <show-show-unused-type-selector-warnings>true</show-show-
> >> > unused-type-selector-warnings>
> >> >            <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
> >> >          </compilerWarnings>
> >> >        </configuration>
> >> >      </plugin>
>
> >> > --
> >> > 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/
>
> > --
> > 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/

-- 
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/

Reply via email to