Hi there, have you seen our work at mojo[haus] with flatten-maven-plugin? http://www.mojohaus.org/flatten-maven-plugin/examples/example-central-version.html http://www.mojohaus.org/flatten-maven-plugin/examples/example-multiple-versions.html
This is already used by various projects for productive deployment. https://github.com/oasp/oasp4j/ https://github.com/m-m-m/mmm/ (clone this one recursive as it uses git modules). So with this setup it is possible to have a lot of specific build-logic and internal stuff in your pom.xml using variables for version and a lot of other things. But we deploy "flattened" POMs to the maven repo that contain the required stuff for consumers of the artefact with all variables resolved and parent removed. I argued to separate build/developers view from consumer view in maven on this mailing list already in 2009 - see e.g. https://issues.apache.org/jira/browse/MNG-4161 Unfortunately I got little to no attention those days... However, I am happy to see new movement in this area. I was kind of frustrated and fortunately Robert Scholte supported me on mojo to get the missing links of flatten-maven-plugin to work with maven core's internal tricks. If this would be done natively by maven 4.x and we can introduce a new pom format that maven 4.x can read but for deployment still model version 4.0.0 is installed and deployed this would be just perfect. Maybe then we could also revisit my suggestions to allow omitting the version in dependency and parent tags for being DRY (Dont Repeat Yourself). Thanks Jörg Am 19.06.2014 um 15:40 schrieb Jason van Zyl: > We had the hangout yesterday. I pushed the initial bit of information about > evolving the POM format here in a blog post here: > > http://localhost:4000/2014/06/19/hangout-pom-format.html > > And created a page in the Wiki to start capturing the information: > > https://cwiki.apache.org/confluence/display/MAVEN/Evolving+the+POM+Format > > Thanks, > > Jason > > ---------------------------------------------------------- > Jason van Zyl > Founder, Apache Maven > http://twitter.com/jvanzyl > http://twitter.com/takari_io > --------------------------------------------------------- > > the course of true love never did run smooth ... > > -- Shakespeare > > > > > > > > > >
smime.p7s
Description: S/MIME Cryptographic Signature
