Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344262 - POM editor does not show scope inherited from dependency management
Summary: POM editor does not show scope inherited from dependency management
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Milos Kleint CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 08:29 EDT by Tobias Oberlies CLA
Modified: 2021-04-19 13:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Oberlies CLA 2011-04-29 08:29:25 EDT
I just found out that it is possible to change the default scope of a dependency through dependency management, e.g.

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</dependencyManagement>


If a child POM then only specifies a simple depencency, e.g.

<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
</dependency>

the POM editor correctly displays the inherited version, but it does not seem to be aware of the inherited scope. The Dependency Properties dialog shows the incorrect scope "compile". It should display the correct inherited scope.

Also, in the dependencies list, it would be great if the managed scope could be shown in case it is not "compile".
Comment 2 Denis Roy CLA 2021-04-19 13:25:46 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/