Hello,
I have made customisations to Traccar 4.1, added a protocol and a decoder from Traccar 4.4. I want to repackage it as .jar and replace current .jar on my server with this however when I run mvn package
I get many CheckStyle violations, see below. I decompiled my server's .jar and made my customisations and then downloaded traccar 4.1 source code and replaced the org directory with my updated org from my decompiled .jar.
[ERROR] src/org/traccar/reports/Summary.java:[65] (regexp) RegexpSingleline: Line has trailing spaces.
[ERROR] src/org/traccar/reports/Summary.java:[66] (sizes) LineLength: Line is longer than 120 characters (found 194).
[ERROR] src/org/traccar/reports/Summary.java:[75] (regexp) RegexpSingleline: Line has trailing spaces.
[ERROR] src/org/traccar/reports/Summary.java:[76] (sizes) LineLength: Line is longer than 120 characters (found 217).
[ERROR] src/org/traccar/reports/Summary.java:[83,53] (whitespace) WhitespaceAfter: 'typecast' is not followed by whitespace.
[ERROR] src/org/traccar/reports/Summary.java:[84,48] (whitespace) WhitespaceAfter: 'typecast' is not followed by whitespace.
[ERROR] src/org/traccar/reports/Summary.java:[85,46] (whitespace) WhitespaceAfter: 'typecast' is not followed by whitespace.
[ERROR] src/org/traccar/reports/Summary.java:[86] (sizes) LineLength: Line is longer than 120 characters (found 127).
[ERROR] src/org/traccar/reports/Summary.java:[88,9] (blocks) RightCurly: '}' at column 9 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally).
[ERROR] src/org/traccar/reports/Summary.java:[92,13] (blocks) RightCurly: '}' at column 13 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else or try/catch/finally).
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.335 s
[INFO] Finished at: 2020-03-12T23:49:53Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (checkstyle) on project traccar: You have 9510 Checkstyle violations. -> [Help 1]
Just disable the Checkstyle in the build configuration.
Hello,
I have made customisations to Traccar 4.1, added a protocol and a decoder from Traccar 4.4. I want to repackage it as .jar and replace current .jar on my server with this however when I run
mvn package
I get many CheckStyle violations, see below. I decompiled my server's .jar and made my customisations and then downloaded traccar 4.1 source code and replaced the org directory with my updated org from my decompiled .jar.