Awesome, the absolute path worked for the styles swf.
On to the next issue, the next project that builds is one of our
common .swcs. It bombs w/ a bunch of errors which are all about
framework classes (e.g ClassFactory, UIComponent, ArrayCollection,
ScrollBar, etc). It seems it is all classes that should be referenced
as rsls. I saw that <rslUrls> is now <runtimeSharedLibrarries>. I
changed that in my root pom, but the .swc library still fails with the
same errors. It looks like the rsls are configured on the plugin.
Here is the last snippet of the output:
[DEBUG] (f) resources = [Resource {targetPath: null, filtering:
false, FileSet {directory: /dude/Source/depot/Service/ui/java/projects/
Tsunami/short/flex/shell-core-interfaces/src/main/resources,
PatternSet [includes: {}, excludes: {}]}}]
[DEBUG] (f) runtimeSharedLibraries = [flex/{artifactId}_{version}.
{extension},,flex/{artifactId}_{version}.swf]
[DEBUG] (f) targetDirectory = /dude/Source/depot/Service/ui/java/
projects/Tsunami/short/flex/shell-core-interfaces/target
[DEBUG] (f) targetPlayer = 10.0.0
[DEBUG] (f) toolsLocale = en_US
[DEBUG] -- end configuration --
[INFO] Flexmojos 4.0-SNAPSHOT
[INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
file
[DEBUG] Skiping method getToolsLocale.
Min version: 4.0.0 Max version: Current version: 3.5.0.12683
[DEBUG] Striping global artifact, source: /dude/.m2/repository/com/
adobe/flex/framework/playerglobal/10-3.5.0.12683/
playerglobal-10-3.5.0.12683.swc, dest: /dude/Source/depot/Service/ui/
java/projects/Tsunami/short/flex/shell-core-interfaces/target/classes/
swcs/playerglobal.swc
[DEBUG] Expanding: /dude/.m2/repository/com/adobe/flex/framework/
framework/3.5.0.12683/framework-3.5.0.12683-configs.zip into /dude/
Source/depot/Service/ui/java/projects/Tsunami/short/flex/shell-core-
interfaces/target/classes/configs
[DEBUG] expand complete
[DEBUG] Compilation arguments:
-output=/dude/Source/depot/Service/ui/java/projects/Tsunami/short/flex/
shell-core-interfaces/target/pl-console-flex-shell-core-
interfaces-1.1.2-SNAPSHOT.swc
-runtime-shared-libraries=flex/{artifactId}_{version}.
{extension},,flex/{artifactId}_{version}.swf
-link-report=/dude/Source/depot/Service/ui/java/projects/Tsunami/short/
flex/shell-core-interfaces/target/pl-console-flex-shell-core-
interfaces-1.1.2-SNAPSHOT-link-report.xml
-load-config=
-target-player=10.0.0
-compiler.debug=true
-compiler.external-library-path=/dude/.m2/repository/com/adobe/
as3corelib/pl-as3corelib/0.90/pl-as3corelib-0.90.swc
-compiler.external-library-path+=/dude/.m2/repository/com/adobe/flex/
framework/flex/3.5.0.12683/flex-3.5.0.12683.swc
-compiler.external-library-path+=/dude/.m2/repository/com/adobe/flex/
framework/utilities/3.5.0.12683/utilities-3.5.0.12683.swc
-compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
pl-flex-logger/2.1.0/pl-flex-logger-2.1.0.swc
-compiler.external-library-path+=/dude/.m2/repository/net/comcast/
logging/logbook/1.4.01/logbook-1.4.01.swc
-compiler.external-library-path+=/dude/.m2/repository/cim/fx/logging/
localconnection-target/1.4.01/localconnection-target-1.4.01.swc
-compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
pl-flex-common/2.1.0/pl-flex-common-2.1.0.swc
-compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
pl-flex-communication/2.1.0/pl-flex-communication-2.1.0.swc
-compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
pl-flex-identity-client/2.2.0/pl-flex-identity-client-2.2.0.swc
-compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
pl-flex-access-client/2.0.0/pl-flex-access-client-2.0.0.swc
-compiler.external-library-path+=/dude/Source/depot/Service/ui/java/
projects/Tsunami/short/flex/shell-core-interfaces/target/classes/swcs/
playerglobal.swc
-compiler.include-libraries=
-compiler.library-path=
-compiler.source-path=/dude/Source/depot/Service/ui/java/projects/
Tsunami/short/flex/shell-core-interfaces/src/main/flex
-compiler.fonts.local-fonts-snapshot=/dude/Source/depot/Service/ui/
java/projects/Tsunami/short/flex/shell-core-interfaces/target/classes/
fonts.ser
-compiler.headless-server=true
-compiler.namespaces.namespace http://www.adobe.com/2006/mxml /dude/
Source/depot/Service/ui/java/projects/Tsunami/short/flex/shell-core-
interfaces/target/classes/configs/mxml-manifest.xml
-compiler.theme=
-metadata.date=3/29/10 11:12 AM
-metadata.title=FlexShellCoreInterfaces
-licenses.license flexbuilder3 1377-4007-0077-6491-1018-3207
-include-file=
-include-sources=/dude/Source/depot/Service/ui/java/projects/Tsunami/
short/flex/shell-core-interfaces/src/main/flex
/dude/Source/depot/Service/ui/java/projects/Tsunami/short/flex/shell-
core-interfaces/src/main/flex/com/company/console/shell/components/
control/IControlFactory.as(11): col: 39 Error: Type was not found or
was not a compile-time constant: UIComponent.
On Mar 29, 10:51 am, Marvin Froeder <[email protected]> wrote:
> could you try an absolute path?
>
> "/img/file.jpg"
>
> The path is relative to src/main/resources
>
> VELO
>
> On Mon, Mar 29, 2010 at 2:49 PM, alpduhuez <[email protected]> wrote:
> > Yep, just verified it. If I remove all the [Embed] tags the project
> > compiles.
>
> > This is a sample style we are using.
>
> > SaveDialog
> > {
> > headerIconSkin: Embed(source="../resources/img/confirm.png");
> > }
>
> > On Mar 29, 10:29 am, Marvin Froeder <[email protected]> wrote:
> > > And just removing the Embed prevents the problem from happening?
>
> > > VELO
>
> > > On Mon, Mar 29, 2010 at 2:21 PM, alpduhuez <[email protected]> wrote:
> > > > I am using a [Embed] tag in our .css referencing assets in the
> > > > resources directory. Looks like there is not one in Ice.css.
>
> > > > I can send you the 2 config dumps if you like.
>
> > > > -al
>
> > > > On Mar 29, 4:40 am, Marvin Froeder <[email protected]> wrote:
> > > > > FWIW, I did try a css, worked finehttp://
> > > > svn.sonatype.org/flexmojos/branches/flexmojos-4.x/flexmojos-te...
>
> > > > > VELO
>
> > > > > On Mon, Mar 29, 2010 at 1:50 AM, alpduhuez <[email protected]>
> > wrote:
> > > > > > I did a diff the config.xml and compared the Flexmojos 3.5.0 and
> > 4.0
> > > > > > output....
>
> >http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-sw.
> > > > ..
>
> >http://repository.sonatype.org/content/sites/flexmojos-site/4.0-SNAPS.
> > > > ..
>
> > > > > > The resources directory is not being included in the source path.
> > It
> > > > > > looks like the 4.0 is missing a lot of stuff as well, lIke rsl's
> > have
> > > > > > a url of just "string" instead of the actual.
>
> > > > > > On Mar 28, 6:52 pm, Marvin Froeder <[email protected]> wrote:
> > > > > > > Ow dear... can't read the stack.... send me directly attached....
>
> > > > > > > Also attach the console output for the IStyleModule
>
> > > > > > > On Sun, Mar 28, 2010 at 10:50 PM, alpduhuez <[email protected]
>
> > > > wrote:
> > > > > > > > Your fix did the trick, new error now.
>
> > > > > > > > Error: Interface IStyleModule was not found. [Generated code
> > (use -
> > > > > > > > keep to save): Path:
> > > > /Source/depot/Service/ui/java/projects/Tsunami/
>
> > > > short/flex/components-styles/src/main/flex/generated/componentStyles-
> > > > > > > > generated.as, Line: 16, Column: 67]
>
> > > > > > > > Here is the stacktrace for the missing languageRange:
>
> > > > > > > > [ERROR] Failed to execute goal
> > > > org.sonatype.flexmojos:flexmojos-maven-
> > > > > > > > plugin:4.0-SNAPSHOT:compile-swf (default-compile-swf) on
> > project
> > > > pl-
> > > > > > > > console-flex-components-styles:
> > > > > > > > java.lang.reflect.InvocationTargetException:
> > NullPointerException
> > > > ->
> > > > > > > > [Help 1]
> > > > > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed
> > to
> > > > > > > > execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
> > > > > > > > SNAPSHOT:compile-swf (default-compile-swf) on project
> > > > pl-console-flex-
> > > > > > > > components-styles: java.lang.reflect.InvocationTargetException
> > > > > > > > at
>
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
> > > > > > > > 584)
> > > > > > > > at
>
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
> > > > > > > > 323)
> > > > > > > > at
> > > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
> > > > > > > > at
> > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
> > > > > > > > at
> > org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
> > > > > > > > at
> > org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
> > > > > > > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
> > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > > > > at
>
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > > > > > > > 39)
> > > > > > > > at
>
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> > > > > > > > 25)
> > > > > > > > at java.lang.reflect.Method.invoke(Method.java:597)
> > > > > > > > at
>
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
> > > > > > > > 290)
> > > > > > > > at
>
> > > > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> > > > > > > > 230)
> > > > > > > > at
>
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
> > > > > > > > 409)
> > > > > > > > at
>
> > > > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> > > > > > > > 352)
> > > > > > > > Caused by: org.apache.maven.plugin.MojoExecutionException:
> > > > > > > > java.lang.reflect.InvocationTargetException
> > > > > > > > at
>
> > org.sonatype.flexmojos.plugin.compiler.AbstractMavenFlexCompilerConfiguration.executeCompiler(AbstractMavenFlexCompilerConfiguration.java:
> > > > > > > > 1444)
> > > > > > > > at
>
> > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:
> > > > > > > > 142)
> > > > > > > > at
>
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
> > > > > > > > 105)
> > > > > > > > at
>
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
> > > > > > > > 576)
> > > > > > > > ... 14 more
> > > > > > > > Caused by: java.lang.RuntimeException:
> > > > > > > > java.lang.reflect.InvocationTargetException
> > > > > > > > at
>
> > org.sonatype.flexmojos.compiler.util.FlexCompilerArgumentParser.getArgumentsList(FlexCompilerArgumentParser.java:
> > > > > > > > 41)
> > > > > > > > at
>
> > org.sonatype.flexmojos.compiler.DefaultFlexCompiler.compileSwf(DefaultFlexCompiler.java:
> > > > > > > > 47)
> > > > > > > > at
>
> > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.doCompile(MxmlcMojo.java:
> > > > > > > > 121)
> > > > > > > > at
>
> > org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.doCompile(MxmlcMojo.java:
> > > > > > > > 1)
> > > > > > > > at
>
> > org.sonatype.flexmojos.plugin.compiler.AbstractMavenFlexCompilerConfiguration.executeCompiler(AbstractMavenFlexCompilerConfiguration.java:
> > > > > > > > 1440)
> > > > > > > > ... 17 more
> > > > > > > > Caused by: java.lang.reflect.InvocationTargetException
> > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > > > > at
>
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > > > > > > > 39)
> > > > > > > > at
>
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> > > > > > > > 25)
> > > > > > > > at java.lang.reflect.Method.invoke(Method.java:597)
> > > > > > > > at
>
> > org.sonatype.flexmojos.compiler.util.FlexCompilerArgumentParser.doGetArgs(FlexCompilerArgumentParser.java:
> > > > > > > > 74)
> > > > > > > > at
>
> > org.sonatype.flexmojos.compiler.util.FlexCompilerArgumentParser.doGetArgs(FlexCompilerArgumentParser.java:
> > > > > > > > 85)
> > > > > > > > at
>
> > org.sonatype.flexmojos.compiler.util.FlexCompilerArgumentParser.doGetArgs(FlexCompilerArgumentParser.java:
> > > > > > > > 85)
> > > > > > > > at
>
> > org.sonatype.flexmojos.compiler.util.FlexCompilerArgumentParser.doGetArgs(FlexCompilerArgumentParser.java:
> > > > > > > > 85)
> > > > > > > > at
>
> > org.sonatype.flexmojos.compiler.util.FlexCompilerArgumentParser.getArgumentsList(FlexCompilerArgumentParser.java:
> > > > > > > > 37)
> > > > > > > > ... 21 more
> > > > > > > > Caused by: java.lang.NullPointerException
> > > > > > > > at
>
> > org.sonatype.flexmojos.plugin.compiler.AbstractMavenFlexCompilerConfiguration.getLanguageRange_aroundBody122(AbstractMavenFlexCompilerConfiguration.java:
> > > > > > > > 2066)
> > > > > > > > at
>
> > org.sonatype.flexmojos.plugin.compiler.AbstractMavenFlexCompilerConfiguration.getLanguageRange_aroundBody123$advice(AbstractMavenFlexCompilerConfiguration.java:
> > > > > > > > 40)
> > > > > > > > at
>
> > org.sonatype.flexmojos.plugin.compiler.AbstractMavenFlexCompilerConfiguration.getLanguageRange(AbstractMavenFlexCompilerConfiguration.java:
> > > > > > > > 1)
> > > > > > > > ... 30 more
>
> > > > > > > > On Mar 28, 4:40 pm, Marvin Froeder <[email protected]> wrote:
> > > > > > > > > On Sun, Mar 28, 2010 at 8:07 PM, alpduhuez <
> > [email protected]>
> > > > > > wrote:
> > > > > > > > > > Okay, good news that change got the style swf build
> > farther,
> > > > but is
> > > > > > a
> > > > > > > > > > couple more issues.
>
> > > > > > > > > > 1. There needs to be a languageRange configuration option
> > else
> > > > it
> > > > > > > > > > blows up w/ a null pointer. I have an empty option for now
> > > > (e.g.
> > > > > > > > > > <languageRange/>)
>
> > > > > > > > > Could you give me the stack trace? Run mvn -e
>
> > > > > > > > > > 2. I seem to get a bad parameter exception to the mxmlc
> > > > compiler:
>
> > > > > > > > > > [ERROR] Failed to execute goal
> > > > > > org.sonatype.flexmojos:flexmojos-maven-
> > > > > > > > > > plugin:4.0-SNAPSHOT:compile-swf (default-compile-swf) on
> > > > project
> > > > > > pl-
> > > > > > > > > > console-flex-components-styles: Got 1 errors building
> > project,
> > > > > > check
> > > > > > > > > > logs -> [Help 1]
> > > > > > > > > > org.apache.maven.lifecycle.LifecycleExecutionException:
> > Failed
> > > > to
> > > > > > > > > > execute goal
> > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
> > > > > > > > > > SNAPSHOT:compile-swf (default-compile-swf) on project
> > > > > > pl-console-flex-
> > > > > > > > > > components-styles: Got 1 errors building project, check
> > logs
>
> > > > > > > > > > There error is: command line: Error: unknown configuration
> > > > variable
>
> ...
>
> 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/
To unsubscribe from this group, send email to
flex-mojos+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.