-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Plugin Allows Releases of Projects with SNAPSHOT parent POMs #64
Comments
Same problem with a multi-module project with dependency management. Version 1.12.0 |
Any update on this as this could lead to release unstable versions |
I've made a dirty fix to take care of this; I run with 'allowSnapshots', but I've added code to the plugin to execute enforcer's requirereleasedeps rule. I'm not submitting a PR because it's a dirty change that suits my purpose for now, but in case you'd like to 'roll your own', that's the direction I chose to go in for now. I think fixing up @aleksandr-m function is a better idea. |
Same issue, also with version
|
The |
It would be good to check the parent also. The parent in my workflow dictates versions of dependencies, so the parent itself must not be permitted to be a SNAPSHOT. |
@aleksandr-m we have it where parent holds all Parent pom snippet: <modules>
<module>child1</module>
</modules>
<properties>
<baz-lib.version>1.3.2-SNAPSHOT</baz-lib.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.foo.bar</groupId>
<artifactId>baz-lib</artifactId>
<version>${baz-lib.version}</version>
</dependency>
</dependencies>
</dependencyManagement> Module pom snippet: <artifactId>child1</artifactId>
<dependencies>
<dependency>
<groupId>org.foo.bar</groupId>
<artifactId>baz-lib</artifactId>
</dependency>
</dependencies> This should not be released at all. |
@kutsal Which version you are using? If latest then please register a new issue, seems it is unrelated to this one. BTW PR-s are welcome. |
@aleksandr-m We're using |
I have similar issues with a simple project where the -SNAPSHOT version is defined in a properties, and the tag is using that property. |
Got the same issue with |
I could verify that version
This issue (parent pom SNAPSHOT) is still present in |
Can someone create small test project demonstrating the case with SNAPSHOT in parent pom? |
…tion add integration tests to cover SNAPSHOT dependency check
i've provided a PR which adds a check for SNAPSHOT version in parent POM (and also adds integration tests): #323 |
…tion add integration tests to cover SNAPSHOT dependency check
…pshot-check #64 Check for SNAPSHOT dependency in parent project definition
The |
Expected behavior:
If I attempt to release a project with the following lines in the pom.xml, I expect the release to fail along the same lines as if I had a SNAPSHOT dependency:
Instead it seems to release with no problem. I can't imagine that this is a valid use case, but even if it is I would like to be able to enable this kind of checking with a config setting.
Version: 1.6.0
The text was updated successfully, but these errors were encountered: