On a related note:

if it only takes compile-time dependencies into account, how does it come that 
it warns about unused runtime dependencies in my project:

[WARNING] Unused declared dependencies found:
[WARNING]    org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:runtime


Christoph


-------- Original-Nachricht --------
> Datum: Tue, 04 May 2010 12:12:37 -0400
> Von: Justin Edelson <[email protected]>
> An: Maven Users List <[email protected]>
> Betreff: Re: Does maven-dependency-plugin consider Spring bean definitions?

> If you're referring to dependency:analyze (and its kin), the answer is
> no - these goals only look at the compile-time dependencies; they do not
> execute your code. So any dependency accessed via reflection (which
> would include Spring) would be missed.
> 
> Justin
> 
> On 5/4/10 11:43 AM, vanyatka wrote:
> > 
> > Hey,
> > 
> > Trying to organize project dependencies, however not sure if
> > maven-dependency-plugin will take into account beans that are defined in
> > spring application context, but might not be referenced from source
> code.
> > The example can be Quartz Scheduler, which is defined in spring context
> and
> > runs beans by schedule. Such dependencies still have to included in pom
> (in
> > order to be packaged).
> > 
> > I'll try to check and post answer here, basically created this thread so
> > that anyone else can find a quick answer )
> > 
> > -Ivan
> > 
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> 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