You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##### `baseline and build artifacts have same version but different contents`
34
+
35
+
An error like this:
36
+
37
+
```
38
+
Error: Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:4.0.12:p2-metadata (baselinereplace-p2-metadata) on project org.eclipse.cdt.ui: baseline and build artifacts have same version but different contents
39
+
Error: no-classifier: different
40
+
Error: org/eclipse/cdt/internal/ui/ImageCombo.class: different
41
+
```
42
+
43
+
may be caused because a dependency has changed API in a way that the same CDT source compiles to different binary.
44
+
To diagnose such a problem you can compare the disassembled class files to see what changed:
45
+
46
+
1. Run the check_code_cleanliness locally using docker (see above for command line)
47
+
2. extract the class from the baseline jar (e.g. `core/org.eclipse.cdt.ui/target/baseline/org.eclipse.cdt.ui-9.0.0.202502172234.jar`)
48
+
3. Using javap, disassemble the baseline and compiled class file. e.g:
5. With the above information you can track down what may have changed. e.g. See https://github.com/eclipse-cdt/cdt/pull/1159#issuecomment-2858751463 for the results of this worked example.
62
+
31
63
### Profiles
32
64
33
65
There are a number of profiles (-P to mvn) to control the behaviour of the build.
0 commit comments