import org.sonatype.aether.util.artifact.DefaultArtifact;
import org.sonatype.aether.util.artifact.SubArtifact;
+/**
+ * BND wrapper based on a Maven artifact available from one of the configured
+ * repositories.
+ */
public class MavenWrapper extends BndWrapper implements Runnable {
private final static Log log = LogFactory.getLog(MavenWrapper.class);
setFactory(this);
}
+ @Override
+ public String getVersion() {
+ String version = super.getVersion();
+ if (version != null)
+ return version;
+ return new DefaultArtifact(sourceCoords).getVersion();
+ }
+
public void run() {
Session distSession = null;
Session javaSession = null;