Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
emack463 opened this issue Dec 28, 2023 · 1 comment

Comments

@emack463
Copy link

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
Copy link
Collaborator

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants