Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7135

Fix Java 11 build with com.puppycrawl.tools:checkstyle:jar:8.29 dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0, 1.11.3
    • Tools and Build
    • None

    Description

      Since the upgrade of com.puppycrawl.tools:checkstyle to 8.29 (NIFI-7108), the Java 11 build on Travis is failing with:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (check-style) on project nifi: Execution check-style of goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check failed: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0 or one of its dependencies could not be resolved: Could not find artifact com.puppycrawl.tools:checkstyle:jar:8.29 in bintray (https://dl.bintray.com/groovy/maven) -> [Help 1]

      It looks like plugin dependencies are only resolved against: 

          <pluginRepositories>
              <pluginRepository>
                  <id>bintray</id>
                  <name>Groovy Bintray</name>
                  <url>https://dl.bintray.com/groovy/maven</url>
                  <releases>
                      <updatePolicy>never</updatePolicy>
                  </releases>
                  <snapshots>
                      <enabled>false</enabled>
                  </snapshots>
              </pluginRepository>
          </pluginRepositories>
      

       I suggest to add Maven repository as an additional plugin repository.

      Attachments

        Issue Links

          Activity

            People

              pvillard Pierre Villard
              pvillard Pierre Villard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m