Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] how to avoid "The main artifact has been replaced with the baseline version"?

Hi,

First, there is no guarantee that p2 will use the version you just installed when resolving artifacts. There are other more important things taken into account for dependency resolution than whether the artifact is local or its qualifier. So if you want to make sure you're consuming the right bundle you just built, you should probably force Tycho target platform to resolve explicitly to the version you just built.

Then the tycho.baseline.replace property is supposed to work, there are automated tests for it and so on. So if it does not, it can be that the property is ignored (for example because the baselineReplace argument is set in the pom.xml directly without leaving the opportunity to override it from CLI) - I'd check that first. Or it can be a bug, so you should report it.

HTH

Back to the top