@@ -70,20 +70,46 @@ mvn org.fugerit.java:fj-doc-maven-plugin:add \
70
70
71
71
## Goal : verify
72
72
73
- add Venus Doc Configuration to an existing project
73
+ verify the templates in a FreeMarker configuration (folder), note: it can be used on any Apache FreeMarker configuration, not only Fugerit Venus Doc.
74
74
75
75
* Quickstart* :
76
76
77
+ ### Verify existing FreeMarker configuration
78
+
77
79
``` shell
78
80
mvn org.fugerit.java:fj-doc-maven-plugin:verify -DtemplateBasePath=./src/test/resources/fj_doc_test/template-fail
79
81
```
80
82
81
- verify the templates in a FreeMarker configuration (folder), note: it can be used on any Apache FreeMarker configuration, not only Fugerit Venus Doc.
83
+ ### Verify FreeMarker configuration at maven build time
84
+
85
+ ``` xml
86
+ <plugin >
87
+ <groupId >org.fugerit.java</groupId >
88
+ <artifactId >fj-doc-maven-plugin</artifactId >
89
+ <version >${fj-doc-version}</version >
90
+ <executions >
91
+ <execution >
92
+ <id >daogen</id >
93
+ <phase >compile</phase >
94
+ <goals >
95
+ <goal >verify</goal >
96
+ </goals >
97
+ </execution >
98
+ </executions >
99
+ <configuration >
100
+ <templateBasePath >${project.basedir}/src/main/resources/fugerit-blank/template</templateBasePath >
101
+ <generateReport >true</generateReport >
102
+ <failOnErrors >true</failOnErrors >
103
+ <reportOutputFolder >${project.build.directory}/freemarker-syntax-verify-report</reportOutputFolder >
104
+ </configuration >
105
+ </plugin >
106
+ ```
82
107
83
108
| parameter | required | default | description |
84
109
| ---------------------| ----------| ---------------| --------------------------------------------------------------------------------------------------------------------|
85
110
| templateBasePath | true | | Path to base folder containing FreeMarker templates |
86
111
| freemarkerVersion | false | latest stable | FreeMarker configuration ( i.e. 2.3.33) |
87
112
| templateFilePattern | false | | Filter on templates to be checked, regex on filename, i.e. ".{0,}[ .] ftl" |
88
113
| failOnErrors | true | true | If set to true the build will fail when template syntax errors will be found, otherwise errors will be only logged |
89
-
114
+ | generateReport | false | false | If set to true a report will be generated (and property 'reportOutputFolder' will be olso required). |
115
+ | reportOutputFolder | false | | Output folder for the generated report. |
0 commit comments