This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch 3959-static.weaving
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/3959-static.weaving by this
push:
new 0c1ddab3a66 CAUSEWAY-3959: switch to file based profile activation
0c1ddab3a66 is described below
commit 0c1ddab3a6604a0454803077614c5b7555d6d52d
Author: andi-huber <[email protected]>
AuthorDate: Wed Feb 11 12:03:56 2026 +0100
CAUSEWAY-3959: switch to file based profile activation
as property based activation simply does not work if configured in child
POM via <property><name>jpa-weave</name></property>
---
extensions/security/audittrail/persistence-jpa/pom.xml | 1 -
extensions/security/secman/persistence-jpa/.jpa-weave | 1 +
extensions/security/secman/persistence-jpa/pom.xml | 1 -
parent/pom.xml | 16 ++++++++++------
4 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/extensions/security/audittrail/persistence-jpa/pom.xml
b/extensions/security/audittrail/persistence-jpa/pom.xml
index 618fad61c25..15eda500d84 100644
--- a/extensions/security/audittrail/persistence-jpa/pom.xml
+++ b/extensions/security/audittrail/persistence-jpa/pom.xml
@@ -33,7 +33,6 @@
<properties>
<jar-plugin.automaticModuleName>org.apache.causeway.extensions.audittrail.persistence.jpa</jar-plugin.automaticModuleName>
<git-plugin.propertiesDir>org/apache/causeway/extensions/audittrail/persistence-jpa</git-plugin.propertiesDir>
- <jpa-weave>true</jpa-weave>
</properties>
<dependencies>
diff --git a/extensions/security/secman/persistence-jpa/.jpa-weave
b/extensions/security/secman/persistence-jpa/.jpa-weave
new file mode 100644
index 00000000000..82414b0d6be
--- /dev/null
+++ b/extensions/security/secman/persistence-jpa/.jpa-weave
@@ -0,0 +1 @@
+# presence of this file enables static weaving via profile activation rules in
the parent POM
\ No newline at end of file
diff --git a/extensions/security/secman/persistence-jpa/pom.xml
b/extensions/security/secman/persistence-jpa/pom.xml
index 7413bede2c5..4226c915bcb 100644
--- a/extensions/security/secman/persistence-jpa/pom.xml
+++ b/extensions/security/secman/persistence-jpa/pom.xml
@@ -34,7 +34,6 @@
<properties>
<jar-plugin.automaticModuleName>org.apache.causeway.extensions.secman.persistence.jpa</jar-plugin.automaticModuleName>
<git-plugin.propertiesDir>org/apache/causeway/extensions/secman/persistence-jpa</git-plugin.propertiesDir>
- <jpa-weave>true</jpa-weave>
</properties>
<dependencies>
diff --git a/parent/pom.xml b/parent/pom.xml
index c428fd894aa..66366dd7993 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -456,7 +456,8 @@
<exclude>**/MANIFEST.MF</exclude>
<exclude>**/META-INF/services/**</exclude>
-
<exclude>**/src/main/resources/supplemental-models.xml</exclude>
+ <exclude>
+
**/src/main/resources/supplemental-models.xml</exclude>
<exclude>**/webpack.config.js</exclude>
<exclude>**/webpack.generated.js</exclude>
@@ -480,7 +481,8 @@
<exclude>**/*.drawio.svg</exclude>
<exclude>**/META-INF/spring.factories</exclude>
-
<exclude>**/incubator/clients/kroviz/package.json.d/project.info</exclude>
+ <exclude>
+
**/incubator/clients/kroviz/package.json.d/project.info</exclude>
<exclude>**/supplemental-ui/**</exclude>
<exclude>**/_nav.adoc</exclude>
<exclude>**/module-nav.adoc</exclude>
@@ -1063,10 +1065,12 @@
<profile>
<id>jpa-weave</id>
<activation>
- <property>
- <name>jpa-weave</name>
- <value>true</value>
- </property>
+ <file>
+ <exists>${basedir}/.jpa-weave</exists>
+ </file>
+ <!-- does not work
+ <property><name>jpa-weave</name></property>
+ -->
</activation>
<build>
<plugins>