Ok, I think I have something:
1.- In MDL swc library I create "dialogPolyfill.as" in "main/flex folder" package { /** * The ActionScript typedefs for dialogPolyfill * * @externs * @langversion 3.0 * @playerversion Flash 10.2 * @playerversion AIR 2.6 * @productversion FlexJS 0.0 */ public class dialogPolyfill { /** * registerDialog * * @langversion 3.0 * @playerversion Flash 10.2 * @playerversion AIR 2.6 * @productversion FlexJS 0.0 */ public static function registerDialog(dialog):void { } } } 2.- I use it in Dialog.as dialogPolyfill.registerDialog(dialog); This is the use of the extern, something internal to the MDL swc library. 3.- MDL swc compiles with success Now the problem: 4.- In MDLExample compilation is broken with: Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/models/ListsModel.js Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/vos/NavigationLinkVO.js using extern: externs/dialogPolyfill.js using SWC: /Users/carlosrovira/.m2/repository/com/adobe/flash/framework/playerglobal/20.0/playerglobal-20.0.swc using SWC: /Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/MaterialDesignLite/0.8.0-SNAPSHOT/MaterialDesignLite-0.8.0-SNAPSHOT.swc using SWC: /Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Core/0.8.0-SNAPSHOT/Core-0.8.0-SNAPSHOT.swc using SWC: /Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Language/0.8.0-SNAPSHOT/Language-0.8.0-SNAPSHOT.swc using SWC: /Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/HTML/0.8.0-SNAPSHOT/HTML-0.8.0-SNAPSHOT.swc using SWC: /Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Collections/0.8.0-SNAPSHOT/Collections-0.8.0-SNAPSHOT.swc using SWC: /Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Binding/0.8.0-SNAPSHOT/Binding-0.8.0-SNAPSHOT.swc using SWC: /Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Graphics/0.8.0-SNAPSHOT/Graphics-0.8.0-SNAPSHOT.swc Could not find file for class: dialogPolyfill File not found: dialogPolyfill org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:174)org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:208)org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:208)org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:208)org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:208)org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:208)org.apache.flex.compiler.internal.graph.GoogDepsWriter.buildDB(GoogDepsWriter.java:125)org.apache.flex.compiler.internal.graph.GoogDepsWriter.getListOfFiles(GoogDepsWriter.java:84)org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPublisher.java:308)org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:455)org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:313)org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:270)org.apache.flex.compiler.clients.MXMLJSC.execute(MXMLJSC.java:166)org.apache.flex.maven.flexjs.BaseMojo.execute(BaseMojo.java:274)org.apache.flex.maven.flexjs.CompileAppMojo.execute(CompileAppMojo.java:119)org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)org.apache.maven.cli.MavenCli.main(MavenCli.java:199)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.java:498)org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.198 s [INFO] Finished at: 2017-01-19T23:28:43+01:00 [INFO] Final Memory: 78M/905M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.flex.flexjs.compiler:flexjs-maven-plugin:0.8.0-SNAPSHOT:compile-app (compile-javascript) on project MDLExample: There were errors during the build. Got return code 3 -> [Help 1] I think some config is missing or maybe some tweaks are needed to work with maven (if it was not tested with it) but can't figure what is some help please? Thanks -- Carlos Rovira http://about.me/carlosrovira