Class EmbeddedMavenModelExposer

java.lang.Object
org.apache.maven.shared.jar.identification.exposers.EmbeddedMavenModelExposer
All Implemented Interfaces:
JarIdentificationExposer

@Singleton @Named("embeddedMavenModel") public class EmbeddedMavenModelExposer extends Object implements JarIdentificationExposer
Exposer that examines a JAR file for any embedded Maven metadata for identification.
  • Constructor Details

    • EmbeddedMavenModelExposer

      public EmbeddedMavenModelExposer()
  • Method Details

    • expose

      public void expose(JarIdentification identification, JarAnalyzer jarAnalyzer)
      Description copied from interface: JarIdentificationExposer
      Expose metadata during the identification process.
      Specified by:
      expose in interface JarIdentificationExposer
      Parameters:
      identification - the identification record to populate with the exposed metadata
      jarAnalyzer - the JAR to obtain the information from. Should be treated as read only, with the exception of caching the metadata if it would be identical when run over the same file again.