diff --git a/src/packagedcode/maven.py b/src/packagedcode/maven.py
index 2c266168050..57ffd01af5a 100644
--- a/src/packagedcode/maven.py
+++ b/src/packagedcode/maven.py
@@ -132,10 +132,21 @@ def assign_package_to_resources(cls, package, resource, codebase, package_adder)
if resource.path.endswith(f'META-INF/maven/{package.namespace}/{package.name}/pom.xml'):
# First case: a pom.xml inside a META-INF directory such as in
# /META-INF/maven/log4j/log4j/pom.xml: This requires going up 5 times
- upward_segments = 5
+ upward_segments = 4
root = resource
for _ in range(upward_segments):
root = root.parent(codebase)
+
+ number_poms = 0
+ for child in root.walk(codebase):
+ if 'pom.xml' in child.path:
+ number_poms += 1
+
+ if number_poms > 1:
+ root = resource
+ else:
+ root = root.parent(codebase)
+
else:
# Second case: a pom.xml at the root of codebase tree
# FIXME: handle the cases opf parent POMs and nested POMs
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating-expected.json b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating-expected.json
new file mode 100644
index 00000000000..b3deaf65a5b
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating-expected.json
@@ -0,0 +1,1483 @@
+{
+ "packages": [
+ {
+ "type": "maven",
+ "namespace": "com.fasterxml.jackson.core",
+ "name": "jackson-annotations",
+ "version": "2.4.0",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "Jackson-annotations\nCore annotations used for value types, used by Jackson data binding package.",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://wiki.fasterxml.com/JacksonHome",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": null,
+ "code_view_url": "http://github.com/FasterXML/jackson-annotations",
+ "vcs_url": "git+https://github.com/FasterXML/jackson-annotations.git",
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": null,
+ "declared_license_expression_spdx": null,
+ "license_detections": [],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.4.0?classifier=sources"
+ ],
+ "extra_data": {},
+ "repository_homepage_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.4.0/",
+ "repository_download_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.4.0/jackson-annotations-2.4.0.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.4.0/jackson-annotations-2.4.0.pom",
+ "package_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_paths": [
+ "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.xml"
+ ],
+ "datasource_ids": [
+ "maven_pom"
+ ],
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.4.0"
+ },
+ {
+ "type": "maven",
+ "namespace": "com.fasterxml.jackson.core",
+ "name": "jackson-core",
+ "version": "2.4.0",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "Jackson-core\nCore Jackson abstractions, basic JSON streaming API implementation",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://wiki.fasterxml.com/JacksonHome",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": null,
+ "code_view_url": "http://github.com/FasterXML/jackson-core",
+ "vcs_url": "git+https://github.com/FasterXML/jackson-core.git",
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": null,
+ "declared_license_expression_spdx": null,
+ "license_detections": [],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/com.fasterxml.jackson.core/jackson-core@2.4.0?classifier=sources"
+ ],
+ "extra_data": {},
+ "repository_homepage_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.4.0/",
+ "repository_download_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.4.0/jackson-core-2.4.0.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.4.0/jackson-core-2.4.0.pom",
+ "package_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-core@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_paths": [
+ "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.xml"
+ ],
+ "datasource_ids": [
+ "maven_pom"
+ ],
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-core@2.4.0"
+ },
+ {
+ "type": "maven",
+ "namespace": "com.fasterxml.jackson.core",
+ "name": "jackson-databind",
+ "version": "2.4.0",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "jackson-databind\nGeneral data-binding functionality for Jackson: works on core streaming API",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://wiki.fasterxml.com/JacksonHome",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": null,
+ "code_view_url": "http://github.com/FasterXML/jackson-databind",
+ "vcs_url": "git+https://github.com/FasterXML/jackson-databind.git",
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": null,
+ "declared_license_expression_spdx": null,
+ "license_detections": [],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0?classifier=sources"
+ ],
+ "extra_data": {},
+ "repository_homepage_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.4.0/",
+ "repository_download_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.4.0/jackson-databind-2.4.0.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.4.0/jackson-databind-2.4.0.pom",
+ "package_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_paths": [
+ "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml"
+ ],
+ "datasource_ids": [
+ "maven_pom"
+ ],
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0"
+ },
+ {
+ "type": "maven",
+ "namespace": "commons-logging",
+ "name": "commons-logging",
+ "version": "1.1.1",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "Commons Logging\nCommons Logging is a thin adapter allowing configurable bridging to other,\n well known logging systems.",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://commons.apache.org/logging",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": "http://issues.apache.org/jira/browse/LOGGING",
+ "code_view_url": "http://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1",
+ "vcs_url": "svn+http://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1",
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": "apache-2.0",
+ "declared_license_expression_spdx": "Apache-2.0",
+ "license_detections": [
+ {
+ "license_expression": "apache-2.0",
+ "matches": [
+ {
+ "score": 100.0,
+ "start_line": 2,
+ "end_line": 15,
+ "matched_length": 119,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_2.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_2.RULE"
+ }
+ ],
+ "identifier": "apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de"
+ }
+ ],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/commons-logging/commons-logging@1.1.1?classifier=sources"
+ ],
+ "extra_data": {},
+ "repository_homepage_url": "https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/",
+ "repository_download_url": "https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom",
+ "package_uid": "pkg:maven/commons-logging/commons-logging@1.1.1?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_paths": [
+ "htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml"
+ ],
+ "datasource_ids": [
+ "maven_pom"
+ ],
+ "purl": "pkg:maven/commons-logging/commons-logging@1.1.1"
+ },
+ {
+ "type": "maven",
+ "namespace": "org.apache.htrace",
+ "name": "htrace-core",
+ "version": "4.0.0-incubating",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "htrace-core",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://incubator.apache.org/projects/htrace.html",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": null,
+ "code_view_url": null,
+ "vcs_url": null,
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": "apache-2.0",
+ "declared_license_expression_spdx": "Apache-2.0",
+ "license_detections": [
+ {
+ "license_expression": "apache-2.0",
+ "matches": [
+ {
+ "score": 100.0,
+ "start_line": 2,
+ "end_line": 11,
+ "matched_length": 119,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_2.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_2.RULE"
+ }
+ ],
+ "identifier": "apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de"
+ }
+ ],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating?classifier=sources"
+ ],
+ "extra_data": {},
+ "repository_homepage_url": "https://repo1.maven.org/maven2/org/apache/htrace/htrace-core/4.0.0-incubating/",
+ "repository_download_url": "https://repo1.maven.org/maven2/org/apache/htrace/htrace-core/4.0.0-incubating/htrace-core-4.0.0-incubating.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/org/apache/htrace/htrace-core/4.0.0-incubating/htrace-core-4.0.0-incubating.pom",
+ "package_uid": "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_paths": [
+ "htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core/pom.xml"
+ ],
+ "datasource_ids": [
+ "maven_pom"
+ ],
+ "purl": "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating"
+ }
+ ],
+ "dependencies": [
+ {
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.4.0",
+ "extracted_requirement": "2.4.0",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-core@2.4.0",
+ "extracted_requirement": "2.4.0",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-core@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/cglib/cglib@2.2.2",
+ "extracted_requirement": "2.2.2",
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/cglib/cglib@2.2.2?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/org.codehaus.groovy/groovy@1.7.9",
+ "extracted_requirement": "1.7.9",
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/org.codehaus.groovy/groovy@1.7.9?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/org.hibernate/hibernate-cglib-repack@2.1_3",
+ "extracted_requirement": "2.1_3",
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/org.hibernate/hibernate-cglib-repack@2.1_3?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/junit/junit@3.8.1",
+ "extracted_requirement": "3.8.1",
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/junit/junit@3.8.1?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/commons-logging/commons-logging@1.1.1?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/log4j/log4j@1.2.12",
+ "extracted_requirement": "1.2.12",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/log4j/log4j@1.2.12?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/commons-logging/commons-logging@1.1.1?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/logkit/logkit@1.0.1",
+ "extracted_requirement": "1.0.1",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/logkit/logkit@1.0.1?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/commons-logging/commons-logging@1.1.1?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/avalon-framework/avalon-framework@4.1.3",
+ "extracted_requirement": "4.1.3",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/avalon-framework/avalon-framework@4.1.3?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/commons-logging/commons-logging@1.1.1?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/javax.servlet/servlet-api@2.3",
+ "extracted_requirement": "2.3",
+ "scope": "provided",
+ "is_runtime": true,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/javax.servlet/servlet-api@2.3?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/commons-logging/commons-logging@1.1.1?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/junit/junit",
+ "extracted_requirement": null,
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": false,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/junit/junit?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-core",
+ "extracted_requirement": null,
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": false,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-core?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-databind",
+ "extracted_requirement": null,
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": false,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/com.fasterxml.jackson.core/jackson-databind?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core/pom.xml",
+ "datasource_id": "maven_pom"
+ },
+ {
+ "purl": "pkg:maven/commons-logging/commons-logging",
+ "extracted_requirement": null,
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": false,
+ "resolved_package": {},
+ "extra_data": {},
+ "dependency_uid": "pkg:maven/commons-logging/commons-logging?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "for_package_uid": "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating?uuid=fixed-uid-done-for-testing-5642512d1758",
+ "datafile_path": "htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core/pom.xml",
+ "datasource_id": "maven_pom"
+ }
+ ],
+ "license_detections": [
+ {
+ "identifier": "apache_2_0-e7633baf-a264-a1ab-40f6-a28ec157067a",
+ "license_expression": "apache-2.0",
+ "detection_count": 1
+ },
+ {
+ "identifier": "apache_2_0-aef5c472-cdfd-dc5f-c152-40e3d96f140e",
+ "license_expression": "apache-2.0",
+ "detection_count": 1
+ },
+ {
+ "identifier": "apache_2_0-482220ca-c07b-bf59-66ed-6e7eaf9f3b1e",
+ "license_expression": "apache-2.0",
+ "detection_count": 1
+ },
+ {
+ "identifier": "apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de",
+ "license_expression": "apache-2.0",
+ "detection_count": 4
+ }
+ ],
+ "files": [
+ {
+ "path": "htrace-core-4.0.0-incubating",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/DEPENDENCIES",
+ "type": "file",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": "apache-2.0",
+ "detected_license_expression_spdx": "Apache-2.0",
+ "license_detections": [
+ {
+ "license_expression": "apache-2.0",
+ "matches": [
+ {
+ "score": 100.0,
+ "start_line": 11,
+ "end_line": 11,
+ "matched_length": 17,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_212.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_212.RULE"
+ },
+ {
+ "score": 100.0,
+ "start_line": 13,
+ "end_line": 13,
+ "matched_length": 17,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_212.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_212.RULE"
+ },
+ {
+ "score": 100.0,
+ "start_line": 15,
+ "end_line": 15,
+ "matched_length": 17,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_212.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_212.RULE"
+ },
+ {
+ "score": 100.0,
+ "start_line": 19,
+ "end_line": 19,
+ "matched_length": 17,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_212.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_212.RULE"
+ }
+ ],
+ "identifier": "apache_2_0-e7633baf-a264-a1ab-40f6-a28ec157067a"
+ }
+ ],
+ "license_clues": [],
+ "percentage_of_license_text": 41.72,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/LICENSE",
+ "type": "file",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": "apache-2.0",
+ "detected_license_expression_spdx": "Apache-2.0",
+ "license_detections": [
+ {
+ "license_expression": "apache-2.0",
+ "matches": [
+ {
+ "score": 100.0,
+ "start_line": 2,
+ "end_line": 4,
+ "matched_length": 12,
+ "match_coverage": 100.0,
+ "matcher": "1-hash",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_791.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_791.RULE"
+ }
+ ],
+ "identifier": "apache_2_0-aef5c472-cdfd-dc5f-c152-40e3d96f140e"
+ }
+ ],
+ "license_clues": [],
+ "percentage_of_license_text": 100.0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/MANIFEST.MF",
+ "type": "file",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/NOTICE",
+ "type": "file",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": "apache-2.0",
+ "detected_license_expression_spdx": "Apache-2.0",
+ "license_detections": [
+ {
+ "license_expression": "apache-2.0",
+ "matches": [
+ {
+ "score": 95.0,
+ "start_line": 5,
+ "end_line": 6,
+ "matched_length": 14,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_product_includes_2.RULE",
+ "rule_relevance": 95,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_product_includes_2.RULE"
+ }
+ ],
+ "identifier": "apache_2_0-482220ca-c07b-bf59-66ed-6e7eaf9f3b1e"
+ }
+ ],
+ "license_clues": [],
+ "percentage_of_license_text": 63.64,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-annotations",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.xml",
+ "type": "file",
+ "package_data": [
+ {
+ "type": "maven",
+ "namespace": "com.fasterxml.jackson.core",
+ "name": "jackson-annotations",
+ "version": "2.4.0",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "Jackson-annotations\nCore annotations used for value types, used by Jackson data binding package.",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://wiki.fasterxml.com/JacksonHome",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": null,
+ "code_view_url": "http://github.com/FasterXML/jackson-annotations",
+ "vcs_url": "git+https://github.com/FasterXML/jackson-annotations.git",
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": null,
+ "declared_license_expression_spdx": null,
+ "license_detections": [],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.4.0?classifier=sources"
+ ],
+ "file_references": [],
+ "extra_data": {},
+ "dependencies": [],
+ "repository_homepage_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.4.0/",
+ "repository_download_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.4.0/jackson-annotations-2.4.0.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.4.0/jackson-annotations-2.4.0.pom",
+ "datasource_id": "maven_pom",
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.4.0"
+ }
+ ],
+ "for_packages": [
+ "pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758"
+ ],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-core",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.xml",
+ "type": "file",
+ "package_data": [
+ {
+ "type": "maven",
+ "namespace": "com.fasterxml.jackson.core",
+ "name": "jackson-core",
+ "version": "2.4.0",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "Jackson-core\nCore Jackson abstractions, basic JSON streaming API implementation",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://wiki.fasterxml.com/JacksonHome",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": null,
+ "code_view_url": "http://github.com/FasterXML/jackson-core",
+ "vcs_url": "git+https://github.com/FasterXML/jackson-core.git",
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": null,
+ "declared_license_expression_spdx": null,
+ "license_detections": [],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/com.fasterxml.jackson.core/jackson-core@2.4.0?classifier=sources"
+ ],
+ "file_references": [],
+ "extra_data": {},
+ "dependencies": [],
+ "repository_homepage_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.4.0/",
+ "repository_download_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.4.0/jackson-core-2.4.0.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.4.0/jackson-core-2.4.0.pom",
+ "datasource_id": "maven_pom",
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-core@2.4.0"
+ }
+ ],
+ "for_packages": [
+ "pkg:maven/com.fasterxml.jackson.core/jackson-core@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758"
+ ],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml",
+ "type": "file",
+ "package_data": [
+ {
+ "type": "maven",
+ "namespace": "com.fasterxml.jackson.core",
+ "name": "jackson-databind",
+ "version": "2.4.0",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "jackson-databind\nGeneral data-binding functionality for Jackson: works on core streaming API",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://wiki.fasterxml.com/JacksonHome",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": null,
+ "code_view_url": "http://github.com/FasterXML/jackson-databind",
+ "vcs_url": "git+https://github.com/FasterXML/jackson-databind.git",
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": null,
+ "declared_license_expression_spdx": null,
+ "license_detections": [],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0?classifier=sources"
+ ],
+ "file_references": [],
+ "extra_data": {},
+ "dependencies": [
+ {
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-annotations@2.4.0",
+ "extracted_requirement": "2.4.0",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-core@2.4.0",
+ "extracted_requirement": "2.4.0",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/cglib/cglib@2.2.2",
+ "extracted_requirement": "2.2.2",
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/org.codehaus.groovy/groovy@1.7.9",
+ "extracted_requirement": "1.7.9",
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/org.hibernate/hibernate-cglib-repack@2.1_3",
+ "extracted_requirement": "2.1_3",
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ }
+ ],
+ "repository_homepage_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.4.0/",
+ "repository_download_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.4.0/jackson-databind-2.4.0.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.4.0/jackson-databind-2.4.0.pom",
+ "datasource_id": "maven_pom",
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0"
+ }
+ ],
+ "for_packages": [
+ "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.4.0?uuid=fixed-uid-done-for-testing-5642512d1758"
+ ],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/commons-logging",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml",
+ "type": "file",
+ "package_data": [
+ {
+ "type": "maven",
+ "namespace": "commons-logging",
+ "name": "commons-logging",
+ "version": "1.1.1",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "Commons Logging\nCommons Logging is a thin adapter allowing configurable bridging to other,\n well known logging systems.",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://commons.apache.org/logging",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": "http://issues.apache.org/jira/browse/LOGGING",
+ "code_view_url": "http://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1",
+ "vcs_url": "svn+http://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1",
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": "apache-2.0",
+ "declared_license_expression_spdx": "Apache-2.0",
+ "license_detections": [
+ {
+ "license_expression": "apache-2.0",
+ "matches": [
+ {
+ "score": 100.0,
+ "start_line": 2,
+ "end_line": 15,
+ "matched_length": 119,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_2.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_2.RULE"
+ }
+ ],
+ "identifier": "apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de"
+ }
+ ],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/commons-logging/commons-logging@1.1.1?classifier=sources"
+ ],
+ "file_references": [],
+ "extra_data": {},
+ "dependencies": [
+ {
+ "purl": "pkg:maven/junit/junit@3.8.1",
+ "extracted_requirement": "3.8.1",
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/log4j/log4j@1.2.12",
+ "extracted_requirement": "1.2.12",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/logkit/logkit@1.0.1",
+ "extracted_requirement": "1.0.1",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/avalon-framework/avalon-framework@4.1.3",
+ "extracted_requirement": "4.1.3",
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/javax.servlet/servlet-api@2.3",
+ "extracted_requirement": "2.3",
+ "scope": "provided",
+ "is_runtime": true,
+ "is_optional": true,
+ "is_resolved": true,
+ "resolved_package": {},
+ "extra_data": {}
+ }
+ ],
+ "repository_homepage_url": "https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/",
+ "repository_download_url": "https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom",
+ "datasource_id": "maven_pom",
+ "purl": "pkg:maven/commons-logging/commons-logging@1.1.1"
+ }
+ ],
+ "for_packages": [
+ "pkg:maven/commons-logging/commons-logging@1.1.1?uuid=fixed-uid-done-for-testing-5642512d1758"
+ ],
+ "detected_license_expression": "apache-2.0",
+ "detected_license_expression_spdx": "Apache-2.0",
+ "license_detections": [
+ {
+ "license_expression": "apache-2.0",
+ "matches": [
+ {
+ "score": 100.0,
+ "start_line": 2,
+ "end_line": 15,
+ "matched_length": 119,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_2.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_2.RULE"
+ }
+ ],
+ "identifier": "apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de"
+ }
+ ],
+ "license_clues": [],
+ "percentage_of_license_text": 19.01,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core/pom.xml",
+ "type": "file",
+ "package_data": [
+ {
+ "type": "maven",
+ "namespace": "org.apache.htrace",
+ "name": "htrace-core",
+ "version": "4.0.0-incubating",
+ "qualifiers": {},
+ "subpath": null,
+ "primary_language": "Java",
+ "description": "htrace-core",
+ "release_date": null,
+ "parties": [],
+ "keywords": [],
+ "homepage_url": "http://incubator.apache.org/projects/htrace.html",
+ "download_url": null,
+ "size": null,
+ "sha1": null,
+ "md5": null,
+ "sha256": null,
+ "sha512": null,
+ "bug_tracking_url": null,
+ "code_view_url": null,
+ "vcs_url": null,
+ "copyright": null,
+ "holder": null,
+ "declared_license_expression": "apache-2.0",
+ "declared_license_expression_spdx": "Apache-2.0",
+ "license_detections": [
+ {
+ "license_expression": "apache-2.0",
+ "matches": [
+ {
+ "score": 100.0,
+ "start_line": 2,
+ "end_line": 11,
+ "matched_length": 119,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_2.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_2.RULE"
+ }
+ ],
+ "identifier": "apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de"
+ }
+ ],
+ "other_license_expression": null,
+ "other_license_expression_spdx": null,
+ "other_license_detections": [],
+ "extracted_license_statement": null,
+ "notice_text": null,
+ "source_packages": [
+ "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating?classifier=sources"
+ ],
+ "file_references": [],
+ "extra_data": {},
+ "dependencies": [
+ {
+ "purl": "pkg:maven/junit/junit",
+ "extracted_requirement": null,
+ "scope": "test",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": false,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-core",
+ "extracted_requirement": null,
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": false,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/com.fasterxml.jackson.core/jackson-databind",
+ "extracted_requirement": null,
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": false,
+ "resolved_package": {},
+ "extra_data": {}
+ },
+ {
+ "purl": "pkg:maven/commons-logging/commons-logging",
+ "extracted_requirement": null,
+ "scope": "compile",
+ "is_runtime": false,
+ "is_optional": true,
+ "is_resolved": false,
+ "resolved_package": {},
+ "extra_data": {}
+ }
+ ],
+ "repository_homepage_url": "https://repo1.maven.org/maven2/org/apache/htrace/htrace-core/4.0.0-incubating/",
+ "repository_download_url": "https://repo1.maven.org/maven2/org/apache/htrace/htrace-core/4.0.0-incubating/htrace-core-4.0.0-incubating.jar",
+ "api_data_url": "https://repo1.maven.org/maven2/org/apache/htrace/htrace-core/4.0.0-incubating/htrace-core-4.0.0-incubating.pom",
+ "datasource_id": "maven_pom",
+ "purl": "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating"
+ }
+ ],
+ "for_packages": [
+ "pkg:maven/org.apache.htrace/htrace-core@4.0.0-incubating?uuid=fixed-uid-done-for-testing-5642512d1758"
+ ],
+ "detected_license_expression": "apache-2.0",
+ "detected_license_expression_spdx": "Apache-2.0",
+ "license_detections": [
+ {
+ "license_expression": "apache-2.0",
+ "matches": [
+ {
+ "score": 100.0,
+ "start_line": 2,
+ "end_line": 11,
+ "matched_length": 119,
+ "match_coverage": 100.0,
+ "matcher": "2-aho",
+ "license_expression": "apache-2.0",
+ "rule_identifier": "apache-2.0_2.RULE",
+ "rule_relevance": 100,
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_2.RULE"
+ }
+ ],
+ "identifier": "apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de"
+ }
+ ],
+ "license_clues": [],
+ "percentage_of_license_text": 39.27,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/commons",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/commons/logging",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/commons/logging/LogSource.class",
+ "type": "file",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/core",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/core/TraceScope.class",
+ "type": "file",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/annotation",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/annotation/SimpleObjectIdResolver.class",
+ "type": "file",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/core",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/core/JsonParser.class",
+ "type": "file",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/databind",
+ "type": "directory",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ },
+ {
+ "path": "htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/databind/SerializationFeature.class",
+ "type": "file",
+ "package_data": [],
+ "for_packages": [],
+ "detected_license_expression": null,
+ "detected_license_expression_spdx": null,
+ "license_detections": [],
+ "license_clues": [],
+ "percentage_of_license_text": 0,
+ "scan_errors": []
+ }
+ ]
+}
\ No newline at end of file
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/DEPENDENCIES b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/DEPENDENCIES
new file mode 100644
index 00000000000..7c869cf72e9
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/DEPENDENCIES
@@ -0,0 +1,23 @@
+// ------------------------------------------------------------------
+// Transitive dependencies of this project determined from the
+// maven pom organized by organization.
+// ------------------------------------------------------------------
+
+htrace-core
+
+
+From: 'FasterXML' (http://fasterxml.com/)
+ - Jackson-annotations (http://wiki.fasterxml.com/JacksonHome) com.fasterxml.jackson.core:jackson-annotations:bundle:2.4.0
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - Jackson-core (http://wiki.fasterxml.com/JacksonHome) com.fasterxml.jackson.core:jackson-core:bundle:2.4.0
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+ - jackson-databind (http://wiki.fasterxml.com/JacksonHome) com.fasterxml.jackson.core:jackson-databind:bundle:2.4.0
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'The Apache Software Foundation' (http://www.apache.org/)
+ - Commons Logging (http://commons.apache.org/logging) commons-logging:commons-logging:jar:1.1.1
+ License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+
+
+
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/LICENSE b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/LICENSE
new file mode 100644
index 00000000000..f6d12db74dc
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/LICENSE
@@ -0,0 +1,4 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/MANIFEST.MF b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..5bb9438847b
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/MANIFEST.MF
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Implementation-Vendor: The Apache Software Foundation
+Implementation-Title: htrace-core
+Implementation-Version: 4.0.0-incubating
+Implementation-Vendor-Id: org.apache.htrace
+Built-By: cmccabe
+Build-Jdk: 1.7.0_10
+Specification-Vendor: The Apache Software Foundation
+Specification-Title: htrace-core
+Created-By: Apache Maven 3.0.4
+Specification-Version: 4.0.0-incubating
+Archiver-Version: Plexus Archiver
+
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/NOTICE b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/NOTICE
new file mode 100644
index 00000000000..9b44ca72e7e
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/NOTICE
@@ -0,0 +1,8 @@
+
+htrace-core
+Copyright 2015 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.xml b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.xml
new file mode 100644
index 00000000000..7aa2bc66439
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-annotations/pom.xml
@@ -0,0 +1,29 @@
+
+
+ 4.0.0
+
+ com.fasterxml.jackson
+ jackson-parent
+ 2.4
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ Jackson-annotations
+ 2.4.0
+ bundle
+ Core annotations used for value types, used by Jackson data binding package.
+
+
+ http://wiki.fasterxml.com/JacksonHome
+
+ scm:git:git@github.com:FasterXML/jackson-annotations.git
+ scm:git:git@github.com:FasterXML/jackson-annotations.git
+ http://github.com/FasterXML/jackson-annotations
+ jackson-annotations-2.4.0
+
+
+
+ com.fasterxml.jackson.annotation.*;version=${project.version}
+
+
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.xml b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.xml
new file mode 100644
index 00000000000..01aaeff72cd
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-core/pom.xml
@@ -0,0 +1,77 @@
+
+ 4.0.0
+
+ com.fasterxml.jackson
+ jackson-parent
+ 2.4
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ Jackson-core
+ 2.4.0
+ bundle
+ Core Jackson abstractions, basic JSON streaming API implementation
+
+
+ http://wiki.fasterxml.com/JacksonHome
+
+ scm:git:git@github.com:FasterXML/jackson-core.git
+ scm:git:git@github.com:FasterXML/jackson-core.git
+ http://github.com/FasterXML/jackson-core
+ jackson-core-2.4.0
+
+
+
+ com.fasterxml.jackson.core;version=${project.version},
+com.fasterxml.jackson.core.*;version=${project.version}
+
+
+
+ com/fasterxml/jackson/core/json
+ ${project.groupId}.json
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.8.1
+
+ true
+ 1.6
+ UTF-8
+ 1g
+
+
+ http://docs.oracle.com/javase/6/docs/api/
+
+ ${javadoc.package.exclude}
+ ${sun.boot.class.path}
+ com.google.doclava.Doclava
+ false
+ -J-Xmx1024m
+
+ com.google.doclava
+ doclava
+ 1.0.3
+
+
+ -hdf project.name "${project.name} ${project.version}"
+ -d ${project.reporting.outputDirectory}/apidocs
+
+
+
+
+ default
+
+ javadoc
+
+
+
+
+
+
+
+
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml
new file mode 100644
index 00000000000..8863f4106da
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml
@@ -0,0 +1,81 @@
+
+
+ 4.0.0
+
+
+ com.fasterxml.jackson
+ jackson-parent
+ 2.4
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.4.0
+ jackson-databind
+ bundle
+ General data-binding functionality for Jackson: works on core streaming API
+ http://wiki.fasterxml.com/JacksonHome
+
+
+ scm:git:git@github.com:FasterXML/jackson-databind.git
+ scm:git:git@github.com:FasterXML/jackson-databind.git
+ http://github.com/FasterXML/jackson-databind
+ jackson-databind-2.4.0
+
+
+
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ 2.4.0
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ 2.4.0
+
+
+
+
+ cglib
+ cglib
+ 2.2.2
+ test
+
+
+ org.codehaus.groovy
+ groovy
+ 1.7.9
+ test
+
+
+ org.hibernate
+ hibernate-cglib-repack
+ 2.1_3
+ test
+
+
+
+
+
+
+ org.codehaus.mojo
+ cobertura-maven-plugin
+
+
+
+
+
+
+ release
+
+ true
+ true
+
+
+
+
+
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml
new file mode 100644
index 00000000000..adf9f7f3bba
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/commons-logging/commons-logging/pom.xml
@@ -0,0 +1,163 @@
+
+
+
+
+ org.apache.commons
+ commons-parent
+ 5
+
+ 4.0.0
+ commons-logging
+ commons-logging
+ Commons Logging
+ 1.1.1
+ Commons Logging is a thin adapter allowing configurable bridging to other,
+ well known logging systems.
+ http://commons.apache.org/logging
+
+
+ JIRA
+ http://issues.apache.org/jira/browse/LOGGING
+
+
+ 2001
+
+ scm:svn:http://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1
+ scm:svn:https://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1
+ http://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1
+
+
+
+
+
+ ci
+
+
+ apache.snapshots
+ Apache Development Snapshot Repository
+ ${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository
+
+
+ apache.snapshots
+ Apache Development Snapshot Repository
+ ${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository
+
+
+
+
+ release
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+
+ single
+
+ package
+
+
+
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+ 2.3
+
+
+ ${deploy.altRepository}
+ true
+
+
+
+
+
+
+
+
+
+ junit
+ junit
+ 3.8.1
+ test
+
+
+ log4j
+ log4j
+ 1.2.12
+ true
+
+
+ logkit
+ logkit
+ 1.0.1
+ true
+
+
+ avalon-framework
+ avalon-framework
+ 4.1.3
+ true
+
+
+ javax.servlet
+ servlet-api
+ 2.3
+ provided
+ true
+
+
+
+
+
+
+
+ org.codehaus.mojo
+ clirr-maven-plugin
+ 2.1.1
+
+
+ org.codehaus.mojo
+ jdepend-maven-plugin
+ 2.0-beta-1
+
+
+
+
+
+
+ apache.website
+ ${commons.deployment.protocol}://people.apache.org/www/commons.apache.org/logging/
+
+
+
+
+ 1.2
+ 1.1
+
+
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core/pom.xml b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core/pom.xml
new file mode 100644
index 00000000000..265d0bf3679
--- /dev/null
+++ b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/META-INF/maven/org.apache.htrace/htrace-core/pom.xml
@@ -0,0 +1,70 @@
+
+
+
+ 4.0.0
+
+ htrace-core
+ jar
+
+
+ htrace
+ org.apache.htrace
+ 4.0.0-incubating
+ ..
+
+
+ htrace-core
+ http://incubator.apache.org/projects/htrace.html
+
+
+ UTF-8
+
+
+
+
+
+ junit
+ junit
+ test
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+
+
+
+ commons-logging
+ commons-logging
+
+
+
+
+
+ dist
+
+
+
+
+ maven-assembly-plugin
+
+ true
+
+
+
+
+
+
+
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/commons/logging/LogSource.class b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/commons/logging/LogSource.class
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/core/TraceScope.class b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/core/TraceScope.class
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/annotation/SimpleObjectIdResolver.class b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/annotation/SimpleObjectIdResolver.class
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/core/JsonParser.class b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/core/JsonParser.class
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/databind/SerializationFeature.class b/tests/packagedcode/data/maven_misc/uberjars/htrace-core-4.0.0-incubating/org/apache/htrace/fasterxml/jackson/databind/SerializationFeature.class
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/tests/packagedcode/test_maven.py b/tests/packagedcode/test_maven.py
index b01572b6534..821acccba48 100644
--- a/tests/packagedcode/test_maven.py
+++ b/tests/packagedcode/test_maven.py
@@ -215,6 +215,13 @@ def test_package_with_extracted_jars_and_metainf_poms_is_detected_correctly(self
run_scan_click(['--package', '--processes', '-1', test_dir, '--json', result_file])
check_json_scan(expected_file, result_file, remove_uuid=True, regen=REGEN_TEST_FIXTURES)
+ def test_uberjars_is_detected_and_resource_assigned_correctly(self):
+ test_dir = self.get_test_loc('maven_misc/uberjars/htrace-core-4.0.0-incubating')
+ result_file = self.get_temp_file('json')
+ expected_file = self.get_test_loc('maven_misc/uberjars/htrace-core-4.0.0-incubating-expected.json')
+ run_scan_click(['--package', '--license', '--processes', '-1', test_dir, '--json', result_file])
+ check_json_scan(expected_file, result_file, remove_uuid=True, regen=REGEN_TEST_FIXTURES)
+
def test_package_dependency_not_missing(self):
test_file = self.get_test_loc('maven2/log4j/log4j-pom.xml')
self.check_parse_to_package(test_file, regen=REGEN_TEST_FIXTURES)