This is an automated email from the ASF dual-hosted git repository.
veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git
The following commit(s) were added to refs/heads/master by this push:
new 64da5e599 Update enforcer-maven-plugin to 0.5.0-SNAPSHOT
64da5e599 is described below
commit 64da5e599d5cd9ed34060c7286109b0860f10f17
Author: Andreas Veithen-Knowles <[email protected]>
AuthorDate: Sun Apr 19 12:58:57 2026 +0100
Update enforcer-maven-plugin to 0.5.0-SNAPSHOT
Replace the single `enforce` goal with the new `detect-cycles` and
`enforce-layering` goals. The `enforce-layering` goal is only used in
axiom-api, which is the only module that configures layering rules.
---
axiom-api/pom.xml | 49 +++++++++++++++++++++++---------------
axiom-legacy-attachments/pom.xml | 2 +-
axiom-weaver/pom.xml | 2 +-
components/pom.xml | 2 +-
implementations/axiom-dom/pom.xml | 2 +-
implementations/axiom-impl/pom.xml | 2 +-
implementations/pom.xml | 2 +-
mixins/om-mixins/pom.xml | 2 +-
mixins/pom.xml | 2 +-
pom.xml | 2 +-
10 files changed, 39 insertions(+), 28 deletions(-)
diff --git a/axiom-api/pom.xml b/axiom-api/pom.xml
index ae0ee95f3..178ac6f8d 100644
--- a/axiom-api/pom.xml
+++ b/axiom-api/pom.xml
@@ -257,8 +257,37 @@
<artifactId>enforcer-maven-plugin</artifactId>
<executions>
<execution>
+ <id>detect-cycles</id>
<goals>
- <goal>enforce</goal>
+ <goal>detect-cycles</goal>
+ </goals>
+ <configuration>
+ <ignore>
+ <!-- o.a.a.soap should be a layer on top of
o.a.a.om -->
+ org.apache.axiom.om.OMAbstractFactory ->
org.apache.axiom.soap.SOAPFactory,
+ org.apache.axiom.om.OMMetaFactory ->
org.apache.axiom.soap.SOAPFactory,
+ org.apache.axiom.om.OMMetaFactorySPI ->
org.apache.axiom.soap.SOAPModelBuilder,
+ org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPFactory,
+ org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPMessage,
+ org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPModelBuilder,
+ org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPProcessingException,
+ org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPVersion,
+ org.apache.axiom.om.OMOutputFormat ->
org.apache.axiom.soap.SOAPVersion,
+ <!-- The public API shouldn't depend on
classes in o.a.a.om.util -->
+ org.apache.axiom.om.OMMetaFactorySPI ->
org.apache.axiom.om.util.StAXParserConfiguration,
+ org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.om.util.StAXParserConfiguration,
+ org.apache.axiom.om.OMOutputFormat ->
org.apache.axiom.om.util.StAXWriterConfiguration,
+ <!-- StAXUtils is in the wrong package (should
be o.a.a.util.stax) -->
+
org.apache.axiom.om.ds.AbstractPushOMDataSource ->
org.apache.axiom.om.util.StAXUtils,
+ org.apache.axiom.om.ds.BlobOMDataSource ->
org.apache.axiom.om.util.StAXUtils,
+ org.apache.axiom.om.ds.StringOMDataSource
-> org.apache.axiom.om.util.StAXUtils,
+ </ignore>
+ </configuration>
+ </execution>
+ <execution>
+ <id>enforce-layering</id>
+ <goals>
+ <goal>enforce-layering</goal>
</goals>
<configuration>
<layers>
@@ -298,24 +327,6 @@
</layer>
</layers>
<ignore>
- <!-- o.a.a.soap should be a layer on top of
o.a.a.om -->
- org.apache.axiom.om.OMAbstractFactory ->
org.apache.axiom.soap.SOAPFactory,
- org.apache.axiom.om.OMMetaFactory ->
org.apache.axiom.soap.SOAPFactory,
- org.apache.axiom.om.OMMetaFactorySPI ->
org.apache.axiom.soap.SOAPModelBuilder,
- org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPFactory,
- org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPMessage,
- org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPModelBuilder,
- org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPProcessingException,
- org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.soap.SOAPVersion,
- org.apache.axiom.om.OMOutputFormat ->
org.apache.axiom.soap.SOAPVersion,
- <!-- The public API shouldn't depend on
classes in o.a.a.om.util -->
- org.apache.axiom.om.OMMetaFactorySPI ->
org.apache.axiom.om.util.StAXParserConfiguration,
- org.apache.axiom.om.OMXMLBuilderFactory ->
org.apache.axiom.om.util.StAXParserConfiguration,
- org.apache.axiom.om.OMOutputFormat ->
org.apache.axiom.om.util.StAXWriterConfiguration,
- <!-- StAXUtils is in the wrong package (should
be o.a.a.util.stax) -->
-
org.apache.axiom.om.ds.AbstractPushOMDataSource ->
org.apache.axiom.om.util.StAXUtils,
- org.apache.axiom.om.ds.BlobOMDataSource ->
org.apache.axiom.om.util.StAXUtils,
- org.apache.axiom.om.ds.StringOMDataSource
-> org.apache.axiom.om.util.StAXUtils,
<!-- Incorrect layering -->
org.apache.axiom.om.util.StAXParserConfiguration ->
org.apache.axiom.util.stax.dialect.StAXDialect
</ignore>
diff --git a/axiom-legacy-attachments/pom.xml b/axiom-legacy-attachments/pom.xml
index 2c8e5e3f9..5b7db6028 100644
--- a/axiom-legacy-attachments/pom.xml
+++ b/axiom-legacy-attachments/pom.xml
@@ -121,7 +121,7 @@
<executions>
<execution>
<goals>
- <goal>enforce</goal>
+ <goal>detect-cycles</goal>
</goals>
<configuration>
<ignore>
diff --git a/axiom-weaver/pom.xml b/axiom-weaver/pom.xml
index 7003c8b54..90a3e34be 100644
--- a/axiom-weaver/pom.xml
+++ b/axiom-weaver/pom.xml
@@ -87,7 +87,7 @@
<executions>
<execution>
<goals>
- <goal>enforce</goal>
+ <goal>detect-cycles</goal>
</goals>
</execution>
</executions>
diff --git a/components/pom.xml b/components/pom.xml
index 74f7019f5..1bb25e295 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -47,7 +47,7 @@
<executions>
<execution>
<goals>
- <goal>enforce</goal>
+ <goal>detect-cycles</goal>
</goals>
</execution>
</executions>
diff --git a/implementations/axiom-dom/pom.xml
b/implementations/axiom-dom/pom.xml
index 5e4f4f028..34bca71dd 100644
--- a/implementations/axiom-dom/pom.xml
+++ b/implementations/axiom-dom/pom.xml
@@ -250,7 +250,7 @@
<executions>
<execution>
<goals>
- <goal>enforce</goal>
+ <goal>detect-cycles</goal>
</goals>
<configuration>
<ignore>
diff --git a/implementations/axiom-impl/pom.xml
b/implementations/axiom-impl/pom.xml
index 899e1e190..eb4fd1526 100644
--- a/implementations/axiom-impl/pom.xml
+++ b/implementations/axiom-impl/pom.xml
@@ -210,7 +210,7 @@
<executions>
<execution>
<goals>
- <goal>enforce</goal>
+ <goal>detect-cycles</goal>
</goals>
<configuration>
<ignore>
diff --git a/implementations/pom.xml b/implementations/pom.xml
index 593a2587f..1f073da54 100644
--- a/implementations/pom.xml
+++ b/implementations/pom.xml
@@ -55,7 +55,7 @@
<executions>
<execution>
<goals>
- <goal>enforce</goal>
+ <goal>detect-cycles</goal>
</goals>
</execution>
</executions>
diff --git a/mixins/om-mixins/pom.xml b/mixins/om-mixins/pom.xml
index 59aa7d423..70ab733e2 100644
--- a/mixins/om-mixins/pom.xml
+++ b/mixins/om-mixins/pom.xml
@@ -79,7 +79,7 @@
<executions>
<execution>
<goals>
- <goal>enforce</goal>
+ <goal>detect-cycles</goal>
</goals>
<configuration>
<ignore>
diff --git a/mixins/pom.xml b/mixins/pom.xml
index fc01eff48..ebaf8354d 100644
--- a/mixins/pom.xml
+++ b/mixins/pom.xml
@@ -46,7 +46,7 @@
<executions>
<execution>
<goals>
- <goal>enforce</goal>
+ <goal>detect-cycles</goal>
</goals>
</execution>
</executions>
diff --git a/pom.xml b/pom.xml
index 2c0bfde71..0ae57cea3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -858,7 +858,7 @@
<plugin>
<groupId>com.github.veithen.phos</groupId>
<artifactId>enforcer-maven-plugin</artifactId>
- <version>0.4.1</version>
+ <version>0.5.0-SNAPSHOT</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>