Class JarIdentificationAnalysis

java.lang.Object
org.apache.maven.shared.jar.identification.JarIdentificationAnalysis

@Singleton @Named public class JarIdentificationAnalysis extends Object
Analyze the JAR file to identify Maven artifact metadata. This class is thread safe and immutable as long as all provided exposers are, as it retains no state. If using Plexus, the class will use all available exposers in the container. Note that you must first create an instance of JarAnalyzer - see its Javadoc for a typical use.
  • Constructor Details

  • Method Details

    • analyze

      public JarIdentification analyze(JarAnalyzer jarAnalyzer)
      Analyze a JAR and find any associated Maven metadata. Note that if the provided JAR analyzer has previously analyzed the JAR, the cached results will be returned. You must obtain a new JAR analyzer to the re-read the contents of the file.
      Parameters:
      jarAnalyzer - the JAR to analyze. This must not yet have been closed.
      Returns:
      the Maven metadata discovered