@@ -354,21 +354,26 @@ The website is integrated with the Apache HBase Maven build system using the `fr
354354
355355When you run the Maven build, it automatically:
356356
357- 1 . ** Installs Node.js v22.20.0 and npm 10.5.0** (if not already available)
357+ 1 . ** Cleans previous build artifacts** (when using ` mvn clean ` )
358+ - Removes ` build/ ` directory
359+ - Removes ` node_modules/ ` directory
360+ - Ensures a fresh build environment
361+
362+ 2 . ** Installs Node.js v22.20.0 and npm 11.6.2** (if not already available)
358363 - Installed to ` target/ ` directory
359364 - Does not affect your system Node/npm installation
360365
361- 2 . ** Runs ` npm install ` ** to install all dependencies
366+ 3 . ** Runs ` npm install ` ** to install all dependencies
362367 - Reads from ` package.json `
363368 - Installs to ` node_modules/ `
364369
365- 3 . ** Runs ` npm run ci ` ** which executes:
370+ 4 . ** Runs ` npm run ci ` ** which executes:
366371 - ` npm run lint ` - ESLint code quality checks
367372 - ` npm run typecheck ` - TypeScript type checking
368373 - ` npm run test:run ` - Vitest unit tests
369374 - ` npm run build ` - Production build
370375
371- 4 . ** Build Output** : Generated files are in ` build/ ` directory
376+ 5 . ** Build Output** : Generated files are in ` build/ ` directory
372377
373378#### Maven Commands
374379
@@ -470,8 +475,22 @@ Fix any errors and try the Maven build again.
470475
471476** Clean Everything:**
472477
473- To completely reset the build environment:
478+ To completely reset the build environment, use Maven's clean phase which automatically removes ` build/ ` and ` node_modules/ ` :
479+
480+ ``` bash
481+ cd hbase-website
482+ mvn clean install
483+ ```
484+
485+ This will:
486+ - Remove ` build/ ` directory
487+ - Remove ` node_modules/ ` directory
488+ - Remove ` target/ ` directory
489+ - Reinstall Node.js and npm
490+ - Install all dependencies fresh
491+ - Run the full build pipeline
474492
493+ For a manual clean (if needed):
475494``` bash
476495cd hbase-website
477496rm -rf node_modules/ build/ target/ .react-router/
0 commit comments