maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ansgar Konermann <ansgar.konerm...@googlemail.com>
Subject Re: Difference between compile and provided scope for jar artifacts
Date Fri, 20 Jan 2012 16:56:38 GMT
Am 20.01.2012 17:44 schrieb <Chad.Davis@emc.com>:
>
> When I build a jar file, the compile dependencies are not packaged into
the jar.  So, this means that they are expected to be provided somewhere
else in the run time environment, doesn't it?  Which means that it doesn't
seem like there's a difference between compile and provided . . . am I
missing something?

Yes. Dependency management capabilities of Maven.

Maven will put compile-scoped dependencies on the compile classpath
automatically, whereas for provided it does not.

Regards

Ansgar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message