As far as I can tell you essentially want to categorize dependencies. Or am I thinking of something completely different?

So some options:

<dependency>
  <id>jarid</id>
  <version>jarversion</version>
  <compiletimedependency/>
  <runtimedependency/>
</dependency>

Advantages: xsd locks down values
Disadvantages: hardwired, requires xsd changes for each new dependency group

vs.

<dependency>
  <id>jarid</id>
  <version>jarversion</version>
  <dependencyGroup>compile</dependencyGroup>
  <dependencyGroup>runtime</dependencyGroup>
</dependency>

Advantages: can have arbitrary groups without changing xsd (if xsd does not mandate 
contents of dependencyGroup)
Disadvantages: "magic" values - runtime, compile, war, ear, jar, jnlp etc (which xsd 
can mandate - catch 22)


vs


<dependency>
<id>jarid</id>
<version>jarversion</version>
<property><name>dependency.group.compile</name><value>true</value></property>
<property><name>runtime</name><value>true</value></property> </dependency>


Advantages: Currently in use by war target and others (eg. jnlp)
Disadvantages: Having dependency groups probably warrants new xsd elements.  Jelly 
script would be cleaner with previous options.  Also relies even more heavily on magic 
values.






Paulo Silveira wrote:


So Ben Walding and comitters, why not take this approach? I am not
talking only about the dependency case, but all cases that generates
specifif tags in the POM that is only used for a specific plugin.

I know Jason is working in sth that can help us in the dependency
problem... Can you share?

------------------------
Paulo Silveira
http://www.paulo.com.br/
http://www.guj.com.br/




-----Original Message-----
From: Ben Walding [mailto:[EMAIL PROTECTED] Sent: domingo, 23 de mar�o de 2003 17:30
To: Maven Users List
Subject: Re: again: Runtime dependency VS compile time dependecy



Sure is... consider servlet-api


I need it to compile, but my j2ee container provides it at runtime.

Henri Yandell wrote:



Is there any time when a dependency is compile-time but not

runtime? It

seems to me that all dependencies are needed at runtime.

On Sun, 23 Mar 2003, Paulo Silveira wrote:





I think it is not good to have so specific plugin tags

inside the POM,

dont you think?

The good example is <war.bundle.jar>true</war.bundle.jar>
Why we couldnt have a tag that specifies if a dependecy is only runtime, compiletime, or both? Maybe 2 tags


<dependency>
  <id>jarid</id>
  <version>jarversion</version>
  <compiletimedependency/>
  <runtimedependency/>
</dependency>

thanks

------------------------
Paulo Silveira
http://www.paulo.com.br/
http://www.guj.com.br/




------------------------------------------------------------


---------


To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]








--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]







--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to