open-component-model / ocm

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

Maven/access2 #731

Closed hilmarf closed 5 months ago

hilmarf commented 6 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
      # (optional) classifier
      classifier: ''
      # (optional) extension
      extension: jar

Then 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 6 months ago

Mend Scan Summary: :x:

Repository: open-component-model/ocm

VIOLATION DESCRIPTION NUMBER OF VIOLATIONS
HIGH/CRITICAL SECURITY VULNERABILITIES 1
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 6 months ago

Integration Tests for 6f25eb46491ce56596be1be731f0918dd01e1e6e run with result: Success ✅!

ocmbot[bot] commented 6 months ago

Integration Tests for 2fbf6fd61aa28d82807b6745bfbabed2c57e5668 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

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

ocmbot[bot] commented 5 months ago

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

ocmbot[bot] commented 5 months ago

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

ocmbot[bot] commented 5 months ago

Integration Tests for 5ffd6d1a144fb617c4773bf4908fa3337afd0d87 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for bcf07413333b284483888c4c5e17cb19934eacc9 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for bcf07413333b284483888c4c5e17cb19934eacc9 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for bcf07413333b284483888c4c5e17cb19934eacc9 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 09bb41cb768b2c8197c3c827817a3b5a3e3f815a run with result: Success ✅!

ocmbot[bot] commented 5 months ago

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

ocmbot[bot] commented 5 months ago

Integration Tests for 2f5b0e1311cdb0f0ff4b4fceafad9f9d104d0b3d run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 2d1f9346cb30d1565b2efd1ed845e3ba65326c36 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 2d1f9346cb30d1565b2efd1ed845e3ba65326c36 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 2d1f9346cb30d1565b2efd1ed845e3ba65326c36 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 2d1f9346cb30d1565b2efd1ed845e3ba65326c36 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 2d1f9346cb30d1565b2efd1ed845e3ba65326c36 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 2d1f9346cb30d1565b2efd1ed845e3ba65326c36 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 4473dacca406e4c84c0ac5e6e14393c659384afc run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 4473dacca406e4c84c0ac5e6e14393c659384afc run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for e05a5a083e96085114b24d03925f614683d9e8cc run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 850b7850b15b78031d4d3b24d658db4e8b1408f8 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 7889729f27c719c06d661e03272c339ff50a8d19 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 7889729f27c719c06d661e03272c339ff50a8d19 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 7889729f27c719c06d661e03272c339ff50a8d19 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 7889729f27c719c06d661e03272c339ff50a8d19 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 7889729f27c719c06d661e03272c339ff50a8d19 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for ccbbef572bb7a702397414f642c5a8dfa282d501 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for ccbbef572bb7a702397414f642c5a8dfa282d501 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for ccbbef572bb7a702397414f642c5a8dfa282d501 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for ccbbef572bb7a702397414f642c5a8dfa282d501 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for ccbbef572bb7a702397414f642c5a8dfa282d501 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 9a9be0b6025fc266a5aa4dc732273fb53c4ec469 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 93c6bad8977344484280c9afa607bb07edb68ab2 run with result: Success ✅!

ocmbot[bot] commented 5 months ago

Integration Tests for 93c6bad8977344484280c9afa607bb07edb68ab2 run with result: Success ✅!