flatten-maven-plugin icon indicating copy to clipboard operation
flatten-maven-plugin copied to clipboard

New flattenmode 'flat'

Open alexsuter opened this issue 5 years ago • 3 comments

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.

alexsuter avatar Nov 05 '19 07:11 alexsuter

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?

hohwille avatar Nov 12 '19 13:11 hohwille

As stated in the javadoc for resolveCiFiendliesOnly

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

This means for me e.g.:

  • parent pom
  • child pom

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?

alexsuter avatar Nov 12 '19 16:11 alexsuter

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

lasselindqvist avatar Feb 02 '21 20:02 lasselindqvist