elharo opened a new pull request, #309:
URL: https://github.com/apache/maven-source-plugin/pull/309

   Fixes #261
   
   ## Problem
   
   All 24 integration tests fail on Maven 4 due to `NoTransporterException: 
Unsupported transport protocol file`. Maven 4's default resolver does not 
include a file:// protocol transporter, so the `@localRepositoryUrl@` (resolved 
to a `file://` URL) in `src/it/settings.xml` causes all ITs to fail at 
dependency resolution.
   
   The `reproducible` IT also had an additional failure: its `assert 
deployDir.exists()` assertion fails because `deploy:deploy` uses an old 
hardcoded `maven-deploy-plugin:2.8.2` which may not be compatible with Maven 4.
   
   ## Fix
   
   1. **`pom.xml`**: Added 
`<mavenOpts>-Dmaven.resolver.transport=wagon</mavenOpts>` to the 
`maven-invoker-plugin` configuration in the `run-its` profile. This forces 
Maven to use the Wagon-based transport, which natively supports `file://` URLs.
   
   2. **`src/it/reproducible/pom.xml`**: Removed the hardcoded 
`<version>2.8.2</version>` from `maven-deploy-plugin`, letting Maven's default 
deploy plugin be used instead.


-- 
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]

Reply via email to