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

Charles Honton commented on MDEP-753:
-------------------------------------

Unfortunately, does not work on my largish project;

3.1.2: no issues

3.2.0
[INFO] --- maven-dependency-plugin:3.2.0:analyze-only (check-dependencies) @ 
client-lib ---
[WARNING] Non-test scoped test only dependencies found:
[WARNING]    
org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec:jar:2.0.1.Final:compile
[WARNING]    io.smallrye.config:smallrye-config:jar:2.7.0:compile
[WARNING]    com.fasterxml.jackson.core:jackson-databind:jar:2.12.6:compile
[WARNING]    org.yaml:snakeyaml:jar:1.29:compile
[WARNING]    org.bitbucket.b_c:jose4j:jar:0.7.9:compile
[WARNING]    com.fasterxml.jackson.core:jackson-core:jar:2.12.6:compile
[INFO] ------------------------------------------------------------------------

3.3.0
[INFO] --- maven-dependency-plugin:3.3.0-SNAPSHOT:analyze-only 
(check-dependencies) @ client-lib ---
[WARNING] Non-test scoped test only dependencies found:
[WARNING]    io.smallrye.config:smallrye-config:jar:2.7.0:compile
[WARNING]    com.fasterxml.jackson.core:jackson-core:jar:2.12.6:compile

Scoping jackson-core to 'test' will cause build to fail.

One clue:  ObjectMapper is a class in the jackson-databind jar.  Its parent 
class is ObjectCodec, in the jackson-core jar.


> Non-test dependency reported as Non-test scoped test only dependency
> --------------------------------------------------------------------
>
>                 Key: MDEP-753
>                 URL: https://issues.apache.org/jira/browse/MDEP-753
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>    Affects Versions: 3.2.0
>            Reporter: Elliotte Rusty Harold
>            Assignee: Elliotte Rusty Harold
>            Priority: Critical
>             Fix For: 3.3.0
>
>
> Saw this when updating the google-http-java-client from 3.1.2 to 3.2.0 of the 
> plugin. I'm not immediately sure whether this is a regression:
> [INFO] --- maven-dependency-plugin:3.2.0:analyze (default-cli) @ 
> google-http-client ---
> Warning:  Non-test scoped test only dependencies found:
> Warning:     com.google.guava:guava:jar:30.1.1-android:compile
> Warning:     io.opencensus:opencensus-api:jar:0.28.0:compile
> Changing Guava to scope test breaks the build, which is expected based on the 
> code. The warning seems incorrect. 
> https://github.com/googleapis/google-http-java-client/pull/1396
> https://github.com/googleapis/google-http-java-client/pull/1396/checks?check_run_id=2809438131



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to