Package org.apache.maven.index.artifact
Class M1GavCalculator
java.lang.Object
org.apache.maven.index.artifact.M1GavCalculator
- All Implemented Interfaces:
- GavCalculator
@Singleton
@Named("maven1")
@Deprecated
public class M1GavCalculator
extends Object
implements GavCalculator
Deprecated.
Maven1 support to be dropped.
An M1 
GavCalculator. Heavily under-maintained.- Author:
- Jason van Zyl, Tamas Cservenak
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
M1GavCalculatorpublic M1GavCalculator()Deprecated.
 
- 
- 
Method Details- 
pathToGavDeprecated.Description copied from interface:GavCalculatorCalculates 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.- Specified by:
- pathToGavin interface- GavCalculator
- Parameters:
- str- the repository path
- Returns:
- Gav parsed from the path
 
- 
gavToPathDeprecated.// XXX this is not accurate, m1 is using packaging as an artifact folder name.- Specified by:
- gavToPathin interface- GavCalculator
- Parameters:
- gav-
- Returns:
- the path calculated from GAV, obeying current layout.
 
 
-