Skip to content

Commit ed58280

Browse files
committed
Include relocation POMs into publishing
1 parent f10125b commit ed58280

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

relocation/annotation-processor/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
<artifactId>hibernate-validator-annotation-processor</artifactId>
1818
<name>Hibernate Validator Annotation Processor - Relocation Artifact</name>
1919

20+
<properties>
21+
<!-- This is a publicly distributed module that should be published: -->
22+
<deploy.skip>false</deploy.skip>
23+
</properties>
24+
2025
<distributionManagement>
2126
<relocation>
2227
<groupId>org.hibernate.validator</groupId>

relocation/cdi/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
<artifactId>hibernate-validator-cdi</artifactId>
1818
<name>Hibernate Validator CDI Portable Extension - Relocation Artifact</name>
1919

20+
<properties>
21+
<!-- This is a publicly distributed module that should be published: -->
22+
<deploy.skip>false</deploy.skip>
23+
</properties>
24+
2025
<distributionManagement>
2126
<relocation>
2227
<groupId>org.hibernate.validator</groupId>

relocation/engine/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
<artifactId>hibernate-validator</artifactId>
1818
<name>Hibernate Validator Engine - Relocation Artifact</name>
1919

20+
<properties>
21+
<!-- This is a publicly distributed module that should be published: -->
22+
<deploy.skip>false</deploy.skip>
23+
</properties>
24+
2025
<distributionManagement>
2126
<relocation>
2227
<groupId>org.hibernate.validator</groupId>

relocation/pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,32 @@
2323
<module>cdi</module>
2424
<module>engine</module>
2525
</modules>
26+
27+
<build>
28+
<pluginManagement>
29+
<plugins>
30+
<plugin>
31+
<groupId>org.codehaus.mojo</groupId>
32+
<artifactId>flatten-maven-plugin</artifactId>
33+
<configuration>
34+
<!-- Keep dependency management -->
35+
<flattenMode>bom</flattenMode>
36+
<pomElements>
37+
<!-- But not properties, they are not useful in a bom -->
38+
<properties>remove</properties>
39+
<repositories>remove</repositories>
40+
<!-- and keep what we actually care about with relocation: -->
41+
<distributionManagement>keep</distributionManagement>
42+
</pomElements>
43+
</configuration>
44+
</plugin>
45+
</plugins>
46+
</pluginManagement>
47+
<plugins>
48+
<plugin>
49+
<groupId>org.codehaus.mojo</groupId>
50+
<artifactId>flatten-maven-plugin</artifactId>
51+
</plugin>
52+
</plugins>
53+
</build>
2654
</project>

0 commit comments

Comments
 (0)