Skip to content

Question for pom.xml validation How to disable comments formatting? #1786

Open
@paulwwisl

Description

@paulwwisl

Question for pom.xml validation How to disable comments formatting?

See also https://stackoverflow.com/questions/76954342/how-to-make-tidy-maven-plugin-and-spotless-maven-plugin-to-ignore-comments-forma

config

      <!-- mvn spotless:check by default is mapped to mvn verify (verify lifecycle phase)-->
      <plugin>
        <groupId>com.diffplug.spotless</groupId>
        <artifactId>spotless-maven-plugin</artifactId>
        <version>2.30.0</version>
        <configuration>
          <java>
            <googleJavaFormat></googleJavaFormat>
          </java>
          <pom>
            <sortPom>
              <!-- see https://github.com/diffplug/spotless/blob/main/plugin-maven/README.md#sortpom -->
            </sortPom>
          </pom>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions