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
bnd-baseline-maven-plugin should not use local maven repo for baseline #2248
Comments
I'm facing a similar problem: the plugin is pulling snapshots from (remote) repositories for baselining instead of using latest release and there seems to be no way preventing this behavior but configuring base with a fixed release version in the POM. |
FWIW, the
|
This looks to be a pair of issues - one is a bad fix for #1726 and the other is that we don't filter snapshot versions returned by repositories that can provide both snapshots and releases. I've tried to put a fix together in timothyjward/bnd@2aca047 - although this doesn't build cleanly at the moment. I'm about to be away with no laptop for 2 weeks, so if someone wants to pick it up then be my guest. |
In the process of finishing Tim's fix. |
Is there any workaround available for version 3.5.0 without completely disabling the baselining? |
@kwin yes, see Re: release:prepare & bnd-baseline-maven-plugin
|
Suppose I have a project which is currently using (Maven) version 1.0.0-SNAPSHOT. I build it with
mvn install
which copies the artifacts into the local Maven repository under ~/.m2/repository.Now I want to release version 1.0.0, without any other change. I use the
mvn versions:set
command to replace 1.0.0-SNAPSHOT with 1.0.0 and rebuild withmvn install
. Baselining now fails because the plugin has compared against the snapshot version in the local repository:Why is the baseline plugin using snapshots in the local repository as the baseline, rather than the latest release?
The text was updated successfully, but these errors were encountered: