You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2020/07/05 19:13:00 UTC

[jira] [Commented] (MENFORCER-346) RequireSnapshotVersion not compatible with CI Friendly Versions (${revision})

    [ https://issues.apache.org/jira/browse/MENFORCER-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17151644#comment-17151644 ] 

Robert Scholte commented on MENFORCER-346:
------------------------------------------

Fixed in [9b1a09b76cdfc69938ddd81f70f4c745ac399dd7|https://gitbox.apache.org/repos/asf?p=maven-enforcer.git;a=commit;h=9b1a09b76cdfc69938ddd81f70f4c745ac399dd7]

> RequireSnapshotVersion not compatible with CI Friendly Versions (${revision})
> -----------------------------------------------------------------------------
>
>                 Key: MENFORCER-346
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-346
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>          Components: Standard Rules
>    Affects Versions: 1.4.1, 3.0.0-M3
>         Environment: Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T17:06:16+02:00)
> Java version: 1.8.0_202, vendor: Oracle Corporation
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>            Reporter: Falko Modler
>            Assignee: Elliotte Rusty Harold
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Following https://maven.apache.org/maven-ci-friendly.html by using
> {code:xml}
> <version>${revision}</version>
> {code}
> and for instance
> {code:xml}
> <properties>
>     <revision>1.0-SNAPSHOT</revision>
> </properties>
> {code}
> together with {{RequireSnapshotVersion}} yields:
> {noformat}
> [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (default-cli) @ some-module ---
> [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireSnapshotVersion failed with message:
> Parent cannot be a release: some.group:some-root:pom:${revision}
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)