So I now seem to be getting compile errors from the actionscript part:
[ERROR] Failed to execute goal
org.apache.flex.flexjs.compiler:flexjs-maven-plugin:0.6.0-SNAPSHOT:compile-as
(default-compile-as) on project Core: Execution default-compile-as of goal
org.apache.flex.flexjs.compiler:flexjs-maven-plugin:0.6.0-SNAPSHOT:compile-as
failed. UnsupportedOperationException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.flex.flexjs.compiler:flexjs-maven-plugin:0.6.0-SNAPSHOT:compile-as
(default-compile-as) on project Core: Execution default-compile-as of goal
org.apache.flex.flexjs.compiler:flexjs-maven-plugin:0.6.0-SNAPSHOT:compile-as
failed.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
default-compile-as of goal
org.apache.flex.flexjs.compiler:flexjs-maven-plugin:0.6.0-SNAPSHOT:compile-as
failed.
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 21 more
Caused by: java.lang.UnsupportedOperationException
at
org.apache.flex.compiler.internal.driver.as.ASBackend.getSourceFileHandlerInstance(ASBackend.java:72)
at org.apache.flex.compiler.clients.MXMLJSC.<init>(MXMLJSC.java:267)
at org.apache.flex.compiler.clients.COMPJSC.<init>(COMPJSC.java:162)
at
org.apache.flex.compiler.clients.COMPJSC.staticMainNoExit(COMPJSC.java:150)
at org.apache.flex.compiler.clients.COMPJSC.execute(COMPJSC.java:90)
at
org.apache.flex.maven.flexjs.BaseCompileMojo.execute(BaseCompileMojo.java:109)
at
org.apache.flex.maven.flexjs.CompileASMojo.execute(CompileASMojo.java:57)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 22 more
Any Idea what's going wrong here?
Chris
________________________________________
Von: Christofer Dutz <[email protected]>
Gesendet: Mittwoch, 27. April 2016 12:48:12
An: [email protected]
Betreff: AW: [ASJS] Merging to Maven
Hi Harbs,
thanks to your pointer I noticed, that usually the dependencies to other libs
are configured in the condig.xml files, but some are injected using the
command-line args, I streamlined that an now I was able to successfully run the
asjs part on Core ... now I have to find out what's going wrong in the normal
compilation part.
Chris
________________________________________
Von: Harbs <[email protected]>
Gesendet: Mittwoch, 27. April 2016 09:57:46
An: [email protected]
Betreff: Re: [ASJS] Merging to Maven
I’m not sure I’m correct here, but I think some of the projects are using
specific compiler flags to compile correctly. I know this is true for the XML
project (which I was working on). It needs the "-compiler.strict-xml=true” flag.
I’m not sure I’m making sense, but maybe it’s helpful to you…
On Apr 27, 2016, at 10:03 AM, Christofer Dutz <[email protected]> wrote:
> Hi,
>
>
> I'm continuing my work on migrating the flex ASJS project to build the parts
> in "frameworks/projects" with Maven. Here I'm getting some strange errors,
> that I don't quite understand and don't quite know how to resolve.
>
>
> I'll just post part of the errors from the compiler. Hopefully someone here
> will point me in the right direction. The files are all in the
> "feature/maven-migration" branch, so If you need a look at the config files,
> just go there:
>
>
> [INFO] --- flexjs-maven-plugin:0.6.0-SNAPSHOT:compile-js (default-compile-js)
> @ Core ---
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/Namespace.as:128
> Method marked override must override another method.
> override public function valueOf():*
> ^
>
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as:226
> Implicit coercion of a value of type Application to an unrelated type Object.
> ValuesManager.valuesImpl.init(this);
> ^
>
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as:331
> Implicit coercion of a value of type Application to an unrelated type Object.
> MXMLDataInterpreter.generateMXMLProperties(this, data);
> ^
>
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as:429
> Call to a possibly undefined method appendChild through a reference with
> static type WrappedHTMLElement.
> this.element.appendChild(c.element);
> ^
>
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as:454
> Type was not found or was not a compile-time constant: NodeList.
> var children:NodeList = internalChildren();
> ^
>
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as:459
> Call to a possibly undefined method insertBefore through a reference with
> static type WrappedHTMLElement.
> element.insertBefore(c.positioner,
> ^
>
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as:481
> Type was not found or was not a compile-time constant: NodeList.
> var children:NodeList = internalChildren();
> ^
>
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as:503
> Type was not found or was not a compile-time constant: NodeList.
> var children:NodeList = internalChildren();
> ^
>
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as:533
> Call to a possibly undefined method removeChild through a reference with
> static type WrappedHTMLElement.
> element.removeChild(c.element);
> ^
>
> /Users/christoferdutz/Projects/Apache/Flex/flex-asjs/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as:551
> Type was not found or was not a compile-time constant: NodeList.
> var children:NodeList = internalChildren();
>
> Any ideas?
>
>
> Chris
>