open-component-model / ocm

Open Component Model (Software Bill of Delivery Toolset)
https://ocm.software
Apache License 2.0
32 stars 23 forks source link

Maven/access #721

Closed hilmarf closed 4 months ago

hilmarf commented 5 months ago

Description

Let's assume you have the following component-constructor.yaml:

name: acme.org/foo/bar
version: 0.0.1
provider:
  name: acme.org
resources:
  - name: java-sap-vcap-services
    type: mvnArtifact # new TYPE!
    version: 0.0.1
    access:
      type: mvn # new TYPE!
      repository: https://repo1.maven.org/maven2
      groupId: com.sap.cloud.environment.servicebinding
      artifactId: java-sap-vcap-services
      version: 0.10.4

The you can now create a component version:

ocm add componentversions --create -F ./ctf component-constructor.yaml

And you can transfer it to any other Maven repository:

ocm transfer cv -V ./ctf ./target --uploader 'ocm/mvnArtifact="Url":"https://my.maven.repository.acme.org/artifactory/ocm-mvn-test"}'

You might need to configure proper credentials in your ~/.ocmconfig:

type: generic.config.ocm.software/v1
configurations:
  - type: credentials.config.ocm.software
    consumers:
      - identity:
          type: Repository.maven.apache.org
          hostname: int.repositories.cloud.sap
          path: artifactory/ocm-mvn-test
        credentials:
          - type: Credentials
            properties:
              username: 'my-user'
              password: 'top-secret'

What type of PR is this? (check all applicable)

Related Tickets & Documents

Screenshots

Added tests?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

Checklist:

github-actions[bot] commented 5 months ago

Mend Scan Summary: :x:

Repository: open-component-model/ocm

VIOLATION DESCRIPTION NUMBER OF VIOLATIONS
HIGH/CRITICAL SECURITY VULNERABILITIES 0
MAJOR UPDATES AVAILABLE 0
LICENSE REQUIRES REVIEW 4
HIGH RISK LICENSES 9
RESTRICTIED LICENSE FOR ON-PREMISE DELIVERY 0

Detailed Logs: mend-scan-> Generate Report Mend UI

ocmbot[bot] commented 5 months ago

Integration Tests for 4a026dee1b4622715e4ca089e60f4d966731695b run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 4a026dee1b4622715e4ca089e60f4d966731695b run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 4a026dee1b4622715e4ca089e60f4d966731695b run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 4a026dee1b4622715e4ca089e60f4d966731695b run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for 4a026dee1b4622715e4ca089e60f4d966731695b run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for 4a026dee1b4622715e4ca089e60f4d966731695b run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for 4a026dee1b4622715e4ca089e60f4d966731695b run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for f44a710da58918ab30b3771ccd0114d4ee9f29b9 run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for f44a710da58918ab30b3771ccd0114d4ee9f29b9 run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for db0f39fef213da43eb2ceeee63de38ef74403158 run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for 0fc98aa0759d6e8aaf63586daeb89b6dbcf7478d run with result: Success ✅!

ocmbot[bot] commented 4 months ago

Integration Tests for 3b6f0f78f04c12b836ddc24d97c985b1c086e999 run with result: Success ✅!

hilmarf commented 4 months ago

obsolete - continuing with #731 instead