Skip to content

Convert dsbulk to use Central Portal#525

Merged
absurdfarce merged 4 commits into1.xfrom
issue524
Mar 3, 2026
Merged

Convert dsbulk to use Central Portal#525
absurdfarce merged 4 commits into1.xfrom
issue524

Conversation

@absurdfarce
Copy link
Collaborator

Entirely based off the native-protocol equivalent

@absurdfarce
Copy link
Collaborator Author

With the simple conversion mentioned above I'm getting a build failure based on dsbulk-docs:

$ mvn clean deploy -P release
...
[INFO] --- javadoc:3.2.0:jar (attach-javadocs) @ dsbulk-docs ---                                                                                                                                                                              
[INFO] Skipping javadoc generation                                                                                                                                                                                                            
[INFO]                                                                                                                                                                                                                                        
[INFO] --- jacoco:0.8.5:prepare-agent-integration (integration-tests-coverage) @ dsbulk-docs ---                                                                                                                                              
[INFO] argLine set to -javaagent:/home/mersault/work/maven/repo/org/jacoco/org.jacoco.agent/0.8.5/org.jacoco.agent-0.8.5-runtime.jar=destfile=/home/mersault/work/git/dsbulk/docs/target/jacoco-it.exec,excludes=**/generated/**              
[INFO]                                                                                                                                                                                                                                        
[INFO] --- failsafe:2.22.2:integration-test (short-tests) @ dsbulk-docs ---                                                                                                                                                                   
[INFO] No tests to run.                                                                                                                                                                                                                       
[INFO]                                                                                                                                                                                                                                        
[INFO] --- jacoco:0.8.5:report (report-unit-tests-coverage) @ dsbulk-docs ---                                                                                                                                                                 
[INFO] Skipping JaCoCo execution due to missing execution data file.                                                                                                                                                                          
[INFO]                                                                                                                                                                                                                                        
[INFO] --- jacoco:0.8.5:report-integration (report-integration-tests-coverage) @ dsbulk-docs ---                                                                                                                                              
[INFO] Skipping JaCoCo execution due to missing execution data file.                                                                                                                                                                          
[INFO]                                                                                                                                                                                                                                        
[INFO] --- failsafe:2.22.2:verify (short-tests) @ dsbulk-docs ---                                                                                                                                                                             
[INFO]                                                                                                                                                                                                                                        
[INFO] --- gpg:1.6:sign (sign-artifacts) @ dsbulk-docs ---                                                                                                                                                                                    
[INFO]                                                                                                                                                                                                                                        
[INFO] --- install:2.5.2:install (default-install) @ dsbulk-docs ---                                                                                                                                                                          
[INFO] Skipping artifact installation  
[INFO]                                                                                                                                                                                                                                        
[INFO] --- central-publishing:0.7.0:publish (injected-central-publishing) @ dsbulk-docs ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DataStax Bulk Loader 1.11.1:
[INFO] 
[INFO] DataStax Bulk Loader ............................... SUCCESS [  5.281 s]
[INFO] DataStax Bulk Loader - BOM ......................... SUCCESS [  0.530 s]
[INFO] DataStax Bulk Loader - URL ......................... SUCCESS [  6.016 s]
...
[INFO] DataStax Bulk Loader - Workflow - Count ............ SUCCESS [  2.267 s]
[INFO] DataStax Bulk Loader - Runner ...................... SUCCESS [ 31.157 s]
[INFO] DataStax Bulk Loader - Docs ........................ FAILURE [  2.619 s]
[INFO] DataStax Bulk Loader - Distribution ................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:47 min
[INFO] Finished at: 2026-03-03T14:33:12-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.central:central-publishing-maven-plugin:0.7.0:publish (injected-central-publishing) on project dsbulk-docs: The packaging for this project did not assign a file to the build artifact -> [Help 1]

@absurdfarce
Copy link
Collaborator Author

Problem looks to stem from dsbulk-docs. That component isn't deployed to Maven Central and appears to consist entirely of a couple small Java apps used to generate the settings.md Markdown file and the sample config files in the "manual" directory. It's correct that this project doesn't contribute any Java code to the package to be uploaded to Central Portal; it's the output of these apps in the "manual" directory that represent their contribution.

Thing is that this output is used in two separate occasions:

  • Update of content in the manual for commit to git and display inline on the Github project pages
  • Generation of content to be included in the distribution JARs on Maven Central

So what's needed here is some way to generalize this functionality into something that can still be used in both places but doesn't present itself as a new component (which therefore introduces the expectation that it will contribute to the distribution).

Still working on it.

@absurdfarce
Copy link
Collaborator Author

Removing dsbulk-docs from the list of modules in the build resolves the issue and makes sense conceptually; dsbulk-docs isn't included in what's released to Maven Central and is intended only as a local helper for the build.

@absurdfarce absurdfarce merged commit 4cc1286 into 1.x Mar 3, 2026
1 check was pending
@absurdfarce absurdfarce deleted the issue524 branch March 3, 2026 23:17
@absurdfarce absurdfarce linked an issue Mar 3, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert dsbulk to use Central Portal

1 participant