Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15899

Errorprone profile

    XMLWordPrintable

Details

    • Task
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Orion
    • BrXM Backlog
    • Undetermined

    Description

      Per CMS-15273, this errorprone profile was added but it never worked (on Java 17 / WinOS at least) nor was used, then removed per CMS-15882.

      The idea is good though. See https://errorprone.info/ and https://github.com/google/error-prone

      In community/project/pom.xml

      <properties>
          <error-prone.version>2.18.0</error-prone.version>
      </properties>
      <profiles>
          <profile>
            <id>errorprone</id>
            <build>
              <plugins>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-compiler-plugin</artifactId>
                  <version>${maven.plugin.compiler.version}</version>
                  <configuration>
                    <encoding>UTF-8</encoding>
                    <compilerArgs>
                      <arg>-XDcompilePolicy=simple</arg>
                      <arg>-Xplugin:ErrorProne</arg>
                    </compilerArgs>
                    <annotationProcessorPaths>
                      <path>
                        <groupId>com.google.errorprone</groupId>
                        <artifactId>error_prone_core</artifactId>
                        <version>${error-prone.version}</version>
                      </path>
                      <!-- Other annotation processors go here.
      
                      If 'annotationProcessorPaths' is set, processors will no longer be
                      discovered on the regular -classpath; see also 'Using Error Prone
                      together with other annotation processors' below. -->
                    </annotationProcessorPaths>
                  </configuration>
                </plugin>
              </plugins>
            </build>
          </profile>
      </profiles>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: