Warning for deprecated developers

Is there a way in Maven, Hudson, or Sonar to warn that some obsolete artifacts are included in the assembly.

For example, consider having multiple internal business flags. Some versions of these cans may go through the end of life phase. During this time, it would be nice if any assemblies that occurred would give a warning of some kind and direct the user to some documentation on this issue.

To be clear, assemblies should not fail. In addition, we want to apply this logic to a specific set of artifacts, and not to everything.

+4
source share
2 answers

You can try using the executor plugin to specify dependencies that are no longer allowed.

The plugin has goals to either apply the rules (thereby failing to complete the assembly) or print a violation report.

Update

I am using the Sonar dependency report to look for cross-use of legacy libraries. I know that you also use Sonar, but just in case, here is an example:

(This information comes from the Maven POM of each project analyzed by Sonar.)

I think what you are really looking for does not currently exist ... A plugin that works like a standard Maven plugin but is configured and causes a violation in Sonar!

Why don't you post this as an idea for the Sonar JIRA?

+3
source

Using the maven dependency plugin, you can run this

mvn versions:display-dependency-updates 

This will display a list of all artifacts in which new repositories are available in the repository. It’s just that developers launch it so often and update it accordingly.

+6
source

Source: https://habr.com/ru/post/1394198/


All Articles