Skip to content

759 provide a maven pom cache for local maven repository #762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

fabapp2
Copy link
Contributor

@fabapp2 fabapp2 commented Apr 25, 2023

The experiment surfaced problems with the attempt to use local Maven repository dir as cache store for pom files downloaded by OpenRewrite's MavenPomDownloader.

The cache API used by MavenPomDownloader accepts only Pom instances.
The Pom class represents the model and contains additional information (e.g. repository.password) which can't be seriaiized to a pom file adhering to the xsd.

The PR brings an initial implementation of a PomSerializer but the above problem currently does not allow for a stable implementation.

@fabapp2 fabapp2 linked an issue Apr 25, 2023 that may be closed by this pull request
…l Maven repo

- Provides an initial (and incomplete) PomSerializer to serialize Pom model instances to a pom test file
- Problem: The Pom contains information that can't be kept in a pom file and thus it can't always be de-/serialized which prevents using local Maven repo as cache store
@fabapp2 fabapp2 force-pushed the 759-provide-a-maven-pom-cache-for-local-maven-repository branch from 4fa87d8 to a5958a8 Compare April 25, 2023 15:13
@fabapp2
Copy link
Contributor Author

fabapp2 commented Apr 25, 2023

Closing for now, see description

@fabapp2 fabapp2 closed this Apr 25, 2023
@fabapp2 fabapp2 deleted the 759-provide-a-maven-pom-cache-for-local-maven-repository branch September 13, 2023 22:21
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.

Provide a Maven pom cache for local Maven repository
1 participant