Weird, can you open a ticket about showWarnings?

Well. What I do:

1 - I use install mojo to get a free FDK on maven repo.  And, to avoid
problems with MPL version I name it like 3.0.0 (MPL versions released by
flex-mojos are usually 3.0.0*.477*).

2 - I add the other dependencies at my pom, using some nice IDs:
<dependency>
  <groupId>com.adobe.flex</groupId>
  <artifactId>datavisualization</groupId>
  <version>3.0.0</version>
</dependency>

So, every 3rd party dependency will be strongly declared at my pom.  Then,
if someone that never build my project try to, flex-mojos will not try to
use MPL SDK to compile a application that needs non free stuff.  And maven
will complain if datavisualization is not available.

But, if you just crack FDK by adding all 3rd party into it, and doesn't pic
a different namming (like 3.1.0-house-spice) you can get into throubles.
Imagine if you name you FDK + carnigon + datavisualization + flex lib as
3.0.0.477.  Then a new person try to compile it.  Maven will download MPL
FDK and will try to compile.  Then you will get errors (because other
libraries are not present).  And then start the problem, at my machine it
works, but at someone machine doesn't.  And that was the main reason I quit
from ANT.  Folks just change FDK and expected this changes magically get
done on everybody machines.


So, in the end:
DON'T! Don't crack flex SDK. Don't add files, don't remove files, don't
change files, don't argue about this, don't guive excuses to do this. DON'T!

Any customization (removed locales, add swcs, changed config files) must be
on your project.  Add extra libraries as dependencies on your project.
Exclude libraries using maven exclusion.  Add configurations to pom.

If you need a different FDK (non-MPL) pick a decent name, never name it as
MPL versions (3.1.0.2710, 3.0.0.477, .....)


VELO

On Mon, Dec 8, 2008 at 10:48 AM, ddinger <[EMAIL PROTECTED]> wrote:

>
> The migration makes good progress, since all my questions get answered
> very quickly here ;-)
>
> BTW, the
>  <showWarnings>false</showWarnings>
>
> does not seem to have any effect.
>
> Most of the time I spent figuring out the differences between the oem
> sdk and the one provided by flex builder. (3.1 by now)
> I Installed the standard 3.2 sdk and added all the SWCs we
> additionally need (e.g cairngorm and datavisualization) and installed
> this via your instaler mojo.
>
> What I would like here, is a clear separation of the SWCs from the SDK
> and thrird party SWCs. I would like to have
> different maven dependencies for the SDK and additional stuff.
> Because as I understand it, if one day 4.0 SDK officially comes out, I
> need to copy together and install my own SDK artifact one again. If
> these
> artifacts we explicitly separated i would only have to change to the
> sdk version in my pom.xml without building a new SDK artifact
> right ?
>
> Regards,
> Dirk
>
> On 8 Dez., 13:19, "Marvin Froeder" <[EMAIL PROTECTED]> wrote:
> > Wow, I guessed israfil didn't support localized applications.... well,
> > guessed wrong =p
> >
> > And how was the migration experience?
> >
> > VELO
> >
> > On Mon, Dec 8, 2008 at 10:13 AM, ddinger <[EMAIL PROTECTED]>
> wrote:
> >
> > > we are currently using
> > >http://www.israfil.net/projects/mojo/maven-flex2-plugin/
> >
> > > This worked ok for us so far - but our requirements grow ;-)
> >
> > > On 8 Dez., 12:54, "Marvin Froeder" <[EMAIL PROTECTED]> wrote:
> > > > Great, BTW, you are migrating from what?
> >
> > > > VELO
> >
> > > > On Mon, Dec 8, 2008 at 9:51 AM, ddinger <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > > Thanks for that tip. Now this project compiles as well ;-)
> >
> > > > > Our buildmaster renamed these vars in order to be able to build
> maven1
> > > > > and maven2 projects in parallel.
> > > > > So, I can continue my project migration now.
> >
> > > > > On 8 Dez., 11:27, "Marvin Froeder" <[EMAIL PROTECTED]> wrote:
> > > > > > AFIK the env param is MAVEN_OPTS not M2_OPTS....
> >
> > > > > > Can you try MAVEN_OPTS=-Xmx512m ?
> >
> > > > > > At least that is what I have and it works here.
> >
> > > > > > VELO
> >
> > > > > > On Mon, Dec 8, 2008 at 7:41 AM, ddinger <
> [EMAIL PROTECTED]>
> > > > > wrote:
> >
> > > > > > > Hi,
> >
> > > > > > > Just tried 2.0M10 and it seems to solve my problem with the
> > > > > > > unsupported file type ;-)
> >
> > > > > > > But:
> >
> > > > > > > When I try some other SWF project now I get the error below,
> even
> > > when
> > > > > > > I give maven enough memory
> > > > > > > M2_OPTS=-Xmx1024m
> >
> > > > > > > Regards,
> > > > > > > Dirk
> >
> > > > > > > ---------------------------
> >
> > > > > > > java.lang.OutOfMemoryError: Java heap space
> > > > > > >        at
> macromedia.abc.AbcParser.methodTrait(AbcParser.java:550)
> > > > > > >        at
> macromedia.abc.AbcParser.methodTrait(AbcParser.java:516)
> > > > > > >        at
> macromedia.abc.AbcParser.parseTraits(AbcParser.java:1130)
> > > > > > >        at
> macromedia.abc.AbcParser.classTrait(AbcParser.java:1064)
> > > > > > >        at
> macromedia.abc.AbcParser.parseTraits(AbcParser.java:1144)
> > > > > > >        at
> macromedia.abc.AbcParser.parseScript(AbcParser.java:1197)
> > > > > > >        at macromedia.abc.AbcParser.parseAbc(AbcParser.java:108)
> > > > > > >        at flex2.compiler.abc.Compiler.parse1(Compiler.java:179)
> > > > > > >        at flex2.compiler.API.parse1(API.java:2315)
> > > > > > >        at flex2.compiler.API.parse1(API.java:2268)
> > > > > > >        at flex2.compiler.API.batch2(API.java:369)
> > > > > > >        at flex2.compiler.API.batch(API.java:1117)
> > > > > > >        at flex2.compiler.API.compile(API.java:1290)
> > > > > > >        at
> > > flex2.tools.oem.Application.compile(Application.java:1074)
> > > > > > >        at
> flex2.tools.oem.Application.recompile(Application.java:
> > > > > > > 1026)
> > > > > > >        at
> flex2.tools.oem.Application.compile(Application.java:678)
> > > > > > >        at
> flex2.tools.oem.Application.build(Application.java:425)
> > > > > > >        at
> > > > > > > info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo.build
> > > > > > > (AbstractFlexCompilerMojo.java:2062)
> > > > > > >        at
> > > > > > > info.rvin.mojo.flexmojo.compiler.AbstractFlexCompilerMojo.run
> > > > > > > (AbstractFlexCompilerMojo.java:1121)
> > > > > > >        at info.rvin.mojo.flexmojo.AbstractIrvinMojo.execute
> > > > > > > (AbstractIrvinMojo.java:179)
> > > > > > >        at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo
> > > > > > > (DefaultPluginManager.java:451)
> > > > > > >        at
> > > > > > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> > > > > > > (DefaultLifecycleExecutor.java:558)
> > > > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> > > > > > > (DefaultLifecycleExecutor.java:49
> > > > > > > 9)
> > > > > > >        at
> > > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > > > > > > (DefaultLifecycleExecutor.java:478)
> > > > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> > > > > > > (DefaultLifecycleExecutor.jav
> > > > > > > a:330)
> > > > > > >        at
> >
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> > > > > > > (DefaultLifecycleExecutor.java:291)
> > > > > > >        at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> > > > > > > (DefaultLifecycleExecutor.java:142)
> > > > > > >        at
> > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > > > > > > 336)
> > > > > > >        at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> > > > > > > 129)
> > > > > > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> > > > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > > > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke
> > > > > > > (NativeMethodAccessorImpl.java:39)
> >
>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to