archiver.setOutputFile(archiveFile);
try {
// include the features XML file
Artifact featureArtifact = factory.createArtifactWithClassifier(project.getGroupId(), project.getArtifactId(), project.getVersion(), "xml", KarArtifactInstaller.FEATURES_CLASSIFIER);
jarArchiver.addFile(featuresFile, repositoryPath + layout.pathOf(featureArtifact));
for (Artifact artifact : bundles) {
resolver.resolve(artifact, remoteRepos, localRepo);
File localFile = artifact.getFile();
// TODO this may not be reasonable, but... resolved snapshot artifacts have timestamped versions