Git Product home page Git Product logo

Comments (3)

ctubbsii avatar ctubbsii commented on September 24, 2024

If you want to format pom.xml, try https://github.com/Ekryd/sortpom
For files in .settings/, those are created by Eclipse for itself, and you shouldn't be editing anything in there.

If you want to format xml in general, this plugin tries to support basic XML formatting using https://github.com/revelc/xml-formatter.

However, personally, I would just use xmllint for a lot of things.

from formatter-maven-plugin.

dpalic avatar dpalic commented on September 24, 2024

Hi @ctubbsii

thank you for your message

I am refering mostly to your xml-formatter

Sadly there is no documentation how to format specific xml files. Are there examples to format xml files?

And I am aware of .settings is eclipse based, but sadly is that stupid that if chaging the settings the xml files get resorted and re-lineending changed based on OS. And want to get rid of this behavior to that reviews can be done easier if settings are properly done by juniors

For xmllint I did not find any resonable maven plugin. Do you know one?

from formatter-maven-plugin.

ctubbsii avatar ctubbsii commented on September 24, 2024

Hi @ctubbsii

thank you for your message

I am refering mostly to your xml-formatter

Sadly there is no documentation how to format specific xml files. Are there examples to format xml files?

Not good documentation currently. I'd probably consider that feature experimental.

And I am aware of .settings is eclipse based, but sadly is that stupid that if chaging the settings the xml files get resorted and re-lineending changed based on OS. And want to get rid of this behavior to that reviews can be done easier if settings are properly done by juniors

You probably should just be ignoring the .settings directory in your .gitignore file, and don't check it in to your repository. Then, it doesn't matter if it's different per user.

For xmllint I did not find any resonable maven plugin. Do you know one?

You can just use exec-maven-plugin to execute xmllint directly, but I suppose that would be OS-dependent.

from formatter-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.