public interface GavCalculator
An interface to calculate
Gavbased on provided artifact path and to calculate an artifact path from provided
- Tamas Cservenak
pathToGavCalculates GAV from provided repository path. The path has to be absolute starting from repository root. If path represents a proper artifact path (conforming to given layout), GAV is "calculated" from it and is returned. If path represents some file that is not an artifact, but is part of the repository layout (like maven-metadata.xml), or in any other case it returns null.
path- the repository path
- Gav parsed from the path
gavToPathReassembles the repository path from the supplied GAV. It will be an absolute path.
- the path calculated from GAV, obeying current layout.