eXist-db / generator-exist

yeoman generator for exist app boilerplates
MIT License
12 stars 4 forks source link

QOL request: Exist-db versioning question during scaffold generation process for a new project. #1111

Open emack463 opened 10 months ago

emack463 commented 10 months ago

Currently the generator doesn't appear to query for the exist-db version during the build process. In my particular case I'm using exist-db 6.0.1, and was using the latest exist-db yeoman generator. This generated an incompatible XAR that failed silently on upload, although it did generate a log error.

023-12-28 14:15:56,505 [qtp1146222092-38] ERROR (Deploy.java [installAndDeployFromDb]:241) - Package requires eXist-db version > 6.2.0. Installed version is 6.0.1 
org.expath.pkg.repo.PackageException: Package requires eXist-db version > 6.2.0. Installed version is 6.0.1
    at org.exist.repo.Deployment.checkProcessorVersion(Deployment.java:293) ~[exist-core-6.0.1.jar:6.0.1]

This appears to be largely due to:

<?xml version="1.0" encoding="UTF-8"?>
<package 
  xmlns="http://expath.org/ns/pkg" name="http://cdcs.datapipeline.ed.ac.uk/dpipe"
  abbrev="dpipe" version="1.0.0" spec="1.0">
  <title>data pipelines for transcriptions</title>
  <dependency processor="http://exist-db.org" semver-min="6.2.0"/>
  <dependency package="http://exist-db.org/html-templating" semver-min="1.0.2"/>
</package>

In the generated expath-pkg.xml.

It would be great if the generator could ask for the (minimum) version of the target exist-db platform.
duncdrum commented 10 months ago

@emack463 I like the idea. I m hoping to get some time for work on the generator soon and will try to add this feature.