maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <jvan...@maven.org>
Subject Re: Distinguishing between runtime and compile time dependencies
Date Wed, 03 Sep 2003 14:57:32 GMT
On Wed, 2003-09-03 at 10:07, Berin Loritsch wrote:
> Is there a magic flag to identify a runtime dependency from a compile
> time dependency?  For example, Xerces and Xalan may be needed to compile
> some aspects of a project (some people use it to generate java source
> code), but never needed at run time.

There is no facility yet. But we've talked about it for a long time and
we do have working code for it in experimental versions of Maven but the
real crux of the problem is collecting POMs in the repositories so we
can build the necessary graphs. In this way you would only have to state
the compile time dependencies and the runtime dependencies would be
calculated.

Not something that is going to make it into 1.0.

> This will allow a number of things:
> 
> * The extensions attributes can be generated ONLY for runtime dependencies
> * The GUMP descriptor will be able to reflect that information so that
>    the other GUMP descriptors can propogate those dependencies for unit tests
> * I can develop my plugin to gather the dependencies into a distributable
> 
> I personally have a need to generate a work directory like this:
> 
> /${root}
>     loader.jar
>     /lib
>        ***.jar
>     /docs
>        ***.html
>        ***.pdf
> 
> The thing is that I want to be able to collect all of the runtime
> dependencies for this special distribution format and place them in the
> lib directory.  Currently, the best I can do is grab *all* the dependencies,
> regardless of runtime or compile time.

Are you trying to assemble a container runtime?

> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
-- 
jvz.

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message