Мне не удается скомпилировать сгенерированный проект расширения Siddhi java, вот что я сделал:
Согласно официальной документации .
1. Я выполнил требуемый архетип maven для генерации скелета проекта
mvn archetype:generate
-DarchetypeGroupId=org.wso2.siddhi.extension.archetype
-DarchetypeArtifactId=siddhi-archetype-execution
-DgroupId=org.wso2.extension.siddhi.execution
-Dversion=1.0.0-SNAPSHOT
Название проекта: GetReferenceInformation
2. Затем я запустил maven-компиляцию в новой папке проекта расширения, сгенерированной
mvn compile
Результат:
(...)
[INFO] Starting audit...
C:\dev\siddhi-execution-rfe\component\src\main\java\org\wso2\extension\siddhi\execution\rfe\aggregate\GetReferenceInformationAggregateFunction.java:123: error: La premiere ligne doit se terminer avec un point.
C:\dev\siddhi-execution-rfe\component\src\main\java\org\wso2\extension\siddhi\execution\rfe\aggregate\GetReferenceInformationAggregateFunction.java:136: error: La premiere ligne doit se terminer avec un point.
(...)
C:\dev\perso\siddhi-execution-rfe\component\src\test\java\org\wso2\extension\siddhi\execution\rfe\aggregate\TestCaseOfGetReferenceInformationAggregateFunction.java:3: error: Commentaire javadoc manquant.
C:\dev\perso\siddhi-execution-rfe\component\src\test\java\org\wso2\extension\siddhi\execution\rfe\window\TestCaseOfGetReferenceInformationWindow.java:3: error: Commentaire javadoc manquant.
Audit done.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] siddhi execution getReferenceInformation 1.0.0-SNAPSHOT SUCCESS [ 4.462 s]
[INFO] Siddhi execution of getReferenceInformation 1.0.0-SNAPSHOT FAILURE [ 0.907 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.411 s
[INFO] Finished at: 2020-01-16T13:14:27+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (validate) on project siddhi-execution-rfe: Failed during checkstyle execution: There are 21 errors reported by Checkstyle 6.11.2 with https://raw.githubusercontent.com/wso2/code-quality-tools/master/checkstyle/checkstyle.xml ruleset. -> [Help 1]
Насколько это странно? Сгенерированный код не проходит свой собственный аудит?
Как отключить автомат c Checkstyle (из пользовательского расширения maven, я считаю)?