Thanks -- BTW created an issue regarding the original NPE:

https://issues.sonatype.org/browse/FLEXMOJOS-431



On Oct 27, 12:59 pm, Jeff Fairley <[email protected]> wrote:
> That'd be in the Sonatype repo.
>
> https://repository.sonatype.org/content/groups/flexgroup/
>
> https://repository.sonatype.org/content/groups/flexgroup/com/adobe/fl...
>
> - Jeff
>
>
>
>
>
>
>
> On Thu, Oct 27, 2011 at 11:56 AM, David Vree <[email protected]> wrote:
> > @Jeff -- got it...nice idea.
>
> > By the way -- do you use Nexus or some other local Maven repo?  I am
> > assuming that this artifact:
>
> >      <dependency>
> >            <groupId>com.adobe.flex.framework</groupId>
> >            <artifactId>spark</artifactId>
> >            <version>${flex.framework.version}</version>
> >            <classifier>theme</classifier>
> >            <type>css</type>
> >        </dependency>
>
> > is not available in the public repos?
>
> > On Oct 27, 12:48 pm, Jeff Fairley <[email protected]> wrote:
> > > Right, that's the other issue. <themes> doesn't do "theme+=" on the
> > command
> > > line, so you lose the defaults. You could use <scope>theme</scope> to
> > > specify your spark theme, but then your problem will be that spark will
> > be
> > > listed before your custom theme, giving it the higher priority. Here's
> > the
> > > awesomeness I had in my pom for a while (declare my themes as a
> > > dependencies, copy them to a known relative directory, and declare my
> > > themes)...
>
> > >     <build>
> > >         <sourceDirectory>src</sourceDirectory>
> > >         <plugins>
> > >             <plugin>
> > >                 <groupId>org.sonatype.flexmojos</groupId>
> > >                 <artifactId>flexmojos-maven-plugin</artifactId>
> > >                 ...
> > >                 <configuration>
> > >                     <configurationReport>true</configurationReport>
> > >                     <sourceFile>Main.mxml</sourceFile>
> > >                     <targetPlayer>10.2</targetPlayer>
> > >                     <swfVersion>11</swfVersion>
> > >                     <themes>
>
> > > <theme>${project.build.directory}/themes/theme-lib.swc</theme>
>
> > > <theme>${project.build.directory}/themes/spark-theme.css</theme>
> > >                     </themes>
> > >                 </configuration>
> > >             </plugin>
> > >             <plugin>
> > >                 <!-- copy themes to flexmojos accessible location-->
> > >                 <!-- (remove if "-theme+=" ever works) -->
> > >                 <artifactId>maven-dependency-plugin</artifactId>
> > >                 <executions>
> > >                     <execution>
> > >                         <id>copy-themes-for-flex4</id>
> > >                         <phase>generate-resources</phase>
> > >                         <goals>
> > >                             <goal>copy-dependencies</goal>
> > >                         </goals>
> > >                         <configuration>
> > >                             <includeTypes>swc,css</includeTypes>
>
> > <outputDirectory>target/themes</outputDirectory>
> > >                             <overWriteIfNewer>true</overWriteIfNewer>
>
> > > <includeGroupIds>com.adobe.flex.framework,com.company</includeGroupIds>
>
> > > <includeArtifactIds>spark,theme-lib</includeArtifactIds>
>
> > > <!--<includeClassifiers>theme</includeClassifiers>-->
> > >                             <stripVersion>true</stripVersion>
> > >                         </configuration>
> > >                     </execution>
> > >                 </executions>
> > >             </plugin>
> > >         </plugins>
> > >     </build>
>
> > >     <dependencies>
> > >         ...
> > >         <dependency>
> > >             <groupId>com.company</groupId>
> > >             <artifactId>theme-lib</artifactId>
> > >             <version>2.0.1-SNAPSHOT</version>
> > >             <type>swc</type>
> > >         </dependency>
> > >         ...
> > >         <dependency>
> > >             <groupId>com.adobe.flex.framework</groupId>
> > >             <artifactId>spark</artifactId>
> > >             <version>${flex.framework.version}</version>
> > >             <classifier>theme</classifier>
> > >             <type>css</type>
> > >         </dependency>
> > >     </dependencies>
>
> > > - Jeff
>
> > > On Thu, Oct 27, 2011 at 11:39 AM, David Vree <[email protected]>
> > wrote:
> > > > @Jeff -- Your use of the full path did the trick!  Flexmojos found the
> > > > CSS, but now I have a new error:
>
> > > > ERROR] /src/main/flex/com/mycorp/core/flex/client/main/views/
> > > > SelectWorkbenchView.mxml:[28,-1] The style 'backgroundColor' is only
> > > > supported by type 'spark.components.BorderContainer' with the theme(s)
> > > > 'spark'.
>
> > > > It seems I must need to add the spark theme as well.  My CSS assumes
> > > > that theme is in place and builds upon it.  Is there a way to use the
> > > > "<theme>" syntax to somehow add "spark.css" to my list of themes?  I
> > > > am assuming that will do the trick....
>
> > > > Thanks for the help everyone....
>
> > > > Dave
>
> > > > On Oct 27, 12:13 pm, Jeff Fairley <[email protected]> wrote:
> > > > > I agree with the annoyance from irrelevant warning messages. I
> > haven't
> > > > seen
> > > > > anything that does harm, but it does make finding legitimate warnings
> > > > harder
> > > > > to find, since I'm now accustomed to skimming past so many warnings.
>
> > > > > I recently switched my project from using <themes>...</themes> to
> > > > > <scope>theme</scope>. In may case the latter makes more sense, since
> > my
> > > > > theme is already a SWC. However, I had no problems using
> > > > > <themes>...</themes> for months. You might try specifying a full
> > path.
> > > > > That's how my pom was set up.
>
> > > > > <themes>
> > > > >      <theme>${basedir}/src/myTheme.css</theme>
> > > > > </themes>
>
> > > > > - Jeff
>
> > > > > On Thu, Oct 27, 2011 at 11:01 AM, Christofer Dutz <
>
> > > > > [email protected]> wrote:
> > > > > > I think the Problem is not that it's not working. The problem is
> > that
> > > > > > a lot of Warnings are posted by Maven (not Flexmojos) ... If you
> > have
> > > > > > a continuous integration server in your project your Log will
> > propably
> > > > > > be filled with unnecessary warnings.
>
> > > > > > Same applys to dependencies of scope "rsl" and "caching"
>
> > > > > > Chris
>
> > > > > > 2011/10/27 Carlos Rovira <[email protected]>:
> > > > > > > Not necesary. we have multiple themes configuration working  with
> > RC2
>
> > > > > > > 2011/10/27 David Vree <[email protected]>
>
> > > > > > >> 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>
>
> ...
>
> read more »

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