Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are currently two checkstyle rules in which run with the build which can cause this, so you will need to determine which is relevant by reading the full error message text in the terminalmessages.

Firstly, tabs are disallowed completely in all modules but users.  You can fix up your source code by using the Source > Format command in Eclipse, or you may prefer to use a command line Unix tool like expand to fix these issues.  

An error message like this will show if you have tabs in one of your files.

No Format
[ERROR] src/main/java/org/hps/job/JobManager.java:[29,1] (whitespace) FileTabCharacter: File contains tab characters (this is the first instance).
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (default) on project hps-job: You have 1 Checkstyle violation. -> [Help 1]

You can fix up your source code by using the Source > Format command in Eclipse, or you may prefer to use a command line Unix tool like expand to fix these issues.

Secondly, you are disallowed from committing Java files that have unused imports.

Error messages such as the following will print to the console if unused imports exist in one of your files.

No Format
[ERROR] src/main/java/org/hps/job/JobManager.java:[14,8] (imports) UnusedImports: Unused import - org.apache.bcel.Constants.
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (default) on project hps-job: You have 1 Checkstyle violation. -> [Help 1]

Unused Secondly, you are disallowed from committing Java files that have unused imports.  Unused imports will be underlined with a yellow line in Eclipse and can be removed by using Source > Organize Imports which will strip them out.

...