public String retrievePackagingFromPom(ArtifactStoreRequest request)
throws IOException
{
String packaging;
GavCalculator gavCalculator = request.getMavenRepository().getGavCalculator();
try {
Gav pomGav = getPomGav(request);
if (pomGav == null) {
return null;
}
String pomPath = gavCalculator.gavToPath(pomGav);
request.setRequestPath(pomPath);
StorageFileItem pomFile = (StorageFileItem) request.getMavenRepository().retrieveItem(false, request);