[
https://issues.apache.org/jira/browse/MNG-6123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Heinz Marbaise closed MNG-6123.
------------------------------------
Resolution: Fixed
Done in Maven
Core:[8f8c45c990193b04c1770997d446951c5185b164|https://git-wip-us.apache.org/repos/asf?p=maven.git;a=commit;h=8f8c45c990193b04c1770997d446951c5185b164]
Done in Maven Integration Testing
[3a1f095ec845c94b8e21ea28e4ffe69a01c29f4b|https://git-wip-us.apache.org/repos/asf?p=maven-integration-testing.git;a=commit;h=3a1f095ec845c94b8e21ea28e4ffe69a01c29f4b]
> detect self references in POM and fail fast
> -------------------------------------------
>
> Key: MNG-6123
> URL: https://issues.apache.org/jira/browse/MNG-6123
> Project: Maven
> Issue Type: Improvement
> Components: Bootstrap & Build, Dependencies
> Affects Versions: 3.3.9
> Environment: Oracle JDK 1.8.0_111 on Linux 4.8 x64
> Reporter: Gregor B. Rosenauer
> Assignee: Karl Heinz Marbaise
> Priority: Minor
> Labels: build, easyfix
> Fix For: 3.5.1
>
>
> Maven does not detect self references in a POM and tries to download the
> artifact it is about to build, which makes no sense and should result in an
> early error and abort of the build.
> E.g. sample POM:
> {code}
> <groupId>org.my.acme</groupId>
> <artifactId>my-module</artifactId>
> <version>1.2.3</version>
> <dependencies>
> ...
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>my-module</artifactId>
> <version>${project.version}</version>
> <dependency>
> <dependencies>
> {code}
> Maven tries to download my-module.jar but obviously fails...
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)