elharo commented on code in PR #191: URL: https://github.com/apache/maven-site/pull/191#discussion_r1173130660
########## content/apt/guides/introduction/introduction-to-dependency-mechanism.apt: ########## @@ -826,12 +826,14 @@ Introduction to the Dependency Mechanism <<<Important note: This is deprecated.>>> - Dependencies with the scope <system> are always available and are not looked - up in repository. They are usually used to tell Maven about dependencies which - are provided by the JDK or the VM. Thus, system dependencies are especially - useful for resolving dependencies on artifacts which are now provided by the - JDK, but were available as separate downloads earlier. Typical examples are - the JDBC standard extensions or the Java Authentication and Authorization + Dependencies with the scope <system> are not looked up in the Maven repository system. + Instead the `dependency` element contains a `systemPath` pointing to a jar on the local + file system. + + The system scope is commonly used to tell Maven about dependencies provided by the JDK or the VM. + System dependencies are especially useful for resolving dependencies on artifacts which + are now provided by the JDK, but were available as separate downloads earlier. Typical + examples are the JDBC standard extensions or the Java Authentication and Authorization Review Comment: I think it is. Per Oracle docs, "The Java Authentication and Authorization Service (JAAS) was introduced as an optional package (extension) to the Java 2 SDK, Standard Edition (J2SDK), v 1.3. JAAS was integrated into the J2SDK 1.4." Unless Oracle decides to remove it again, this statement seems likely to be true for the indefinite future. Though now that I think about it, I don't really see how this helps to to tell Maven about dependencies provided by the JDK or the VM. If you're in a VM that includes them, this is unnecessary and if you're not then a system dependency doesn't help since it's not there. Maybe if you're compiling with JDK 1.5 but targeting 1.3 or something like that? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org