OK thanks. This is a smart method.

Stephen Connolly-2 wrote:
> 
> ok, try this
> 
> create a dummy-jar module that has your system scope as its  
> dependency. this dummy jar will be empty
> 
> now add the dummy jar as a test scope dependency. your system scope  
> transitive dependency will therefor be added to the test compile  
> classpath
> 
> Sent from my iPod
> 
> On 23 Nov 2008, at 07:52, youhaodeyi <[EMAIL PROTECTED]> wrote:
> 
>>
>> Does anyone can help me on this?
>>
>> youhaodeyi wrote:
>>>
>>> My maven project has a dependency on local disk so I use system scope
>>> dependency in order to use absolute directory to refer to this  
>>> dependency.
>>> but I also want this dependency to be only used in test phase. How  
>>> can I
>>> combine two dependencies together?
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/A-question-about-System-scope-in-dependency.-tp20415925p20643970.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/A-question-about-System-scope-in-dependency.-tp20415925p20644456.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to