You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2021/04/16 10:49:02 UTC
[jira] [Reopened] (MRELEASE-763) release:prepare ignores invalid
dependencies in inactive profiles
[ https://issues.apache.org/jira/browse/MRELEASE-763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold reopened MRELEASE-763:
--------------------------------------------
reopening since there's still a TODO in the code for this
> release:prepare ignores invalid dependencies in inactive profiles
> -----------------------------------------------------------------
>
> Key: MRELEASE-763
> URL: https://issues.apache.org/jira/browse/MRELEASE-763
> Project: Maven Release Plugin
> Issue Type: Improvement
> Components: prepare
> Affects Versions: 2.3
> Reporter: Mark Hobson
> Priority: Major
>
> {{release:prepare}} completes successfully on projects that contain invalid dependencies in inactive profiles.
> For example, a POM containing the following profile containing a non-existent dependency will prepare without problems:
> {code}
> ...
> <profiles>
> <profile>
> <id>silly</id>
> <dependencies>
> <dependency>
> <groupId>silly</groupId>
> <artifactId>silly</artifactId>
> <version>1.0</version>
> </dependency>
> </dependencies>
> </profile>
> </profiles>
> ...
> {code}
> Furthermore, if this dependency was changed to a SNAPSHOT version then it would still succeed. I would expect {{prepare}} to fail in both cases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)