Class MavenMetadata
java.lang.Object
org.eclipse.jetty.start.fileinits.MavenMetadata
Simple parser for maven-metadata.xml files
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSnapshot
(String classifier, String extension) static boolean
isExpiredTimestamp
(String lastUpdated) Tests the current time against the provided timestamp.
-
Constructor Details
-
MavenMetadata
public MavenMetadata(Path metadataXml) throws IOException, ParserConfigurationException, SAXException
-
-
Method Details
-
getGroupId
-
getArtifactId
-
getVersion
-
getLastUpdated
-
getSnapshotTimestamp
-
getSnapshotBuildNumber
-
getSnapshots
-
getSnapshot
-
isExpiredTimestamp
Tests the current time against the provided timestamp.If the current time is the next day from the provided timestamp, it is considered expired.
- Parameters:
lastUpdated
- the time representing the last update- Returns:
- true if it's the next day from the timestamp (or later)
-