Git Product home page Git Product logo

codeartifact-maven-extension's People

Contributors

jgangemi avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

tonistaht

codeartifact-maven-extension's Issues

Repository URL fails to parse when CodeArtifact domain contains a '-'

Great extension! We'd love to make use of this, but unfortunately we get an error when Maven attempts to access the repository.

Our CodeArtifact domain has the structure foo-bar and the URL, as returned by aws codeartifact get-repository-endpoint, has the structure https://foo-bar-000123456789.d.codeartifact....

Defining a repository with that URL then using this extension results in the following error:

[ERROR] 2 validation errors detected: Value 'bar' at 'domainOwner' failed to satisfy constraint: Member must 
have length greater than or equal to 12; Value 'bar' at 'domainOwner' failed to satisfy constraint: Member 
must satisfy regular expression pattern: [0-9]{12} (Service: Codeartifact, Status Code: 400, Request ID: ...)

I believe it is splitting the URL on the - and assuming the second element is always the domain owner.

How do I get this working?

I've followed the instructions in the README, but I can't make this work.

I have an .mvn/extensions.xml file with a

<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
  <extension>
     <groupId>io.dangernoodle</groupId>
     <artifactId>codeartifact-maven-extension</artifactId>
     <version>0.2.3</version>
  </extension>
</extensions>

I have extensions enabled in my pom.xml

        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-bundle-plugin</artifactId>
                    <extensions>true</extensions>
                    <configuration></configuration>
                </plugin>

My server is defined as:

       <server>
            <id>MY-SERVER-NAME</id>
            <username>AWS_ACCESS_KEY_ID</username>
            <password>AWS_SECRET_ACCESS_KEY</password>
        </server>

My repo is defined as:

            <repositories>
                <repository>
                    <id>MY-SERVER-NAME</id>
                    <url>https://MYDOMAIN-MYDOMAINOWNER.d.codeartifact.us-east-1.amazonaws.com/maven/MYREPO/</url>

When I run mvn, I get
software.amazon.awssdk.services.codeartifact.model.CodeartifactException: The security token included in the request is invalid. (Service: Codeartifact, Status Code: 403, Request ID: ab5e5859-c1f9-4165-9f45-ab6741779e51)

What am I missing here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.