-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apache Maven API doesn't use third party repositories #927
Comments
Do you have your custom repo defined in your |
The repository https://repo1.maven.org/maven is automatically added to the list of repositories to query. So far, there is no way to prevent that, but it is supposed to also to query the repositories defined in your Could you please clarify a bit more about the behavior that you get? Are you sure that the artifact is in your custom repository? |
Yes, our internal repository is listed in |
I tried to reproduce your very specific use case but without success. |
I get the following result within the IDE with your command:
When I put quotation marks around the artifact, the download does work as expected. |
I did my best to reproduce your use case by blocking If with the latest changes, the plugin cannot download the catalog on your side, I encourage you to submit a PR if you can because I don't see what I can do. |
## Motivation Some operations such as the automatic download of the Camel Debugger don't consider third-party maven repositories. Moreover, third-party maven repositories are only detected in maven projects, it should be improved to support Gradle projects too. ## Modifications: * Delegates the extraction of third-party maven repositories to `MavenArtifactRetrieverContext` to make sure that all operations take them into account * Provides a way to retrieve the list of maven repositories from Gradle project * Retrieves the list of maven repositories from Maven project using the Maven model instead of using the DOM API * Removes all DOM-related classes as they are no longer used * Moves all Gradle-related classes into a `gradle` package * Moves all Maven-related classes into a `maven` package
Alright, will try it as soon as it has been released. Thanks for your time so far. |
Can you try the new 1.1.2 release |
Camel Catalog downloader in version 1.1.0 doesn't work properly for me. I've added a third party repository to my pom.xml.
It seems that CamelService finds the repository in pom.xml, but still wants to download the catalog from repo1.maven.org.
(Maven repo is blocked in our company)
Should the API also work, if I set repo only in settings.xml?
According to the Camel Plugin logs:
Logs:
INFO - #com.github.cameltooling.idea.service.CamelService - Found third party Maven repository id: central url:https://artifactory/...
FINE - #com.github.cameltooling.idea.service.CamelMavenVersionManager - Trying to load the catalog version: 3.21.1
WARN - #com.github.cameltooling.idea.service.CamelMavenVersionManager - Could not load the catalog version 3.21.1: org.apache.camel.tooling.maven.MavenResolutionException: The following artifacts could not be resolved: org.apache.camel:camel-catalog:jar:3.21.1 (absent): Could not transfer artifact org.apache.camel:camel-catalog:jar:3.21.1 from/to central (https://repo1.maven.org/maven2)...
The text was updated successfully, but these errors were encountered: