gnodet opened a new issue, #13515:
URL: https://github.com/apache/maven/issues/13515

   **Parent:** #13499 | **Related:** PR #13094
   
   ## Problem
   
   PR #13094 introduces `org.apache.maven.api.spi.WorkspaceReader` with 
`findArtifact()`
   and `findVersions()`. This covers the base `WorkspaceReader` contract, but 
the v3
   `MavenWorkspaceReader` interface also provides `findModel(Artifact)` — which 
has no
   equivalent in the new SPI.
   
   ## Who needs this
   
   - **Tycho**: `TychoWorkspaceReader` generates synthetic POMs for P2 
artifacts that have
     no Maven pom.xml. Without `findModel()`, the workspace reader can serve 
artifact files
     but not their models, breaking Tycho's ability to present P2/OSGi bundles 
as Maven
     dependencies.
   
   ## What's needed
   
   Add a `findModel()` method (or equivalent model-provision mechanism) to the 
v4
   `WorkspaceReader` SPI for extensions that resolve non-Maven artifacts 
requiring
   synthetic model generation.
   
   ```java
   default Optional<Path> findModel(Artifact artifact) {
       return Optional.empty();
   }
   ```
   
   <!-- AI-Agent-Disclosure -->
   > 🤖 Drafted with Claude Code (Claude Opus 4.6, interactive mode). Reviewed 
and confirmed by @gnodet before submission.


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