Maven plugin to restrict specific packages from being used
I work in a team of around 40 developers, and I do not want any developer to use some specific API(java.sun.Base64 to be precise) to be used by any of the developers and rather make them use alternatives to the sun API as its proprietary. Are there any plugins for maven, by which , specifying the restricted packages in the pom.xml , the build will break if any of those packages are being used anywhere in the code?? Or is there a more graceful way to do this?? Thanks Mark O'Connor You want to define an architectural rule for your project, which is best enforced by source code analysis. Sonar