-
Notifications
You must be signed in to change notification settings - Fork 194
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
Failed to resolve dependencies with Tycho 2.7.0 for custom repositories #697
Comments
I think you should provide a bit more context here:
|
Target.
No. We reverted this build to Tycho 2.6.0 and had to delete the content of .mvn/repository after going back to 2.6.0. |
You should at least enable advanced debugging with -X to get some better understanding. Last but not least, I can only encourage everyone try out the current tycho snapshot build as often as possible to discover such problems early, at least when we announce new releases. |
~/git/tycho/tycho-its/projects/target.mavenMulti seems to contains a IT test but does currently not work as it pointsto 2.5.0-SNAPSHOT But if I change it to 2.7.0 it still works, looks to me that is downloads part from Maven central and parts from the other repo.
Do we also have an example in which the lib is not available on Maven central? Another question, what is the policy of the tycho version for the IT projects? Update on demand to the latest Tycho version? |
You can run any IT with any version of tycho specifying
That's how it is supposed to work
'Downloading from unidata-all' in your output indicates that it is not available from central.
I generally update them whenever I touch the test to use a new feature. They get always injected the version of the current build if run inside the CI with a system option (see above.) |
@vogella any updates here? |
@vogella we are preparing a 2.7.1 bugfix release, so if you think there is an issue please let us know so this might be included. |
Sorry, cannot replicate anymore, as I do not have access anymore to an inhouse Maven repo. Closing |
I'd like to reopen this issue, as I've recently run into the same problem in our product, after testing out the 2.7.1 snapshot (after migrating from 2.6.0).
The plugin is contributed via the target platform definition and download at the beginning of the reactor build:
When building the plugin, it then tries to fetch the pom from Maven Central only:
Weirdly enough, the issue only appeared after building a release version of the dependent plugin (i.e. building the project with version 7.40.0-SNAPSHOT works). Building the dependency locally (via mvn install) also causes the project to work with both 7.40.0 and 7.40.0-SNAPSHOT. I'll have a look today whether I can come up with a working example that doesn't rely on our internal repository. |
The current workaround is to add the repositories mentioned in the target also to the pom of the maven build. I think we need to rethink and possibly fix this in 3.0.0 with #585 for 2.7.x I don't see an easy solution for this. |
….0 for custom repositories
@vogella @pzi-dsa this should soon apear in the snapshot so please verify if it solves the issue now. |
Fix #697 - Failed to resolve dependencies with Tycho 2.7.0 for custom repositories Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de> Co-authored-by: Patrick Ziegler <Patrick.Ziegler@dsa.de>
I ran our build with the latest snapshot and the problem doesn't show up anymore. |
With Tycho 2.7.0 we see errors for resolving artifacts from internal Nexus servers.
[ERROR] Failed to execute goal on project a: Could not resolve dependencies for project a: Could not find artifact b:4.20.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
It should go to the configured URL.
@HannesWell IIRC you implemented this. Does it still work for you with Tycho 2.7.0?
The text was updated successfully, but these errors were encountered: