提交 4d20d302 编写于 作者: S Serge Rider

Maven artifact packaging info


Former-commit-id: a29385f7
上级 d8e05379
......@@ -111,7 +111,9 @@ public class DriverDependencies implements DBPDriverDependencies
DependencyNode prevNode = libMap.get(node.library.getId());
if (prevNode == null || prevNode.depth > node.depth) {
libMap.put(node.library.getId(), node);
//if (node.library.isDownloadable()) {
libMap.put(node.library.getId(), node);
//}
if (prevNode != null) {
prevNode.duplicate = true;
}
......
......@@ -85,6 +85,9 @@ public class DriverLibraryMavenArtifact extends DriverLibraryAbstract
@Override
public boolean isDownloadable()
{
if (localVersion != null) {
//return !"pom".equals(localVersion.getPackaging());
}
return true;
}
......
......@@ -52,6 +52,7 @@ public class MavenArtifactVersion implements IMavenIdentifier {
private MavenArtifact artifact;
private String name;
private String version;
private String packaging;
private String description;
private String url;
private MavenArtifactVersion parent;
......@@ -131,6 +132,11 @@ public class MavenArtifactVersion implements IMavenIdentifier {
return MavenArtifactReference.makeId(this);
}
@Nullable
public String getPackaging() {
return packaging;
}
public String getDescription() {
return description;
}
......@@ -247,6 +253,7 @@ public class MavenArtifactVersion implements IMavenIdentifier {
name = XMLUtils.getChildElementBody(root, "name");
url = XMLUtils.getChildElementBody(root, "url");
version = XMLUtils.getChildElementBody(root, "version");
packaging = XMLUtils.getChildElementBody(root, "packaging");
description = XMLUtils.getChildElementBody(root, "description");
if (description != null) {
description = TextUtils.compactWhiteSpaces(description.trim());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册