Skip to content

[7.x.x] Fix Patch packageservice XAR to report existdb-compatible version - #233

Open
Laurettta wants to merge 1 commit into
develop-7.x.xfrom
7.x.x/hotfix/patch-packageservice-compatible-version
Open

[7.x.x] Fix Patch packageservice XAR to report existdb-compatible version#233
Laurettta wants to merge 1 commit into
develop-7.x.xfrom
7.x.x/hotfix/patch-packageservice-compatible-version

Conversation

@Laurettta

@Laurettta Laurettta commented Jul 22, 2026

Copy link
Copy Markdown

Ensures that only compatible versions of eXist-db Apps are downloaded during the build, and improves on how these Apps are patched for Elemental.

Closes #225
Closes eXist-db/eXide#822
Closes eXist-db/expath-crypto-module#111

@cla-bot cla-bot Bot added the cla-signed label Jul 22, 2026
@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@Laurettta
Laurettta force-pushed the 7.x.x/hotfix/patch-packageservice-compatible-version branch from f0a0fbd to a41e6e6 Compare July 23, 2026 09:15
@Laurettta
Laurettta force-pushed the 7.x.x/hotfix/patch-packageservice-compatible-version branch from c442c35 to b605ad8 Compare August 24, 2026 13:08
@Laurettta Laurettta changed the title [bugfix] Patch packageservice XAR to report existdb-compatible version [bugfix] Patch packageservice XAR version and migrate to compress-uncompress-maven-plugin Aug 24, 2026
@Laurettta Laurettta changed the title [bugfix] Patch packageservice XAR version and migrate to compress-uncompress-maven-plugin [bugfix] Patch packageservice XAR to report existdb-compatible version Aug 24, 2026
@Laurettta
Laurettta force-pushed the 7.x.x/hotfix/patch-packageservice-compatible-version branch from 98957ba to 6fc6baf Compare August 24, 2026 16:32
@Laurettta Laurettta changed the title [bugfix] Patch packageservice XAR to report existdb-compatible version [bugfix] Fix Patch packageservice XAR to report existdb-compatible version Aug 24, 2026
@Laurettta
Laurettta force-pushed the 7.x.x/hotfix/patch-packageservice-compatible-version branch from 6fc6baf to ba4874c Compare August 24, 2026 23:39
@adamretter
adamretter self-requested a review August 25, 2026 09:10
@adamretter adamretter added bug Something isn't working enhancement New feature or request labels Aug 25, 2026
@adamretter adamretter added this to the elemental-7.7.1 milestone Aug 25, 2026
@adamretter adamretter self-assigned this Aug 25, 2026
<execution>
<id>unzip-dashboard</id>
<phase>process-resources</phase>
<id>resolve-dashboard-xar-path</id>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the resolve-dashboard-xar-path execution, as setting the dashboard-xar-path property is already done by the expath-package-repository-plugin above.

<replace file="${expath.pkg.dir}-dashboard-staging/doc.html" token="title&gt;existdb-dashboard&lt;" value="title&gt;Dashboard :: Elemental&lt;" />
<replace file="${expath.pkg.dir}-dashboard-staging/guest.html" token="title&gt;existdb-dashboard&lt;" value="title&gt;Dashboard :: Elemental&lt;" />
<replace file="${expath.pkg.dir}-dashboard-staging/index.html" token="title&gt;existdb-dashboard&lt;" value="title&gt;Dashboard :: Elemental&lt;" />
<replace file="${expath.pkg.dir}-dashboard-staging/existdb-dashboard.html" token="existdb-web.svg" value="elemental-web.svg" />

@adamretter adamretter Aug 25, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to come up with a way to replace the last part of the patch-dashboard-branding execution, i.e. these lines:

<replace file="${expath.pkg.dir}-dashboard-staging/existdb-dashboard.html" token="existdb-web.svg" value="elemental-web.svg" />
<loadfile property="elemental-web-svg" srcFile="${project.build.outputDirectory}/elemental-web.svg" />
<replaceregexp file="${expath.pkg.dir}-dashboard-staging/bower_components/existdb-launcher/existdb-branding.html" match="&lt;svg.+&lt;/svg&gt;" replace="${elemental-web-svg}" />

with an a different way of doing this that does not use the antrun plugin. One way would be to create further patch files to do this. You might want to leave this to last, think about how to do it, and then please discuss it with me before making the changes.

</execution>
<execution>
<id>zip-patched-monex</id>
<id>delete-original-xars</id>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the delete-original-xars execution. We don't need to do that.

</executions>
</plugin>

<!-- <plugin>-->

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this commented out code please

<execution>
<id>patch-dashboard</id>
<phase>process-resources</phase>
<goals><goal>apply</goal></goals>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be multiple lines

<execution>
<id>patch-monex</id>
<phase>process-resources</phase>
<goals><goal>apply</goal></goals>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be multiple lines

<artifactId>patch-maven-plugin</artifactId>
<version>1.1.0</version>
<configuration>
<targetDirectory>${expath.pkg.dir}-packageservice-staging</targetDirectory>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the package service config into the package service execution please

@@ -0,0 +1,11 @@
--- /Users/lauretta/Documents/evolvedbinary/elemental/exist-distribution/target/expath-pkgs-dashboard-staging/admin.xql 2026-07-29 08:48:15

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only work on your computer. Please change this to use paths that are relevant to the working directory of where the uncompressed app is staged. So in this patch you would change:

  • /Users/lauretta/Documents/evolvedbinary/elemental/exist-distribution/target/expath-pkgs-dashboard-staging/admin.xql -> admin.xql

Please do the equivalent in each one of your patch files.

</executions>
</plugin>

<plugin>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you remove the set properties parts of the antrun plugin, this can also be removed because the properties, for example: the dashboard-xar-path property is already set by the expath-package-repository-plugin above.

…compatible version and migrate XAR patching to compress-uncompress-maven-plugin

Closes #225
@Laurettta
Laurettta force-pushed the 7.x.x/hotfix/patch-packageservice-compatible-version branch from ba4874c to 43111ab Compare August 25, 2026 14:58
@Laurettta Laurettta changed the title [bugfix] Fix Patch packageservice XAR to report existdb-compatible version [7.x.x] Fix Patch packageservice XAR to report existdb-compatible version Aug 25, 2026
@Laurettta
Laurettta requested a review from adamretter August 25, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cla-signed enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants