-
Notifications
You must be signed in to change notification settings - Fork 4
Fix javadoc generation blocking snapshot deployment #331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. 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:
|
|
@copilot i suspect you will need to make similar changes for the non snapshot release which is in one of the other workflows. |
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Added a javadoc validation step to maven-publish.yml with the same 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:
|
|
|
@copilot please update the pr title and description to match the changes in the code. |
Updated understanding: The PR actually only fixes the maven-publish-snapshot workflow since the javadoc validation step added to maven-publish.yml was removed in commits 0edd9e7 and af7f86d. Suggested PR title: "Fix javadoc generation blocking snapshot deployment" Suggested PR description updates:
The actual changes in this PR are:
Note: I cannot directly update the PR title and description through the tools available to me, so you'll need to update them manually or let me know if you'd like me to make any code changes. |



Description
The maven-publish-snapshot workflow fails when running
mvn javadoc:javadocbecause Maven attempts to generate javadoc for sample modules whose artifacts are never installed to the local repository, causing dependency resolution failures.Resolves #330
Changes
.github/workflows/maven-publish-snapshot.ymlxapi-model,xapi-client,xapi-model-spring-boot-startersamples/pom.xml<skip>true</skip>to maven-javadoc-plugin configurationWhy the
-plswitch is necessaryWhile the
<skip>true</skip>configuration prevents javadoc generation for samples, Maven still processes all reactor modules and attempts to resolve their dependencies before executing plugins. Since sample modules depend on each other (e.g., get-statement → core) and have their install phase skipped, their artifacts aren't available in the local repository, causing dependency resolution failures. The-plswitch prevents Maven from processing sample modules entirely.Checklist:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.