Class ShadedArtifactsFileReader
java.lang.Object
org.wildfly.maven.plugins.licenses.ShadedArtifactsFileReader
Parses the shaded-artifacts XML file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fat jar (shaded artifact) entry: the artifact coordinates and its list of bundled dependencies as read from the XML.static final classA shaded (bundled) dependency entry: GAV coordinates as read from the XML. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ShadedArtifactsFileReader.FatJar> Parsespathand returns the shaded dependency mapping.
-
Method Details
-
read
public static List<ShadedArtifactsFileReader.FatJar> read(Path path) throws IOException, ParserConfigurationException, SAXException Parsespathand returns the shaded dependency mapping.- Parameters:
path- path to theshaded-artifacts.xmlfile- Returns:
- a list of fat jars.
- Throws:
IOException- if the file cannot be readParserConfigurationException- if the XML parser cannot be configuredSAXException- if the XML is malformed
-