mojohaus / flatten-maven-plugin

Flatten Maven Plugin
https://www.mojohaus.org/flatten-maven-plugin/
Apache License 2.0
205 stars 84 forks source link

New flattenmode 'flat' #112

Closed alexsuter closed 2 years ago

alexsuter commented 4 years ago

I'm asking for a new flattenmode e.g. 'flat'. I want exactly the same as for 'resolveCiFriendliesOnly', but pressed flat, i.e. the resolution of all parent poms. So I don't have to deploy parent poms.

hohwille commented 4 years ago

By default this is exactly what flatten-maven-plugins does. I did not implement the resolveCiFriendliesOnly, but can you explain what you tried and what did not work? Why cant you just use the regular default flatten mode?

alexsuter commented 4 years ago

As stated in the javadoc for resolveCiFiendliesOnly

Only resolves variables revision, sha1 and changelist. Keeps everything else.

This means for me e.g.:

When I use resolveCiFiendliesOnly in my child pom, I still have the <parent /> in my child pom, which means I still need to deploy the parent pom. I need everything, but I like to have it just flat. Don't remove anything. Maybe we can call a 'flatt-full-pom' :).

Do you understand me?

lasselindqvist commented 3 years ago

Hi. Can you provide an example input and output poms?