Thanks to visit codestin.com
Credit goes to github.com

Skip to content

java-archive catalog doesn't capture a name #111

@alfredodeza

Description

@alfredodeza

This output doesn't look right:

go run main.go dir:///tmp/generator-jhipster/generators/server/
 ✔ Cataloged image      [3 packages]
NAME         	VERSION	TYPE
             	0.5.6  	java-archive
             	       	java-archive
maven-wrapper	0.5.6  	UnknownPackage

The package in question is https://github.com/jhipster/generator-jhipster

The JSON output has more data that might be useful:

  "artifacts": [
    {
      "name": "",
      "version": "",
      "type": "java-archive",
      "cataloger": "",
      "sources": [
        {
          "foundBy": "java-cataloger",
          "effects": []
        }
      ],
      "metadata": {
        "Manifest": {
          "Name": "",
          "ManifestVersion": "1.0",
          "SpecTitle": "",
          "SpecVersion": "",
          "SpecVendor": "",
          "ImplTitle": "Gradle Wrapper",
          "ImplVersion": "",
          "ImplVendor": "",
          "Extra": null
        },
        "PomProperties": null,
        "Parent": null
      }
    },
    {
      "name": "",
      "version": "0.5.6",
      "type": "java-archive",
      "cataloger": "",
      "sources": [
        {
          "foundBy": "java-cataloger",
          "effects": []
        }
      ],
      "metadata": {
        "Manifest": {
          "Name": "",
          "ManifestVersion": "1.0",
          "SpecTitle": "maven-wrapper",
          "SpecVersion": "0.5.6",
          "SpecVendor": "",
          "ImplTitle": "maven-wrapper",
          "ImplVersion": "0.5.6",
          "ImplVendor": "",
          "Extra": {
            "Archiver-Version": "Provisio Archiver",
            "Build-Jdk": "1.8.0_232",
            "Built-By": "manfred",
            "Created-By": "Takari Inc.",
            "Implementation-Vendor-Id": "io.takari"
          }
        },
        "PomProperties": null,
        "Parent": null
      }
    },
    {
      "name": "maven-wrapper",
      "version": "0.5.6",
      "type": "UnknownPackage",
      "cataloger": "",
      "sources": [
        {
          "foundBy": "java-cataloger",
          "effects": []
        }
      ],
      "metadata": {
        "Manifest": null,
        "PomProperties": {
          "Path": "META-INF/maven/io.takari/maven-wrapper/pom.properties",
          "Name": "",
          "GroupID": "io.takari",
          "ArtifactID": "maven-wrapper",
          "Version": "0.5.6",
          "Extra": null
        },
        "Parent": {
          "Name": "",
          "Version": "0.5.6",
          "FoundBy": "",
          "Source": null,
          "Licenses": null,
          "Language": 1,
          "Type": 10,
          "Metadata": {
            "Manifest": {
              "Name": "",
              "ManifestVersion": "1.0",
              "SpecTitle": "maven-wrapper",
              "SpecVersion": "0.5.6",
              "SpecVendor": "",
              "ImplTitle": "maven-wrapper",
              "ImplVersion": "0.5.6",
              "ImplVendor": "",
              "Extra": {
                "Archiver-Version": "Provisio Archiver",
                "Build-Jdk": "1.8.0_232",
                "Built-By": "manfred",
                "Created-By": "Takari Inc.",
                "Implementation-Vendor-Id": "io.takari"
              }
            },
            "PomProperties": null,
            "Parent": null
          }
        }
      }
    }
  ],
  "image": {
    "layers": null,
    "size": 0,
    "digest": "",
    "mediaType": "",
    "tags": null
  },
  "Source": "/tmp/generator-jhipster/generators/server/"
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions