can it be that the dependency mechanism is still incomplete? i'd like to be independent of foreign products jar-file policy. this is solved with a shared library. may i use java itself as an example, even if i know its in the path automatically:
java13-shared-lib: * jre/lib/i18n.jar * jre/lib/i18n.jar * jre/lib/i18n.jar * jre/lib/i18n.jar java14-shared-lib: java15-shared-lib: On 7/21/05, Brett Porter <[EMAIL PROTECTED]> wrote: > only the "provided" scope dependencies are not transitive, as they are > designed for placing in an end POM. > > Consider servlet API: when you depend on it in your WAR, scope = > provided as it is used for compilation but is provided at runtime by the > container. > > Now if a library uses servlet API, provided doesn't make sense as the > library doesn't know its runtime context. This is why provided is not > transitive. The library would declare it as compile in this case, and a > WAR would then restate it as "provided" using dependency management. > > Do others agree this is the expected behaviour? > > Cheers, > Brett > > solo turn wrote: > > >but this is not transitive? i.e. you define a shared library in idea, > >eclipse, etc. with a name, containing one or more jars. if you do that > >in a pom by specifying a dependency to a library, which depends on 2 > >or more jars, how do these jars get into the compile classpath? > > > >On 7/20/05, Brett Porter <[EMAIL PROTECTED]> wrote: > > > > > see "provided" on that page. > > > > solo turn wrote: > > > > >hi, > > > > >how shared libraries are handled by the maven dependency management, > > >with respect to the following areas: > > >* compile: > > >seems to be perfect > > >* eclipse (create an eclipse project referencing libraries) > > >not sure, but works > > >* install (build a war, ear) > > >i have no idea how to declare a dependency as > > >"shared library" so it does not get included in the deliverable > > > > >could you please explain how you specify "shared libraries" in the pom > > >file, so they do not get inlcuded when building a war? maybe on > > >http://maven.apache.org/maven2/dependencies.html. > > > > >-solo > > > > >--------------------------------------------------------------------- > > >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] > > > > >--------------------------------------------------------------------- > >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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
