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 Details

    • COUNTER

      protected static int COUNTER
  • Constructor Details

    • MavenMetaInfConfiguration

      public MavenMetaInfConfiguration()
  • Method Details

    • replaces

      public 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 List<Resource> findJars(WebAppContext context) throws 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:
      Exception - if unable to find the jars
    • findClassDirs

      protected List<Resource> findClassDirs(WebAppContext context) throws Exception
      Add in the classes dirs from test/classes and target/classes
      Overrides:
      findClassDirs in class MetaInfConfiguration
      Throws:
      Exception