maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <wsm...@gmail.com>
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 <pbenedict@apache.org> 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.)

-- 
Wendy

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


Mime
View raw message