Class CentralCheck

  • All Implemented Interfaces:
    AnalyzerPlugin

    public class CentralCheck
    extends java.lang.Object
    implements AnalyzerPlugin
    Sets a warning when a header is missing to publish at Central. The Sonatype Nexus does some verifications and it is pretty annoying if they fail.
    • Constructor Summary

      Constructors 
      Constructor Description
      CentralCheck()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean analyzeJar​(Analyzer analyzer)
      This plugin is called after analysis.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CentralCheck

        public CentralCheck()
    • Method Detail

      • analyzeJar

        public boolean analyzeJar​(Analyzer analyzer)
                           throws java.lang.Exception
        Description copied from interface: AnalyzerPlugin
        This plugin is called after analysis. The plugin is free to modify the jar and/or change the classpath information (see referred, contained). This plugin is called after analysis of the JAR but before manifest generation.
        Specified by:
        analyzeJar in interface AnalyzerPlugin
        Returns:
        true if the classpace has been modified so that the bundle classpath must be reanalyzed
        Throws:
        java.lang.Exception