Add explicit ignorePublishedComponents configuration to published modules#179
Conversation
Co-authored-by: RomanIakovlev <2363458+RomanIakovlev@users.noreply.github.com>
|
@copilot Last time I've tried to publish the project, I've got the following errors: You have made changes to the first two components, as far as I can tell. What about the third one? |
The parent POM (timeshape-parent) already has All three published components now have the setting:
If the deployment is still failing with "already exists" errors after these changes, there may be an issue with how the plugin applies this setting during the deploy phase. The configuration structure looks correct based on the plugin documentation. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Explicitly configure
ignorePublishedComponents=trueon thecentral-publishing-maven-pluginfor all modules published to Maven Central.Changes
ignorePublishedComponents=trueignorePublishedComponents=trueThe parent POM already sets this property, but explicit module-level configuration ensures the setting is independent of inheritance and clearly documented where it matters.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
repository.sonatype.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/timeshape/timeshape org.codehaus.plexus.classworlds.launcher.Launcher help:describe -Dplugin=org.sonatype.central:central-publishing-maven-plugin:0.8.0 -Ddetail(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.