Velo,
about the playerglobal/airglobal problem,what do u think about
including a boolean property for distinguishing between AIR/FLEX
projects (perhaps, "includeAirLibs" or "isAirProject").

I think it would simplify the code a lot.



On 7 dez 2010, 14:01, Rafael Adson Barbosa Barros
<[email protected]> wrote:
> Thanks for the help, it worked.
>
>
>
>
>
>
>
> On Tue, Dec 7, 2010 at 1:47 PM, Marvin Froeder <[email protected]> wrote:
> > Well, remove tattletale, it is just a report tool that I put there to help
> > me track all the mess adobe is doing on air.jar
>
> > On Tue, Dec 7, 2010 at 1:44 PM, Rafael Adson Barbosa Barros <
> > [email protected]> wrote:
>
> >> Sorry, p2dnexus is a local installation that mirrors a lot of other
> >> repositories, including the ones listed in the Building Flexmojos from
> >> Sources document that you mentioned.
>
> >> However, I went into these repositories URLs (using a browser) and
> >> couldn't find the dependency to
> >> org.jboss.tattletale:tattletale:jar:1.1.1.Final
>
> >> These are the URLs I checked:
> >>https://repository.sonatype.org/content/groups/public/
> >>https://repository.sonatype.org/content/groups/flexgroup/
>
> >> Thanks for the help,
> >> Rafael
>
> >> On Tue, Dec 7, 2010 at 10:50 AM, Marvin Froeder <[email protected]>wrote:
>
> >>> I have no idea what
> >>>http://p2dnexus.touchtec.com.br/content/groups/publicis.
>
> >>>https://docs.sonatype.org/display/FLEXMOJOS/Building+Flexmojos+from+s...
>
> >>> On Tue, Dec 7, 2010 at 10:49 AM, Rafael Adson Barbosa Barros <
> >>> [email protected]> wrote:
>
> >>>> It's not happening. When I try to compile flexmojos (after removing the
> >>>> repository and erasing tattletale-maven-plugin for my local .m2) this is
> >>>> what happens:
>
> >>>> [ERROR] Failed to execute goal
> >>>> org.sonatype.plugins:tattletale-maven-plugin:1.0:tattletale-dependencies
> >>>> (default) on project flexmojos-maven-plugin: Execution default of goal
> >>>> org.sonatype.plugins:tattletale-maven-plugin:1.0:tattletale-dependencies
> >>>> failed: Plugin org.sonatype.plugins:tattletale-maven-plugin:1.0 or one of
> >>>> its dependencies could not be resolved: Could not find artifact
> >>>> org.jboss.tattletale:tattletale:jar:1.1.1.Final in p2d (
> >>>>http://p2dnexus.touchtec.com.br/content/groups/public) -> [Help 1]
> >>>> [ERROR]
>
> >>>> On mvnrepository.org, I can only find version 1.0 from tattletale.
>
> >>>> Am I doing something wrong?
>
> >>>> Thanks,
> >>>> Rafael.
>
> >>>> On Tue, Dec 7, 2010 at 10:26 AM, Marvin Froeder <[email protected]>wrote:
>
> >>>>> You shouldn't need to add jboss repository, r.s.o/public should contain
> >>>>> it.
>
> >>>>> On Tue, Dec 7, 2010 at 10:23 AM, Rafael Adson Barbosa Barros <
> >>>>> [email protected]> wrote:
>
> >>>>>> I'm still having some problems.
> >>>>>> I exchanged maven for 3.0.1, downloaded tattletale dependency
> >>>>>> 1.1.1.Final from Jboss site  and now I'm getting this:
>
> >>>>>> Failed to execute goal
> >>>>>> org.sonatype.plugins:tattletale-maven-plugin:1.0:tattletale-dependencies
> >>>>>> (default) on project flexmojos-maven-plugin: Execution default of goal
> >>>>>> org.sonatype.plugins:tattletale-maven-plugin:1.0:tattletale-dependencies
> >>>>>> failed: A required class was missing while executing
> >>>>>> org.sonatype.plugins:tattletale-maven-plugin:1.0:tattletale-dependencies:
> >>>>>> javassist/NotFoundException
>
> >>>>>> Think that's something from my environment/artifact repository that's
> >>>>>> wrong, but can't figure out what.
>
> >>>>>> Any hints of what may be wrong is apprecciated,
> >>>>>> Rafael
>
> >>>>>> On Fri, Dec 3, 2010 at 3:22 PM, Rafael Adson Barbosa Barros <
> >>>>>> [email protected]> wrote:
>
> >>>>>>> Thanks, it solved the compilation problem!
> >>>>>>> On Dec 3, 2010 3:09 PM, "Marvin Froeder" <[email protected]> wrote:
> >>>>>>> > maven 3.0.1?
>
> >>>>>>> > On Fri, Dec 3, 2010 at 3:07 PM, Rafael Adson <
> >>>>>>> [email protected]> wrote:
>
> >>>>>>> >> Also, on a side note, I am trying to compile the latest version of
> >>>>>>> >> flexmojos in my computer (a mac os x) and I'm getting errors:
>
> >>>>>>> >> org.apache.maven.InternalErrorException: Internal error:
> >>>>>>> >> java.lang.ClassCastException:
> >>>>>>> >> org.apache.maven.artifact.repository.MavenArtifactRepository
> >>>>>>> cannot be
> >>>>>>> >> cast to org.apache.maven.artifact.repository.ArtifactRepository
>
> >>>>>>> >> Also, it appears that there's some code that references import
> >>>>>>> >> org.sonatype.flexmojos.compiler.IApplicationDomains but I couldn't
> >>>>>>> >> find this file.
>
> >>>>>>> >> Just thought you wanted to know.
>
> >>>>>>> >> Thanks,
> >>>>>>> >> Rafael
>
> >>>>>>> >> On Dec 3, 1:21 pm, Rafael Adson <[email protected]> wrote:
> >>>>>>> >> > Hello,
>
> >>>>>>> >> > I was trying to compile an air-application using flexmojos 4
>
> >>>>>>> >> > When I ran the dependency tree on the application, the result
> >>>>>>> >> > contained the following
>
> >>>>>>> >> > [INFO] | +- br.com.p2d.thirdparty.flex:flexlib:swc:1.0:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:airframework:rb.swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:airframework:swc:
> >>>>>>> >> > 3.5.0.12683:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:applicationupdater:swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:applicationupdater_ui:swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +-
> >>>>>>> com.adobe.flex.framework:flex:swc:3.5.0.12683:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:flex-framework:pom:
> >>>>>>> >> > 3.5.0.12683:external (scope managed from runtime)
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:framework:rb.swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:framework:swc:
> >>>>>>> >> > 3.5.0.12683:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:framework:zip:configs:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:playerglobal:swc:
> >>>>>>> >> > 9:3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +-
> >>>>>>> com.adobe.flex.framework:rpc:rb.swc:3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +-
> >>>>>>> com.adobe.flex.framework:rpc:swc:3.5.0.12683:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:servicemonitor:swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | \- com.adobe.flex.framework:utilities:swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] +- com.adobe.flex.framework:air-framework:pom:
> >>>>>>> >> > 3.5.0.12683:external
> >>>>>>> >> > [INFO] \-
> >>>>>>> com.adobe.flex.framework:airglobal:swc:3.5.0.12683:external
>
> >>>>>>> >> > When I compiled, in the test-compile goal it gave out the
> >>>>>>> message:
>
> >>>>>>> >> > Error: Type was not found or was not a compile-time
> >>>>>>> >> constant:NativeWindow.
>
> >>>>>>> >> > So I went and debugged flexmojos code. I found out that in the
> >>>>>>> >> > TestCompileMojo, there's a method called
> >>>>>>> getExternalLibraryPath(),
> >>>>>>> >> > that eventually calls getDependency() on AbstractMavenMojo that
> >>>>>>> in its
> >>>>>>> >> > turn calls:
>
> >>>>>>> >> > return selectFirst( getDependencies(), allOf( matchers ) );
>
> >>>>>>> >> > And the Matcher matchers accepts airglobal.swc and
> >>>>>>> playerglobal.swc.
>
> >>>>>>> >> > My question is: is this the expected behaviour? Shouldn't it
> >>>>>>> declare
> >>>>>>> >> > airglobal instead since if I'm declaring a dependency to
> >>>>>>> airglobal my
> >>>>>>> >> > application is an AIR application, or at least signal an error
> >>>>>>> saying
> >>>>>>> >> > that I shouldn't have both playerglobal and airglobal in the
> >>>>>>> >> > dependency:tree?
>
> >>>>>>> >> > I'm asking this because it gets very confusing. For example, if
> >>>>>>> I
> >>>>>>> >> > declare the airglobal as the first dependency on the pom.xml,
> >>>>>>> the
> >>>>>>> >> > dependency:tree contains:
> >>>>>>> >> > [INFO] +-
> >>>>>>> com.adobe.flex.framework:airglobal:swc:3.5.0.12683:external
> >>>>>>> >> > [INFO] | +- br.com.p2d.thirdparty.flex:flexlib:swc:1.0:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:airframework:rb.swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:airframework:swc:
> >>>>>>> >> > 3.5.0.12683:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:applicationupdater:swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:applicationupdater_ui:swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +-
> >>>>>>> com.adobe.flex.framework:flex:swc:3.5.0.12683:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:flex-framework:pom:
> >>>>>>> >> > 3.5.0.12683:external (scope managed from runtime)
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:framework:rb.swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:framework:swc:
> >>>>>>> >> > 3.5.0.12683:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:framework:zip:configs:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:playerglobal:swc:
> >>>>>>> >> > 9:3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +-
> >>>>>>> com.adobe.flex.framework:rpc:rb.swc:3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | +-
> >>>>>>> com.adobe.flex.framework:rpc:swc:3.5.0.12683:external
> >>>>>>> >> > [INFO] | +- com.adobe.flex.framework:servicemonitor:swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] | \- com.adobe.flex.framework:utilities:swc:
> >>>>>>> >> > 3.5.0.12683:runtime
> >>>>>>> >> > [INFO] +- com.adobe.flex.framework:air-framework:pom:
> >>>>>>> >> > 3.5.0.12683:external
>
> >>>>>>> >> > And the compilation works (since selectFirst will now get
> >>>>>>> airglobal
> >>>>>>> >> > instead of playerglobal.
>
> >>>>>>> >> > Thanks for the help,
> >>>>>>> >> > Rafael
>
> >>>>>>> >> > ---------- Forwarded message ----------
> >>>>>>> >> > From: John <[email protected]>
> >>>>>>> >> > Date: Aug 20 2009, 3:02 pm
> >>>>>>> >> > Subject: Compile error: Type was not found or was not a
> >>>>>>> compile-time
>
> ...
>
> mais »

-- 
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/

Reply via email to