You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by lightbulb432 <ve...@hotmail.com> on 2007/05/17 06:26:10 UTC

Runtime dependencies in Eclipse classpath

Why are dependencies with a scope of "runtime" added to Eclipse's .classpath
file? I thought the point of runtime is that it's not a compile-time
dependency; therefore, why the addition to the .classpath?

Perhaps someone can correct me, but my understanding of runtime scope is
that it is not included in the compile-time classpath, but is added to the
JAR or WAR upon packaging - is this an accurate statement?

Thanks.
-- 
View this message in context: http://www.nabble.com/Runtime-dependencies-in-Eclipse-classpath-tf3769914s177.html#a10658508
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: Runtime dependencies in Eclipse classpath

Posted by Larry Meadors <lm...@apache.org>.
Eclipse is not Maven, and Maven is not Eclipse - you are kind of
comparing apples to orangutans.

Eclipse makes no differentiation between compile time and run time,
but Maven is different - it's a build tool, not an IDE.

As I understand it, compile time means "what I need to compile this
thing", but runtime means "what I need to run the beast."

An example would be JDBC drivers. I don't need the Oracle JDBC driver
jar to compile my application (unless I did something really deeply
profoundly wrong) but I do need it to *run* my application.

Larry


On 5/16/07, lightbulb432 <ve...@hotmail.com> wrote:
>
> So "runtime" seems very similar to the "compile" scope type. Could somebody
> please explain the difference?
>
> The Maven documentation seems to imply something about transitive
> dependencies, but I don't understand what it's trying to say.
>
> Thanks.
>
>
>
> Larry Meadors-2 wrote:
> >
> > I'd assume that it's there so that you can run your app from the IDE -
> > that's the behavior I'd expect.
> >
> > Larry
> >
> >
> > On 5/16/07, lightbulb432 <ve...@hotmail.com> wrote:
> >>
> >> Why are dependencies with a scope of "runtime" added to Eclipse's
> >> .classpath
> >> file? I thought the point of runtime is that it's not a compile-time
> >> dependency; therefore, why the addition to the .classpath?
> >>
> >> Perhaps someone can correct me, but my understanding of runtime scope is
> >> that it is not included in the compile-time classpath, but is added to
> >> the
> >> JAR or WAR upon packaging - is this an accurate statement?
> >>
> >> Thanks.
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Runtime-dependencies-in-Eclipse-classpath-tf3769914s177.html#a10658508
> >> 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/Runtime-dependencies-in-Eclipse-classpath-tf3769914s177.html#a10658694
> 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: Runtime dependencies in Eclipse classpath

Posted by lightbulb432 <ve...@hotmail.com>.
So "runtime" seems very similar to the "compile" scope type. Could somebody
please explain the difference? 

The Maven documentation seems to imply something about transitive
dependencies, but I don't understand what it's trying to say.

Thanks.



Larry Meadors-2 wrote:
> 
> I'd assume that it's there so that you can run your app from the IDE -
> that's the behavior I'd expect.
> 
> Larry
> 
> 
> On 5/16/07, lightbulb432 <ve...@hotmail.com> wrote:
>>
>> Why are dependencies with a scope of "runtime" added to Eclipse's
>> .classpath
>> file? I thought the point of runtime is that it's not a compile-time
>> dependency; therefore, why the addition to the .classpath?
>>
>> Perhaps someone can correct me, but my understanding of runtime scope is
>> that it is not included in the compile-time classpath, but is added to
>> the
>> JAR or WAR upon packaging - is this an accurate statement?
>>
>> Thanks.
>> --
>> View this message in context:
>> http://www.nabble.com/Runtime-dependencies-in-Eclipse-classpath-tf3769914s177.html#a10658508
>> 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/Runtime-dependencies-in-Eclipse-classpath-tf3769914s177.html#a10658694
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: Runtime dependencies in Eclipse classpath

Posted by Larry Meadors <lm...@apache.org>.
I'd assume that it's there so that you can run your app from the IDE -
that's the behavior I'd expect.

Larry


On 5/16/07, lightbulb432 <ve...@hotmail.com> wrote:
>
> Why are dependencies with a scope of "runtime" added to Eclipse's .classpath
> file? I thought the point of runtime is that it's not a compile-time
> dependency; therefore, why the addition to the .classpath?
>
> Perhaps someone can correct me, but my understanding of runtime scope is
> that it is not included in the compile-time classpath, but is added to the
> JAR or WAR upon packaging - is this an accurate statement?
>
> Thanks.
> --
> View this message in context: http://www.nabble.com/Runtime-dependencies-in-Eclipse-classpath-tf3769914s177.html#a10658508
> 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