Brian,
 
If you use the maven-dependency-plugin on the commande-line, it works fine. 
But, as my case, if you declare it in your pom to execute the goal "resolve" on 
the phase "pre-integration-test", the dependencies with scope "provided" are 
not displayed :
 
    <plugin>
     <artifactId>maven-dependency-plugin</artifactId>
     <executions>
      <execution>
       <phase>pre-integration-test</phase>
       <goals>
        <goal>resolve</goal>
       </goals>
      </execution>
     </executions>
    </plugin>
 
_______________________________________________________________________________
Christophe DENEUX / Capgemini Sud / Méditerranée
Technical Leader
Tel: + 33 4 93 95 55 92 / www.capgemini.com <http://www.capgemini.com/> 
Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice / FRANCE
Join the Collaborative Business Experience
_______________________________________________________________________________
Please consider the environment and do not print this email unless absolutely 
necessary. Capgemini encourages environmental awareness.

________________________________

De: Brian E. Fox [mailto:[EMAIL PROTECTED]
Date: mer. 05/09/2007 15:21
À: Maven Users List
Objet : RE: How to get dependencies with scope "provided" in a plugin



Take a look at the dependency plugin. There are some artifact filters that work 
on scope. These are being moved to a common location so that plugin developers 
can use them.

-----Original Message-----
From: Deneux, Christophe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 05, 2007 3:29 AM
To: users@maven.apache.org
Subject: How to get dependencies with scope "provided" in a plugin


Hi all,

I'm writting a maven plugin.
I have a goal running on the phase "pre-integration-test". For a continuous 
integration context, in this goal, I want to deploy external artefacts, 
available on a repository, so they are marked as provided in the section 
"dependencies" of the current project.

In the goal, I need to get the provided dependencies. But I am not be able ti 
get them using documentation, Google and some plugin source code. How can I get 
them ?
I had get them only if I run my plugin outside a lifecycle using the command 
line: mvn groupId:pluginId:goal. But I don't why ?

NB: Sorry if you receive this mail twice, it seems to me that the first send is 
not arrived.

_______________________________________________________________________________
Christophe DENEUX / Capgemini Sud / Méditerranée
Technical Leader
Tel: + 33 4 93 95 55 92 / www.capgemini.com <http://www.capgemini.com/>
Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice / FRANCE
Join the Collaborative Business Experience
_______________________________________________________________________________
Please consider the environment and do not print this email unless absolutely 
necessary. Capgemini encourages environmental awareness.


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.

Reply via email to