Skip to content

Commit 79aefad

Browse files
committed
feat(build): deploy to maven.codelibs.org
Maven Central introduced an upload limit that makes it impractical to keep releasing the Fess plugin artifacts there, so the plugins move to maven.codelibs.org over scp. distributionManagement cannot be inherited from fess-parent for this: it is inherited unconditionally and a POM cannot exempt itself from what it declares, so declaring it there also redirected the SNAPSHOT deployments of fess-parent, fess, fess-crawler, fess-crawler-playwright and fess-suggest, which stay on Maven Central. Each plugin declares the CodeLibs repositories itself instead. The scp transport comes from the wagon-ssh build extension inherited from fess-parent, and is used through maven-deploy-plugin.
1 parent 73cd227 commit 79aefad

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,24 @@
4949
</plugin>
5050
</plugins>
5151
</build>
52+
<!-- Fess plugins are distributed through maven.codelibs.org instead of Maven Central.
53+
This cannot be inherited from fess-parent: distributionManagement is inherited
54+
unconditionally, so declaring it there would also redirect the SNAPSHOT
55+
deployments of fess-parent, fess, fess-crawler, fess-crawler-playwright and
56+
fess-suggest, which stay on Maven Central. The scpexe transport comes from
57+
the wagon-ssh-external build extension inherited from fess-parent. -->
58+
<distributionManagement>
59+
<repository>
60+
<id>codelibs-repo</id>
61+
<name>CodeLibs Repository</name>
62+
<url>scpexe://maven.codelibs.org/var/www/maven/release</url>
63+
</repository>
64+
<snapshotRepository>
65+
<id>codelibs-snapshots</id>
66+
<name>CodeLibs Snapshot Repository</name>
67+
<url>scpexe://maven.codelibs.org/var/www/maven/snapshot</url>
68+
</snapshotRepository>
69+
</distributionManagement>
5270
<repositories>
5371
<repository>
5472
<id>snapshots.central.sonatype.com</id>

0 commit comments

Comments
 (0)