maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MDEP-550) Warn the user if javax.activation is being listed as used undeclared dependency when target java compiler class is >= 6
Date Sat, 07 Jan 2017 15:50:58 GMT

     [ https://issues.apache.org/jira/browse/MDEP-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte closed MDEP-550.
-------------------------------
    Resolution: Won't Fix
      Assignee: Robert Scholte

Warnings about these kind of things is not the responsibility of the maven-dependency-plugin.
It should respect the dependency tree as-is and have no knowledge about any rules.
Another issue is that you will only get this warning is you run this goal, while most of these
goals are not written to be part of the build.
Instead I would suggest to write a parent-pom, add a [JDK activation profile|http://maven.apache.org/ref/3.3.9/maven-model/maven.html#class_activation]
and add an[Enforcers bannedDependencies rules|http://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html]
Besides that, maybe SonarQube it a better tool to warn you about this.

> Warn the user if javax.activation is being listed as used undeclared dependency when
target java compiler class is >= 6
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: MDEP-550
>                 URL: https://issues.apache.org/jira/browse/MDEP-550
>             Project: Maven Dependency Plugin
>          Issue Type: Improvement
>          Components: analyze
>    Affects Versions: 2.10, 3.0.0
>         Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T13:41:47-03:00)
> Maven home: C:\productos\apache-maven-3.3.9\bin\..
> Java version: 1.8.0_51, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_51\jre
> Default locale: es_AR, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
>            Reporter: Gabriel Belingueres
>            Assignee: Robert Scholte
>            Priority: Minor
>
> {{javax.mail:mail:1.4.7}} has {{javax.activation}} as a dependency, and (if not excluded),
the analyze goal shows:
> {noformat}
> [WARNING] Used undeclared dependencies found:
> [WARNING]    javax.activation:activation:jar:1.1:compile
> {noformat}
> When in fact Java 6+ already includes the javax.activation package, not needing the cited
dependency.
> The idea is that the analyze goal could show a warning alerting the user about this situation.
> TIA,
> Gabriel



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message