Skip to content

Maven don't recognize a 3rd party dependency from GitHub Packages. #1100

@pinnguino

Description

@pinnguino

Bug description

For my job I need to create a custom Maven library, deploy it to GitHub Packages and use it as a dependency in the pom.xml in my Maven projects.
In IntelliJ IDEA works just fine.

Steps to reproduce

Steps to reproduce the behavior:

  1. Put your credentials in $HOME\.m2\settings.xml and in the maven install location (example: apache-maven\conf\settings.xml)
<servers>
    <server>
      <id>github</id>
      <username>your-github-username</username>
      <password>your-personal-access-token</password>
    </server>
</servers>
  1. Add the repository in your Maven project
    <repositories>
        <repository>
            <id>github</id>
            <url>https://maven.pkg.github.com/your-github-username/repo-library-location</url>
        </repository>
    </repositories>
  1. Add your dependency in the pom.xml in your project
        <dependency>
            <groupId>your.company</groupId>
            <artifactId>your-library-name</artifactId>
            <version>1.0.0</version>
        </dependency>
  1. Start typing stuff from the library and see that don't recognize it

Expected behavior

When you type content from your library and the autocomplete recognize it.

Environments

  • OS: Windows 11
  • VS Code version: 1.104.3
  • Extension version 0.44.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions