nddipiazza opened a new pull request, #2481:
URL: https://github.com/apache/tika/pull/2481
## Description
This PR adds development mode support for tika-grpc, enabling rapid plugin
development without building plugin ZIPs.
## Changes
- **Added dev profile to tika-grpc/pom.xml**:
- Sets `tika.plugin.dev.mode=true` system property to enable PF4J
development mode
- Includes all plugin modules as dependencies to make their classes
available at runtime
- Accepts configurable config file path via `-Dconfig.file` parameter
- **Created run-dev.sh convenience script**:
- Easy launching of tika-grpc in development mode
- Supports custom config file as argument
- **Renamed test-config.json to test-dev-config.json**:
- For clarity that it's meant for development mode
## Usage
```bash
# Build first
mvn clean install -DskipTests
# Then run in dev mode
cd tika-grpc
./run-dev.sh # Uses test-dev-config.json
./run-dev.sh my-custom-config.json # Uses custom config
```
## Benefits
- Plugins load from `target/classes` directories instead of requiring ZIP
packaging
- Faster development cycle - no need to rebuild plugin ZIPs
- All plugin dependencies available on classpath via exec plugin
- Works with existing TikaPluginManager development mode support
## Testing
Tested with all 13 plugins configured in test-dev-config.json. Server starts
successfully on port 50052 with plugins loaded and functional.
Fixes: TIKA-4587
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]