Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache FlexJS 0.8.0, Apache FalconJX 0.8.0
-
None
-
macOs Sierra
Description
Sometimes changes in a library SWC makes the example projects unable to build (at least with maven, don't test that with ANT).
For example I created TextNode.as.
In line 75 a remove the current line
- textNode.nodeValue = text;
and added:
+ var e:HTMLElement = textNode.parentNode;
+ e.innerHTML = text;
If you compile now HTML.SWC (with MAVEN, but I think ANT will throw the same), it would be ok (BUILD SUCCESS)
Then If you try to build a example (i.e: ASDoc, MDLExample) it build fail with and error that doesn't gives you any clue about the problem. An example is:
[INFO] Scanning for projects...
[INFO]
`,;':, :';;;
`:;''';' `++'';;,
:;'''+;' .'+''';;;
: ;'''+++'' ,';++''';'
,. `, ,. ..: , `, `'''++##;'', ;;'#+++''''
; ; ; ;; ;`: :,: ; ; ;'++; #;;;;;:::;;;; +++'':
; ; : ;; ;., : : ;. ;;+# ';;;;;;;;;; .+++;
`;: :; `;: :;: , :;` ;# ,;;;:::::;: ;#+',
;+++:'+ : ;,; ++;# +;::::::; ,;;:
+++++,'+ `++' +'''` ;::::::, +:;;:
`++. '+ ++++++ +++ +++ ''''' ;::::: :;;;;
++` '+ ++++++++ ++` `+: :'';;; ;::` :::::
+++ '++ ++' :+: +++ +++ ;;;;;' ::::::
+++ '++ +++ +' `++++` ;;;;;;: .:::::`
+++++++ '++ ++:::++. +++++ ;;;;;;; ,:::::
+++++++ '++ +++++++++ :+++' ;;;;;;; ,:::::
++''' '+ +++;;;:` +++++ ;;;;;;` ::::::.
+++ '++ +++ +++ +++ ;;;;;: ::::::
+++ :+. ++++ ` :, ,+; ''';;. `..: ::::;`
+++ ++' +++++++ +++ +++ :'''; ,,,,,: ;;;;;
;+` +++ ++++++ +++ +++ .';+ :,,,,,,: `';;;
+' `''' ::,,,,,::: ';;'
:++ #;'' +:::,,,:::: .'':;
';;'' ::::::::::::' ,';;:.
;;;;''`;+;;::` .::;;'.,';;;;:
`::;;;''':;; `;;;'';;;;;;
:::;;;'';: ;;';;;;;:;
,:::;;;', ',;;;;::`
.:::;:. ;:;;:::
::;, `,;;`
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Flex - FlexJS: Examples: FlexJS: MDLExample 0.8.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-clean-plugin:3.0.0:clean (default-clean) @ MDLExample —
[INFO] Deleting /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target
[INFO]
[INFO] — maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ MDLExample —
[INFO]
[INFO] — maven-resources-plugin:3.0.1:resources (default-resources) @ MDLExample —
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] Copying 3 resources
[INFO]
[INFO] — flexjs-maven-plugin:0.8.0-SNAPSHOT:compile-app (default-compile-app) @ MDLExample —
[INFO] Executing MXMLC in tool group Falcon with args: [-load-config=/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/compile-app-flash-config.xml, -compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css, /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/src/main/flex/App.mxml]
Loading configuration: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/compile-app-flash-config.xml
/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/src/main/flex/App.mxml(38): col: 2 Warning: The CSS type selector 'Image' was not processed, because the type was not used in the application.
98747 bytes written to /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/MDLExample-0.8.0-SNAPSHOT.swf in 1,268 seconds
[INFO]
[INFO] — flexjs-maven-plugin:0.8.0-SNAPSHOT:compile-app (compile-javascript) @ MDLExample —
[INFO] Executing MXMLC in tool group FlexJS with args: [-load-config=/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/compile-app-javascript-config.xml, -compiler.exclude-defaults-css-files=HTML-0.8.0-SNAPSHOT.swc:defaults.css, /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/src/main/flex/App.mxml]
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/App.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/MainNavigation.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/itemRenderers/ActorNameAndIconListItemRenderer.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/itemRenderers/ActorNameListItemRenderer.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/itemRenderers/AvatarAndActionListItemRenderer.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/itemRenderers/AvatarAndActionTwoLineListItemRenderer.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/itemRenderers/AvatarAndActionThreeLineListItemRenderer.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/Tabs.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/Chips.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/Buttons.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/Lists.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/Toggles.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/TextFields.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/Cards.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/Grids.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/vos/ActorVO.js
Compiling file: /Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLExample/target/javascript/bin/js-debug/models/ListsModel.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/Effects/0.8.0-SNAPSHOT/Effects-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: org.apache.flex.html.beads.models.ToggleButtonModel
File not found: org.apache.flex.html.beads.models.ToggleButtonModel
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.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:309)org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:463)org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:321)org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:275)org.apache.flex.compiler.clients.MXMLJSC.execute(MXMLJSC.java:168)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: 3.732 s
[INFO] Finished at: 2016-12-14T01:26:06+01:00
[INFO] Final Memory: 69M/942M
[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. -> [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