Class MavenMetaInfConfiguration

  • All Implemented Interfaces:
    Configuration

    public class MavenMetaInfConfiguration
    extends MetaInfConfiguration
    MavenWebInfConfiguration WebInfConfiguration to take account of overlaid wars expressed as project dependencies and potential configured via the maven-war-plugin.
    • Field Detail

      • COUNTER

        protected static int COUNTER
    • Constructor Detail

      • MavenMetaInfConfiguration

        public MavenMetaInfConfiguration()
    • Method Detail

      • replaces

        public java.lang.Class<? extends Configuration> replaces()
        Description copied from interface: Configuration
        Get a class that this class replaces/extends. If this is added to Configurations collection that already contains a configuration of the replaced class or that reports to replace the same class, then it is replaced with this instance.
        Returns:
        The class this Configuration replaces/extends or null if it replaces no other configuration
      • findJars

        protected java.util.List<Resource> findJars​(WebAppContext context)
                                             throws java.lang.Exception
        Get the jars to examine from the files from which we have synthesized the classpath. Note that the classpath is not set at this point, so we cannot get them from the classpath.
        Overrides:
        findJars in class MetaInfConfiguration
        Parameters:
        context - the web app context
        Returns:
        the list of jars found
        Throws:
        java.lang.Exception - if unable to find the jars