maven/maven-core
Christoph Läubrich aac4d9a5bb MNG-8072 - add ConsumerPomFile methods
Currently there is some vague definition of a "build pom" versus a
"consumer pom":

    https://maven.apache.org/studies/consumer-pom/
    https://cwiki.apache.org/confluence/display/MAVEN/Build+vs+Consumer+POM

there are also some plugins around to work with this e.g.

    https://tycho.eclipseprojects.io/doc/latest/tycho-packaging-plugin/update-consumer-pom-mojo.html
    https://www.mojohaus.org/flatten-maven-plugin/plugin-info.html

but there are some issues:

    Maven makes some assumptions about its "file", e.g setting the file
changes the basedir
    Even though there is a setPomFile method that do not change the
basedir e.g. a parent ref by default would be broken
    once we change the file, there is a mismatch between the pom on disk
and the model
    it is not possible for a plugin to know the original file and the
consumer file, e.g. if I want to deploy the original file e.g. with
classifier "pom-build"
    because of this usually "consumer pom plugins" generate the the new
pom to a new file in the project root, where it actually not belongs to
and leaves the file even after mvn clean if no special actions are
taken.

This enhance the MavenProject with one more method set/getConsumerPom
that fills this gap, then plugins working on the consumer pom can set
the file there and where it then is used by other plugins.
2024-03-10 09:24:02 +01:00
..
src MNG-8072 - add ConsumerPomFile methods 2024-03-10 09:24:02 +01:00
lifecycle-executor.txt [MNG-6146] Several small stylistic and spelling improvements to code and documentation 2017-02-03 10:12:28 +01:00
plugin-manager.txt [MNG-6146] Several small stylistic and spelling improvements to code and documentation 2017-02-03 10:12:28 +01:00
pom.xml [maven-release-plugin] prepare for next development iteration 2023-11-28 11:01:11 +01:00