Control contents of generated pom.xml #3022
Replies: 3 comments 1 reply
-
Ok guess I can use skipPomGeneration as noted here: #1573 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
With
It's an improvement but still will break once we update the tycho version. According to the documentation in https://tycho.eclipseprojects.io/doc/3.0.0/tycho-packaging-plugin/update-consumer-pom-mojo.html#tycho-packaging-update-consumer-pom it should be possible to tweak this pom using flatten-maven-plugin. |
Beta Was this translation helpful? Give feedback.
-
Ok so the resulting generated pom.xml can be tweaked with the flatten-maven-plugin but its important to bind the flatten goal to the correct lifecycle phase (prepare-package). |
Beta Was this translation helpful? Give feedback.
-
We're using tycho 4.0.3 with pomless build for our rcp apps. Now we're facing an issue regarding the generated pom.xml files which end up in the artifacts generated by tycho (in
META-INF\maven\groupId\artifactId\pom.xml
. With tycho 2.6 the contents looked like this:After updating to tycho 4.0.3 the content now looks like this:
In this example
com.company.app.application.splash
is a fragment bundle with the hostcom.company.app.application
. Now in case we create a bugfix for the host bundle and updating its version to 1.0.1 this is also reflected in the generated pom of the fragment resulting inThis is problematic for us since we're using a binary comparison of the generated bundles which is failing just because of the changed generated pom.xml. Is there any option to control the contents of the generated pom.xml especially suppressing certain contents? Note that we are not using tycho baseline compare and also don't want to. Our approach has served us well so far but now breaks due to the behavior change in tycho. Also if the minimum version of the required host bundle is not changed in the fragment why does tycho still enforce the bugfix version?
Beta Was this translation helpful? Give feedback.
All reactions