maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <>
Subject Re: Scope for compile only?
Date Fri, 20 Mar 2009 02:56:13 GMT
On Thu, Mar 19, 2009 at 7:25 PM, Paul Benedict <> wrote:
> Is there a way to bring in a library only for compiling without making
> it part of the runtime (i.e., war dependency) or using transitive
> exclusions? Java 5 has source-level annotations and sometimes a
> dependency is only for compiling and has no runtime dependency. Is a
> new scope needed for this?

It sounds like <optional>true</optional> would work.  (It's not a
scope, it's a separate element.)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message