Not specifying a phase is the same IIRC as not specifying @requiresDep.... When you do this, the results are indeterminate (you get whatever has already been resolved by previous plugins)
-----Original Message----- From: Shane Isbell [mailto:[EMAIL PROTECTED] Sent: Monday, December 31, 2007 4:37 PM To: Maven Developers List Subject: Re: Project.getArtifacts Does Not Return Provided Artifacts Thanks Brian, specifying compile after @requiresDependencyResolution works. >From what I can tell, the behavior is: @requiresDependencyResolution with unspecified phase * MavenProject.getArtifacts returns set of artifacts: {compile} * MavenProject.getDependencyArtifacts returns set of direct dependency artifacts: {compile, test, runtime, system, provided} @requiresDependencyResolution with compile phase * MavenProject.getArtifacts returns set of artifacts: {compile, runtime, system, provided} Is there any case where I shouldn't specify a phase for @requiresDependencyResolution? Thanks, Shane On Dec 31, 2007 1:07 PM, Brian E. Fox <[EMAIL PROTECTED]> wrote: > Hi Shane, what scope did you specify after > @requiresDependencyResolution? (you need to put a scope there or it > won't work...) > > -----Original Message----- > From: Shane Isbell [mailto:[EMAIL PROTECTED] > Sent: Monday, December 31, 2007 3:41 PM > To: Maven Developers List > Subject: Project.getArtifacts Does Not Return Provided Artifacts > > I'm using maven 2.0.7 client. I have a Mojo implementation with the > @phase > compiler and @requiresDependencyResolution parameters set. The > project.getArtifacts method does not return artifacts with the scope > 'provided'. The method project.getDependencyArtifacts does return > dependent > artifacts with the scope 'provided'. Is this expected behavior of the > API? > > Thanks, > Shane > > --------------------------------------------------------------------- > 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]
