Skip to content

MavenRepository should explicitly set whether release and snapshots are enabled #1226

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
snicoll opened this issue Apr 16, 2021 · 1 comment
Assignees
Milestone

Comments

@snicoll
Copy link
Contributor

snicoll commented Apr 16, 2021

The default for releases.enabled and snapshots.enabled are both true (see https://stackoverflow.com/questions/61684312/in-a-maven-repository-entry-in-the-pom-are-snapshots-enabled-by-default).

Right now, our API is such that releases are enabled by default (with no way to turn that off) and snapshots are disabled by default. We could keep drifting from those defaults but we should at least make sure they're properly applied in generated poms.

@sdeleuze
Copy link
Contributor

For the record, here is what we configured in Spring Native with the goal of preventing downloads of snapshot dependencies from releases repositories and of release dependencies from snapshots repositories.

@snicoll snicoll added this to the 0.11.0 milestone Apr 20, 2021
@snicoll snicoll self-assigned this Apr 20, 2021
@wilkinsona wilkinsona changed the title MavenRepository should explicitely set whether release and snapshots are enabled MavenRepository should explicitly set whether release and snapshots are enabled Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants