It's probably an old issue but so far not seen a post that's helped
me. Am trying to create a very basic theme project with embedded fonts
in the stylesheet using 3.7.1.
project layout:
src/main/resources
- defaults.css
- FuturaStd-Bold.otf
- GillSansMTPro-Boom.otf
Stylesheet:
@font-face
{
src: url("FuturaStd-Bold.otf");
fontFamily: FuturaBold;
fontWeight: bold;
fontStyle: normal;
advancedAntiAliasing: true;
}
@font-face
{
src: url("GillSansMTPro-Book.otf");
fontFamily: GillSans;
fontWeight: normal;
fontStyle: normal;
advancedAntiAliasing: true;
}
POM:
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos-version}</version>
<extensions>true</extensions>
<configuration>
<includeStylesheet>
<stylesheet>
<name>defaults.css</name>
<path>${pom.basedir}/src/main/resources/
defaults.css</path>
</stylesheet>
</includeStylesheet>
<fonts>
<advancedAntiAliasing>false</
advancedAntiAliasing>
<maxCachedFonts>20</maxCachedFonts>
<maxGlyphsPerFace>1000</maxGlyphsPerFace>
<managers>
<!-- Here we enforce using the Adobe Font
Manager
See
https://docs.sonatype.org/display/FLEXMOJOS/Using+Adobe+Font+Manager+to+embed+fonts
-->
<manager>flash.fonts.AFEFontManager</
manager>
<manager>flash.fonts.BatikFontManager</
manager>
<manager>flash.fonts.JREFontManager</
manager>
<manager>flash.fonts.CFFFontManager</
manager>
</managers>
</fonts>
</configuration>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex-version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.compiler</groupId>
<artifactId>flex-fontkit</artifactId>
When I compile I get:
[ERROR] null
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.087s
[INFO] Finished at: Tue Sep 06 14:30:07 BST 2011
[INFO] Final Memory: 8M/81M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
plugin:3.7.1:compile-swc (default-compile-swc) on project jibbajabba-
theme: Error compiling! -> [Help 1]
I can't seem to see the full stack trace in Maven, even with -e, the
most I can see is this:
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
compiling!
at
org.sonatype.flexmojos.compiler.AbstractCompilerMojo.callCompiler(AbstractCompilerMojo.java:
1141)
at
org.sonatype.flexmojos.compiler.AbstractCompilerMojo.run(AbstractCompilerMojo.java:
2403)
at
org.sonatype.flexmojos.AbstractIrvinMojo.execute(AbstractIrvinMojo.java:
155)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
209)
... 19 more
Any help would be appreciated, every other thing we've used FlexMojos
far has so far been great and we're using it extensively : )
--
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/