You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/20 13:55:04 UTC

[jira] [Commented] (MNG-6207) Create WARNINGs in case of using system scope

    [ https://issues.apache.org/jira/browse/MNG-6207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16018456#comment-16018456 ] 

ASF GitHub Bot commented on MNG-6207:
-------------------------------------

GitHub user dejan2609 opened a pull request:

    https://github.com/apache/maven/pull/119

    [MNG-6207] display build WARNING if deprecated 'system' scope is used

    JIRA ticket: [MNG-6207: Create WARNINGs in case of using system scope](https://issues.apache.org/jira/browse/MNG-6207)
    
    Note: since **_system_** scope requires _**systemPath**_ I decided to expand existing and rename systemPath tests; if that kind of change is not acceptable please suggest different approach. 


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dejan2609/maven MNG-6207-system-scope-deprecation-warning

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/maven/pull/119.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #119
    
----
commit 0158be5884be228693ecc43f78561e65f0fc59f0
Author: dejan2609 <de...@gmail.com>
Date:   2017-05-20T13:42:43Z

    [MNG-6207] display build WARNING if deprecated 'system' scope is used

----


> Create WARNINGs in case of using system scope
> ---------------------------------------------
>
>                 Key: MNG-6207
>                 URL: https://issues.apache.org/jira/browse/MNG-6207
>             Project: Maven
>          Issue Type: Improvement
>    Affects Versions: 3.5.0
>            Reporter: Karl Heinz Marbaise
>            Priority: Minor
>             Fix For: 3.5.1-candidate, 3.6.0
>
>
> Currently the documentation has already marked the usage of:
> {code:xml}
>  <dependency>
>       <groupId>javax.sql</groupId>
>       <artifactId>jdbc-stdext</artifactId>
>       <version>2.0</version>
>       <scope>system</scope>
>       <systemPath>${java.home}/lib/rt.jar</systemPath>
>     </dependency>
> {code}
> as [deprecated|https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#System_Dependencies]. So we should start to produce WARNING during a build if someone uses it...



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)