Skip to content

Add Maven FOLIO repository configuration and improve dependency parser#12

Merged
okolawole-ebsco merged 1 commit intomasterfrom
maven-library
Oct 31, 2025
Merged

Add Maven FOLIO repository configuration and improve dependency parser#12
okolawole-ebsco merged 1 commit intomasterfrom
maven-library

Conversation

@okolawole-ebsco
Copy link
Collaborator

Purpose: Enable Maven-based FOLIO module evaluation in devcontainer with proper FOLIO repository access. This resolves HTTP blocking errors when Maven attempts to download FOLIO SNAPSHOT dependencies and improves dependency parsing for multi-module Maven projects.

Approach:

  • Created devcontainer-specific Maven settings.xml with FOLIO repository configuration (https://repository.folio.org/repository/maven-folio/ and https://repository.folio.org/repository/snapshots/)
  • Configured HTTP blocker mirror with exclusions for FOLIO repositories (folio-nexus, folio-snapshots) and commonly accessed snapshot repositories (apache.snapshots, index-data-nexus)
  • Updated devcontainer postCreateCommand to automatically copy Maven settings to container's ~/.m2/settings.xml
  • Implemented XML parsing (using xml2js) to detect Maven packaging type from pom.xml
  • Enhanced Maven goal selection logic to use license:aggregate-add-third-party for parent POMs (packaging=pom) and license:add-third-party for regular modules
  • Added integration test infrastructure with test files for mod-search, mod-source-record-storage, and ui-data-import
  • Added npm scripts test:unit and test:integration for targeted test execution
  • Improved error handling and logging for Maven dependency parsing operations

… parser

Purpose: Enable Maven-based FOLIO module evaluation in devcontainer with proper FOLIO repository access and enhance Maven dependency parsing to handle multi-module projects correctly.

Approach:
- Added Maven settings.xml with FOLIO repository configuration and HTTP blocker exclusions for devcontainer
- Configured devcontainer to copy Maven settings during postCreateCommand
- Implemented proper XML parsing for Maven packaging type detection
- Enhanced Maven goal selection to use aggregate-add-third-party for POM packaging
- Added integration test infrastructure with dedicated npm scripts
- Improved error handling and logging for Maven operations
@okolawole-ebsco okolawole-ebsco merged commit 5ea5c8a into master Oct 31, 2025
3 checks passed
@okolawole-ebsco okolawole-ebsco deleted the maven-library branch October 31, 2025 20:35
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.

1 participant