|
54 | 54 | <public.xar.repo.uri>https://exist-db.org/exist/apps/public-repo</public.xar.repo.uri> |
55 | 55 |
|
56 | 56 | <!-- NOTE(AR): this is used for generating forms in the xml-maven-plugin below --> |
57 | | - <saxon.version>9.9.1-8</saxon.version> |
| 57 | + <saxon.version>12.9</saxon.version> |
| 58 | + |
| 59 | + <xspec.version>3.1.3</xspec.version> |
58 | 60 |
|
59 | 61 | <!-- used in the EXPath Package Descriptor --> |
60 | 62 | <package-title>${project.name}</package-title> |
|
99 | 101 | <excludes> |
100 | 102 | <exclude>modules/git-sync.xql</exclude> |
101 | 103 | <exclude>services/git-commit.xql</exclude> |
| 104 | + |
| 105 | + <!-- NOTE(AR) This is temporary to allow us to fix up the xsl:import URIs |
| 106 | + using some XSLT from the xml-maven-plugin below. |
| 107 | + For example: xsl:import in Elemental |
| 108 | + does not yet correctly resolve: |
| 109 | + <xsl:import href="markdown-to-tei.xslt"/> |
| 110 | + relative to the importing stylesheet. |
| 111 | + See: https://github.com/evolvedbinary/elemental/issues/169 |
| 112 | + --> |
| 113 | + <exclude>services/manuforma-form-to-tei.xslt</exclude> |
| 114 | + <exclude>services/tei-to-manuforma-form.xslt</exclude> |
| 115 | + |
102 | 116 | </excludes> |
103 | 117 | <targetPath>xar-resources</targetPath> |
104 | 118 | </resource> |
|
130 | 144 | </pluginManagement> |
131 | 145 |
|
132 | 146 | <plugins> |
| 147 | + <plugin> |
| 148 | + <groupId>org.apache.maven.plugins</groupId> |
| 149 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 150 | + <version>3.6.2</version> |
| 151 | + <executions> |
| 152 | + <execution> |
| 153 | + <id>enforce-maven-version</id> |
| 154 | + <goals> |
| 155 | + <goal>enforce</goal> |
| 156 | + </goals> |
| 157 | + <configuration> |
| 158 | + <rules> |
| 159 | + <requireJavaVersion> |
| 160 | + <version>[11,)</version> |
| 161 | + </requireJavaVersion> |
| 162 | + <requireMavenVersion> |
| 163 | + <version>[3.9.0,)</version> |
| 164 | + </requireMavenVersion> |
| 165 | + </rules> |
| 166 | + <fail>true</fail> |
| 167 | + </configuration> |
| 168 | + </execution> |
| 169 | + </executions> |
| 170 | + </plugin> |
133 | 171 | <plugin> |
134 | 172 | <groupId>com.code54.mojo</groupId> |
135 | 173 | <artifactId>buildversion-plugin</artifactId> |
|
209 | 247 | </parameters> |
210 | 248 | <stylesheet>src/main/formGenerator/generateXForm.xsl</stylesheet> |
211 | 249 | </transformationSet> |
| 250 | + |
| 251 | + <transformationSet> |
| 252 | + <dir>src/main/xar-resources/services</dir> |
| 253 | + <includes> |
| 254 | + <include>manuforma-form-to-tei.xslt</include> |
| 255 | + <include>tei-to-manuforma-form.xslt</include> |
| 256 | + </includes> |
| 257 | + <parameters> |
| 258 | + <parameter> |
| 259 | + <name>db-collection-uri</name> |
| 260 | + <value>xmldb:exist:///db/apps/manuForma/services</value> |
| 261 | + </parameter> |
| 262 | + </parameters> |
| 263 | + <stylesheet>src/main/xslt/fix-xslt-imports-for-edb.xslt</stylesheet> |
| 264 | + <outputDir>${project.build.directory}/generated-xar-resources/services</outputDir> |
| 265 | + </transformationSet> |
212 | 266 | </transformationSets> |
213 | 267 | </configuration> |
214 | 268 | </execution> |
215 | 269 | </executions> |
216 | 270 | </plugin> |
| 271 | + <plugin> |
| 272 | + <groupId>io.xspec.maven</groupId> |
| 273 | + <artifactId>xspec-maven-plugin</artifactId> |
| 274 | + <version>${xspec.version}</version> |
| 275 | + <executions> |
| 276 | + <execution> |
| 277 | + <id>services-xspec-tests</id> |
| 278 | + <phase>test</phase> |
| 279 | + <goals> |
| 280 | + <goal>run-xspec</goal> |
| 281 | + </goals> |
| 282 | + <configuration> |
| 283 | + <testDir>src/test/xar-resources</testDir> |
| 284 | + </configuration> |
| 285 | + </execution> |
| 286 | + </executions> |
| 287 | + <dependencies> |
| 288 | + <dependency> |
| 289 | + <groupId>io.xspec</groupId> |
| 290 | + <artifactId>xspec</artifactId> |
| 291 | + <version>${xspec.version}</version> |
| 292 | + </dependency> |
| 293 | + <dependency> |
| 294 | + <groupId>net.sf.saxon</groupId> |
| 295 | + <artifactId>Saxon-HE</artifactId> |
| 296 | + <version>${saxon.version}</version> |
| 297 | + </dependency> |
| 298 | + </dependencies> |
| 299 | + </plugin> |
217 | 300 | <plugin> |
218 | 301 | <groupId>ro.kuberam.maven.plugins</groupId> |
219 | 302 | <artifactId>kuberam-expath-plugin</artifactId> |
|
0 commit comments