://bernd.eckenfels.net
Von: Eric Lilja
Gesendet: Tuesday, February 4, 2020 7:35:01 PM
An: Maven Developers List
Betreff: Re: Prevent maven-release-plugin from reformatting attributes on
project element
Sure! Today I did a release in a single module project
An: Maven Developers List
Betreff: Re: Prevent maven-release-plugin from reformatting attributes on
project element
Ah, yes, I do remember the changed indentation of the tag element in the
past, put I don't recall seeing that lately. Have to check tomorrow when I
get to the office.
Bernd: Which
russ
> Bernd
> --
> http://bernd.eckenfels.net
>
> Von: Eric Lilja
> Gesendet: Tuesday, February 4, 2020 3:21:51 PM
> An: Maven Developers List
> Betreff: Prevent maven-release-plugin from reformatting attributes on
> project element
&
://bernd.eckenfels.net
Von: Eric Lilja
Gesendet: Tuesday, February 4, 2020 3:21:51 PM
An: Maven Developers List
Betreff: Prevent maven-release-plugin from reformatting attributes on project
element
Hi, we noticed that maven-release-plugin changes formatting of the project
The transformation is triggered by one of the subclasses of
AbstractRewritePomsPhase[1]
In 2.5.3[2] the plugin was relying on JDOM with quite some hacks to make it
work. This is now extracted so it is possible to switch to a different parser
(JDom is not an active project anymore).
Here's where
Sure! Today I did a release in a single module project. The unwanted diff
was that the release plugin changed
http://maven.apache.org/POM/4.0.0; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
can you provide an example of reformatting, please?
in every case I saw until now, there is no reformatting, so I suppose you're
in a case I did not expect
Regards,
Hervé
Le mardi 4 février 2020, 16:24:54 CET Eric Lilja a écrit :
> > I see.
> > I am not aware of any such feature.
> > If you
>
> I see.
> I am not aware of any such feature.
> If you have some tool that pretty prints XML according to your
> comporate rules you could invoke it in completionGoals [1]
>
That could be a workaround for now. Thanks!
- Eric L
>
> Enrico
>
> [1]
>
Il giorno mar 4 feb 2020 alle ore 16:17 Eric Lilja
ha scritto:
>
> I didn't say the generated xml was invalid. It's a nuisance for us since
> the formatting conflicts with our corporate settings, so we are seeing
> unwelcome noise git diffs after releases.
I see.
I am not aware of any such
I didn't say the generated xml was invalid. It's a nuisance for us since
the formatting conflicts with our corporate settings, so we are seeing
unwelcome noise git diffs after releases.
- Eric L
On Tue, Feb 4, 2020 at 4:08 PM Enrico Olivelli wrote:
> Eric
> What's your use case?
> As far as it
Eric
What's your use case?
As far as it creates a valid XML with the same meaning this should not be a
problem
Enrico
Il Mar 4 Feb 2020, 15:22 Eric Lilja ha scritto:
> Hi, we noticed that maven-release-plugin changes formatting of the project
> element, it writes the element as a single line,
Hi, we noticed that maven-release-plugin changes formatting of the project
element, it writes the element as a single line, removing existing line
breaks on attributes. Is it possible to make it preserve original
formatting?
We're using maven-release-plugin version 3.0.0-M1
- Eric L
12 matches
Mail list logo