> Hi Nigel,
>
> have to admit that I haven't tried Maven 3.1.1 yet but when following the
> Mailinglist, there seem to be quite some problems with this, but I guess it
> would be a good idea for me to check this out.
> Could you please file an Issue at
> https://flexmojos.atlassian.net/secure/Dashboard.jspa
>
>
Sure - if I get a chance I might even try to fix it! 



> I currently have some self-activating maven profiles in my master pom that
> contain all the framework rsl dependencies and which enables itself as soon
> as a src/main/flex directory in a module. Works like a charm and I don't
> have to configure the framework stuff in every module.
>
> <profile>
>     <id>flex</id>
>     <activation>
>         <file>
>             <exists>src/main/flex</exists>
>         </file>
>     </activation>
>
>     <dependencies>
>
>     ...
>
>     </ dependencies >
> </profile>
>
>
That's a really neat solution. Do the profile dependencies always come
first in the effective pom? AFAIR, flex is very picky about ordering,
because the runtime just loads in the order it's told, and you get various
runtime exceptions about non-found classes...



> I wrote down some optimizations that I use in my Wiki:
> https://dev.c-ware.de/confluence/display/PUBLIC/Optimizing+your+build
>
>
> Chris
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Nigel Magnay [mailto:nigel.mag...@gmail.com]
> Gesendet: Dienstag, 10. Dezember 2013 20:28
> An: users@flex.apache.org
> Betreff: Re: AW: AW: AW: AW: AW: New Flexmojos 7.0.0-SNAPSHOT available
>
> A couple of other things ..
>
> - flex-copy-resources seems to be incompatible with maven 3.1.1 (there
> seems to have been an API change)
>
> - is there a better solution for apps that build linking the framework as
> "runtime shared library" ? In my current POMs, I achieve this by very
> carefully adding each dependency (a la
> http://www.adobe.com/devnet/flex/articles/flex-maven-flexmojos-pt3.html)
> because maven's brain damage means that it won't transitively resolve
> custom scopes (indeed they seem to not understand why anyone would want
> this, and maven is loudly warning that it's unsupported and might be
> dropped). This alone is making me look very hard at gradle...
>
>
>
> On Tue, Dec 10, 2013 at 5:07 PM, Nigel Magnay <nigel.mag...@gmail.com
> >wrote:
>
> > Most of my projects fail with
> >
> > [ERROR] Failed to execute goal
> > net.flexmojos.oss:flexmojos-maven-plugin:7.0.0-SNAPSHOT:test-compile
> > (default-test-compile) on project realtime-flex-components: Execution
> > default-test-compile of goal
> > net.flexmojos.oss:flexmojos-maven-plugin:7.0.0-SNAPSHOT:test-compile
> > failed: Flex compiler and flex framework versions doesn't match.
> Compiler:
> > '4.11.0.20131017' - Framework: '4.0.0.14159'.
> >
> > (Note that the project has no test source).
> >
> > I suspect it's down to it detecting an earlier version of flex on the
> > classpath (or because it's com.adobe rather than org.apache);
> > dependency:tree gives
> >
> >
> > +-
> > +org.apache.flex.framework:flex-framework:pom:4.11.0.20131017:compile
> >
> > [INFO] |  +-
> > org.apache.flex.framework:common-framework:pom:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:advancedgrids:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:apache:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:authoringsupport:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:charts:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:core:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:experimental:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:experimental_mobile:swc:4.11.0.20131017:comp
> > ile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:flash-integration:swc:4.11.0.20131017:compil
> > e
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:framework:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:framework:zip:configs:4.11.0.20131017:compil
> > e
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:mx:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:osmf:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:rpc:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:spark:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:spark_dmv:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:sparkskins:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:textLayout:swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:advancedgrids:rb.swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:apache:rb.swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:charts:rb.swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:experimental:rb.swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:experimental_mobile:rb.swc:4.11.0.20131017:c
> > ompile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:flash-integration:rb.swc:4.11.0.20131017:com
> > pile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:framework:rb.swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:mx:rb.swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:rpc:rb.swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  +-
> > org.apache.flex.framework:spark:rb.swc:4.11.0.20131017:compile
> >
> > [INFO] |  |  \-
> > org.apache.flex.framework:textLayout:rb.swc:4.11.0.20131017:compile
> >
> > [INFO] |  +- com.adobe.flash.framework:playerglobal:swc:11.9:compile
> >
> > [INFO] |  \-
> > com.adobe.flash.framework:playerglobal:rb.swc:11.9:compile
> >
> > [INFO] +- com.asfusion.mate:mate:swc:0.8.9.9.nrm-SNAPSHOT:external
> >
> > [INFO] +- com.nirima.ribbons:ribbons:swc:1.0.3-SNAPSHOT:external
> >
> > [INFO] +- flexlib:flexlib:swc:2.5:merged
> >
> > [INFO] +- com.google.code:as3reflect:swc:1.0RC2:merged
> >
> > [INFO] +- degrafa:degrafa:swc:1.0-SNAPSHOT:merged
> >
> > *[INFO] |  \-
> > com.adobe.flex.framework:flex-framework:pom:4.0.0.14159:runtime*
> >
> > *[INFO] |     +-
> > com.adobe.flex.framework:common-framework:pom:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:datavisualization:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:flash-integration:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> com.adobe.flex.framework:flex:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:framework:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> com.adobe.flex.framework:osmf:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +- com.adobe.flex.framework:rpc:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> com.adobe.flex.framework:spark:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:sparkskins:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:textLayout:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:utilities:swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:framework:zip:configs:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:datavisualization:rb.swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:framework:rb.swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:osmf:rb.swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:rpc:rb.swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:spark:rb.swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  +-
> > com.adobe.flex.framework:textLayout:rb.swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     |  \-
> > com.adobe.flex.framework:flash-integration:rb.swc:4.0.0.14159:runtime*
> >
> > *[INFO] |     +-
> > com.adobe.flex.framework:playerglobal:swc:10.0:4.0.0.14159:runtime*
> >
> > *[INFO] |     \-
> > com.adobe.flex.framework:playerglobal:rb.swc:4.0.0.14159:runtime*
> >
> > [INFO] \- org.graniteds:granite-client-flex:swc:3.0.0.RC1:merged
> >
> >
> >
> >
> >
> > On Wed, Nov 27, 2013 at 8:35 AM, christofer.d...@c-ware.de <
> > christofer.d...@c-ware.de> wrote:
> >
> >> So it Looks as if the library containing the mx.validators.* package
> >> is not present on your compile classpath. Could you check that it is.
> >> Unfortunately I can't check which lib this is exactly. Think this
> >> should resolve your Problems.
> >>
> >> Chris
> >>
> >> ________________________________________
> >> Von: piotr.zarzycki [piotrzarzyck...@gmail.com]
> >> Gesendet: Mittwoch, 27. November 2013 08:45
> >> An: users@flex.apache.org
> >> Betreff: Re: AW: AW: AW: AW: AW: New Flexmojos 7.0.0-SNAPSHOT
> >> available
> >>
> >> Sorry about that. :)
> >>
> >> path -> 43 Error: The definition of base class Validator was not found.
> >>
> >>     public class CompareValidator extends Validator
> >>                                           ^
> >>
> >> path -> col: 45 Error: The definition of base class StringValidator
> >> was not found.
> >>
> >>     public class TextInputValidator extends StringValidator
> >>                                             ^ ...
> >>
> >> At the end I got this ->
> >>
> >> [ERROR] Failed to execute goal
> >> net.flexmojos.oss:flexmojos-maven-plugin:7.0.0-SNAPSHOT:compile-swc
> >> (default-compile-swc) on project air-lib: Got 103 errors building
> >> project, check logs -> [Help 1]
> >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> >> execute goal
> >> net.flexmojos.oss:flexmojos-maven-plugin:7.0.0-SNAPSHOT:compile-swc
> >> (default-compile-swc) on project air-lib: Got 103 errors building
> >> project, check logs
> >>         at
> >>
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
> >>         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:84)
> >>         at
> >>
> >>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> >>         at
> >>
> >>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> >>         at
> >>
> >>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> >>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> >>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> >>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> >>         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:601)
> >>         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:46)
> >>         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:601)
> >>         at
> >> com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
> >> Caused by: org.apache.maven.plugin.MojoFailureException: Got 103
> >> errors building project, check logs
> >>         at
> >>
> >>
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)
> >>         at
> >>
> >>
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1701)
> >>         at
> >>
> >>
> net.flexmojos.oss.plugin.compiler.CompcMojo.execute_aroundBody0(CompcMojo.java:251)
> >>         at
> >>
> >>
> net.flexmojos.oss.plugin.compiler.CompcMojo.execute_aroundBody1$advice(CompcMojo.java:53)
> >>         at
> >>
> >>
> net.flexmojos.oss.plugin.compiler.CompcMojo.execute_aroundBody2(CompcMojo.java:245)
> >>         at
> >>
> >>
> net.flexmojos.oss.plugin.compiler.CompcMojo.execute_aroundBody3$advice(CompcMojo.java:31)
> >>         at
> >>
> >>
> net.flexmojos.oss.plugin.compiler.CompcMojo.execute_aroundBody4(CompcMojo.java:1)
> >>         at
> >>
> >>
> net.flexmojos.oss.plugin.compiler.CompcMojo.execute_aroundBody5$advice(CompcMojo.java:34)
> >>         at
> >> net.flexmojos.oss.plugin.compiler.CompcMojo.execute(CompcMojo.java:1)
> >>         at
> >>
> >>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
> >>         at
> >>
> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
> >> .java:208)
> >>
> >>
> >>
> >>
> >>
> >> -----
> >> Flex/Air developer open to new job offers and challenges.
> >> piotrzarzyck...@gmail.com
> >> --
> >> View this message in context:
> >> http://apache-flex-users.2333346.n4.nabble.com/New-Flexmojos-7-0-0-SN
> >> APSHOT-available-tp3798p3951.html Sent from the Apache Flex Users
> >> mailing list archive at Nabble.com.
> >>
> >
> >
>

Reply via email to