Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven: make use of the analyze* goals #56

Open
randomicecube opened this issue Jan 14, 2025 · 3 comments
Open

maven: make use of the analyze* goals #56

randomicecube opened this issue Jan 14, 2025 · 3 comments
Labels
enhancement New feature or request Java

Comments

@randomicecube
Copy link
Collaborator

Was looking at some of mvn's dependency plugin's goals, and analyze (in addition to its variations) seem to have some interesting outputs which we could make use of, namely dependencies which are "used and declared; used and undeclared; unused and declared" -- these last two in particular would be interesting!
There are surely some other aspects of it we can make use of, but these really caught my attention when I saw them.

cc @algomaster99 what do you think?
also, @Stamp9 are you aware of if it's possible to do something similar for the NPM ecosystem?

@randomicecube randomicecube added enhancement New feature or request Java labels Jan 14, 2025
@algomaster99
Copy link
Member

What do yo want to achieve with these goals? Do you intend to list the following three sets:

  1. used and declared
  2. used and undeclared
  3. unused and declared

It seems that maven-dependency-plugin:analyze also wants to compile sources and test-sources which may not be necessary. You could try using https://github.com/ASSERT-KTH/depclean to get all this information.

@randomicecube
Copy link
Collaborator Author

randomicecube commented Jan 14, 2025

Maybe (probably) not the first one, but yes, the goal was to report on the last two.
I guess we already include DepClean in the README, in the "other issues not handled by dirty-waters" section, so this could be rendered moot?

@algomaster99
Copy link
Member

I guess we already include DepClean in the README, in the "other issues not handled by dirty-waters" section, so this could be rendered moot?

If dirty-waters does not intend to report those information, yes, you could close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Java
Projects
None yet
Development

No branches or pull requests

2 participants