You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by youhaodeyi <yo...@gmail.com> on 2008/11/10 09:17:02 UTC
A question about System scope in dependency.
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.-tp20415925p20415925.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: A question about System scope in dependency.
Posted by youhaodeyi <yo...@gmail.com>.
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 <yo...@gmail.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: A question about System scope in dependency.
Posted by Stephen Connolly <st...@gmail.com>.
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 <yo...@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: A question about System scope in dependency.
Posted by youhaodeyi <yo...@gmail.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org