Re: Maven Dependency Mechanism

2008-06-05 Thread Marvin Froeder
Well, is possible to do with option. Or with filters. But doing so I delegating this to user and plugin can handle that. Imagine on java, if maven depedency mechanism doesn't handle provided, when I use provided dependencies I need to mark they optional?! I just wanna keep flex easy as java.

Re: Maven Dependency Mechanism

2008-06-05 Thread Igor Fedorenko
I may not fully understand the problem, but if mySWC marks dependency on flexlib as optional, then war that depends on mySWC will not automatically get flexlib as a dependency. Is not this what you want? The only drawback I see is that users would need to keep "optional" dependency flag consist

Re: Maven Dependency Mechanism

2008-06-05 Thread Marvin Froeder
Yes, but again it delegates to plugin users this. Is something like maven (on java) don't resolve dependencies, or resolve all always (never use as transitive). At current time flex-mojos is resolving all dependencies, no one is transitive. I just wanna make dependencies transitive when, by it s

Re: Maven Dependency Mechanism

2008-06-05 Thread Igor Fedorenko
Marvin, Not that I know/understand much about maven dependency management, but can you not use "optional" element to mark dependencies that should not be re-exported (http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Transitive_Dependencies) Marvin Froed

Re: Maven Dependency Mechanism

2008-06-05 Thread Marvin Froeder
If a war depends on a SWF. And this SWF depends of a few SWCs. I can look to scopes to embed/or not embed SWC into war. If is a merged/internal/external dependencies I can (and I will) just ignore this SWC. If is a RUNTIME I will add this SWC following SWF rsl policy. If is a CHACHING dependenc

Re: Maven Dependency Mechanism

2008-06-05 Thread Nigel Magnay
It isn't a dependency issue. Regardless of whether you use a swc dependency as a Runtime Shared Library or Merged Into Code, it's still a dependency on the project. These are compiler options. How you use it is exactly the same choices you'd have with, say, a WAR file with JAR dependencies, and wa

Re: Maven Dependency Mechanism

2008-06-05 Thread Marvin Froeder
If I will put dependencies on separated files, why use maven dependencies? VELO On Thu, Jun 5, 2008 at 8:59 AM, Nigel Magnay <[EMAIL PROTECTED]> wrote: > It's not a scope issue, it's a compiler options issue. > > You could just use the same mechanism that israfil flex mojo uses, > which is to ut

Re: Maven Dependency Mechanism

2008-06-05 Thread Nigel Magnay
It's not a scope issue, it's a compiler options issue. You could just use the same mechanism that israfil flex mojo uses, which is to utilise the .flexLib / .actionScriptProperties files in order to determine whether to bind dependencies into the output or not. On Thu, Jun 5, 2008 at 12:21 PM, Ma

Re: Maven Dependency Mechanism

2008-06-05 Thread Marvin Froeder
Can someone point for me where is maven dependency manager code. I will take a look, may be patch it or I will clone it. VELO On Wed, Jun 4, 2008 at 8:41 PM, Marvin Froeder <[EMAIL PROTECTED]> wrote: > Flex has 2 types of binaries SWC (jar like) and SWF runnable file, but is > not a library. >

Re: Maven Dependency Mechanism

2008-06-05 Thread Marvin Froeder
Oh no, I can't do that. Doing this the plugin user will need to know how to resolve libraries. That breaks all maven need. VELO On Wed, Jun 4, 2008 at 11:07 PM, Brett Porter <[EMAIL PROTECTED]> wrote: > It's an argument to the current resolution mechanism that lets you make a > decision on wh

Re: Maven Dependency Mechanism

2008-06-04 Thread Brett Porter
It's an argument to the current resolution mechanism that lets you make a decision on whether to include every artifact. Maven has some standard filters for passing in lists in certain forms. You could look at the code of the assembly plugin for how those are used. How you configure it is u

Re: Maven Dependency Mechanism

2008-06-04 Thread Marvin Froeder
Can you give me some light about how this plugins filters works? A where to start... VELO On Wed, Jun 4, 2008 at 10:45 PM, Brett Porter <[EMAIL PROTECTED]> wrote: > It's debatable whether the artifact resolution mechanism should support > customisable scopes - I can see some justification from

Re: Maven Dependency Mechanism

2008-06-04 Thread Brett Porter
It's debatable whether the artifact resolution mechanism should support customisable scopes - I can see some justification from this, but these would all be flex specific, not blended in with the current set. I would suggest that the best approach for you to take is to configure filters o

Re: Maven Dependency Mechanism

2008-06-04 Thread Marvin Froeder
Flex has 2 types of binaries SWC (jar like) and SWF runnable file, but is not a library. Just keep in mind flex is very different from java. SWF files must be all required libraries bounded into it own binary in order to run or load at runtime. Flex compiler has 5 ways to link libraries to appli

Re: Maven Dependency Mechanism

2008-06-04 Thread Jason van Zyl
I think you need to explain more about what the problem is. I'm not sure you will need a new scope. On 4-Jun-08, at 2:22 PM, Marvin Froeder wrote: Hi guys, I try this on users list, but now answer. I have develop my on plugin for compiling flex with maven ( http://blog.flex-mojos.info/). F

Fwd: Maven Dependency Mechanism

2008-06-04 Thread Marvin Froeder
Hi guys, I try this on users list, but now answer. I have develop my on plugin for compiling flex with maven ( http://blog.flex-mojos.info/). Flex is different from Java in several ways. One of this ways are related to libraries scopes. Was need to add other scopes in order to compile flex. N