Skip to content

[MDEP-753] Non-test dependency reported as Non-test scoped test only dependency #1254

@jira-importer

Description

@jira-importer

Elliotte Rusty Harold opened MDEP-753 and commented

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.

googleapis/google-http-java-client#1396
https://github.com/googleapis/google-http-java-client/pull/1396/checks?check_run_id=2809438131


Affects: 3.2.0

Attachments:

Issue Links:

  • MSHARED-1021 Handle different classes from same artifact used by model and test code
    ("is blocked by")

  • MDEP-784 Upgrade maven-dependency-analyzer to 1.12.0
    ("is blocked by")

  • MDEP-791 Non-test scoped and transitive dependencies in compile scope
    ("split to")

  • MDEP-790 New Goals: analyze-main and analyze-test
    ("split to")

  • MDEP-757 bug with "non-test scoped test only dependencies found"

  • MDEP-759 'Dependency not found' with 3.2.0 and Java-17 while analyzing

  • MDEP-780 “Non-test scoped test only dependencies found” false-positive in 3.2.0/1.11.2

  • MDEP-754 Analyze incorrectly warns that junit is test only when it is a compile time dependency

  • MDEP-787 Allow ignoring non-test-scoped dependencies

Remote Links:

40 votes, 45 watchers

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:criticalCrashes, loss of data, severe memory leak

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions