You can enable such feature going to File > Settings > Maven > Importing, there is a checkbox that says "Import Maven projects automatically".Īlso to know is, how do I download Maven dependencies?.
IntelliJ should download and add all your dependencies to the project's classpath automatically as long as your POM is compliant and all the dependencies are available.
The relevant repository section of your pom.
A repository and distributionManagement section.
A project-specific URL in the distributionManagement section.
In all cases, to publish a package, you need: The option you choose determines the settings you add to your pom.xml file. Packages from different GitLab groups or in their own namespace.
Instance-level: Use an instance-level endpoint when you want to install many.
Many different projects in the same GitLab group.
Group-level: Use a group-level endpoint when you want to install packages from.
To install Maven packages, use a project-level endpoint when you have few Maven packagesĪnd they are not in the same GitLab group.
Project-level: To publish Maven packages to a project, use a project-level endpoint.
To use the GitLab endpoint for Maven packages, choose an option: Repositories Use the GitLab endpoint for Maven packages
Supported CLI commands Maven packages in the Package Repository.
Create Maven packages with GitLab CI/CD by using Gradle.
Create Maven packages with GitLab CI/CD by using Maven.
Create Maven packages with GitLab CI/CD.
Publishing a package with the same name or version.
Use the GitLab endpoint for Maven packages.
Authenticate with a CI job token in Gradle.
Authenticate with a deploy token in Gradle.
Authenticate with a personal access token in Gradle.
Authenticate to the Package Registry with Gradle.
Authenticate with a CI job token in Maven.
Authenticate with a deploy token in Maven.
Authenticate with a personal access token in Maven.