jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-1557

Dependency Ignored

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Fedora Core 4
  • Complexity:
    Intermediate

Description

A typical dependency (with version, scope, and exclusions set by parent POM via dependency management) shows up in the effective pom and the exported pom. However, it does not show up in the dependency tree in the debug output of an attempt to package the project, it doesn't show up in the resulting war (which it should by it's scope of runtime), and if it's deleted from the local repository, Maven does not attemtp to download it. Other project with this dependency specified the same way, with the same parent, download the dependency, and work as expected.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    debug-output.txt
    14/Nov/05 7:06 AM
    69 kB
    Stephen Duncan Jr
  2. Text File
    effective-pom.txt
    14/Nov/05 7:06 AM
    30 kB
    Stephen Duncan Jr

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MNG-1797 Dependency excludes apply to every subsequent dependency, not just the one it is declared under.

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is related to

Bug - A problem which impairs or prevents the functions of the product. MNG-1573 No debug output for optional dependencies

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Stephen Duncan Jr added a comment - 14/Nov/05 7:06 AM

Added output of projecthelp:effective-pom

Show
Stephen Duncan Jr added a comment - 14/Nov/05 7:06 AM Added output of projecthelp:effective-pom
Hide
Permalink
Stephen Duncan Jr added a comment - 14/Nov/05 7:06 AM

Added result of running m2 -X clean package (debug-output.txt)

Show
Stephen Duncan Jr added a comment - 14/Nov/05 7:06 AM Added result of running m2 -X clean package (debug-output.txt)
Hide
Permalink
Stephen Duncan Jr added a comment - 17/Nov/05 6:35 AM

Was able to reproduce the problem on a separate Windows XP machine.

Show
Stephen Duncan Jr added a comment - 17/Nov/05 6:35 AM Was able to reproduce the problem on a separate Windows XP machine.
Hide
Permalink
Brett Porter added a comment - 21/Nov/05 12:50 AM

are you able to reproduce it with the trunk bootstrap? It may be related to existing issues.

Show
Brett Porter added a comment - 21/Nov/05 12:50 AM are you able to reproduce it with the trunk bootstrap? It may be related to existing issues.
Hide
Permalink
Stephen Duncan Jr added a comment - 12/Dec/05 9:17 AM

Tested with the 2.0.1 release candidate posted here: http://people.apache.org/~jdcasey/maven2/releases/2.0.1-RC/ and still had the problem.

Should I be doing something else to get the latest plugins to test something in there?

Show
Stephen Duncan Jr added a comment - 12/Dec/05 9:17 AM Tested with the 2.0.1 release candidate posted here: http://people.apache.org/~jdcasey/maven2/releases/2.0.1-RC/ and still had the problem. Should I be doing something else to get the latest plugins to test something in there?
Hide
Permalink
Brett Porter added a comment - 12/Dec/05 11:04 AM

unfortunately its too late in the release cycle to fix this if it still exists. It has been scheduled for 2.0.2

Show
Brett Porter added a comment - 12/Dec/05 11:04 AM unfortunately its too late in the release cycle to fix this if it still exists. It has been scheduled for 2.0.2
Hide
Permalink
Stephen Duncan Jr added a comment - 03/Jan/06 2:22 PM

I think I've been able to determine the source of this problem, now that it's happened on another project. Will verify on original problem project tomorrow.

Here's the situation. The dependency being ignored is taglibs:standard. I also have a depedency on org.springframework:spring-web. The details of these dependencies are specified in a parent POM's dependencyMangament section. The spring-web dependency specified an exclusion of taglibs:standard.

Removing that exclusion allows things to work as expected.

This is still a bug though, right? An exclusion of a transitive dependency shouldn't prevent me from directly depending on it.

Show
Stephen Duncan Jr added a comment - 03/Jan/06 2:22 PM I think I've been able to determine the source of this problem, now that it's happened on another project. Will verify on original problem project tomorrow. Here's the situation. The dependency being ignored is taglibs:standard. I also have a depedency on org.springframework:spring-web. The details of these dependencies are specified in a parent POM's dependencyMangament section. The spring-web dependency specified an exclusion of taglibs:standard. Removing that exclusion allows things to work as expected. This is still a bug though, right? An exclusion of a transitive dependency shouldn't prevent me from directly depending on it.
Hide
Permalink
Carlos Sanchez added a comment - 04/Feb/06 12:55 AM

This is a duplicate of MNG-1797, check it to see a workaround

Show
Carlos Sanchez added a comment - 04/Feb/06 12:55 AM This is a duplicate of MNG-1797, check it to see a workaround

People

  • Assignee:
    Carlos Sanchez
    Reporter:
    Stephen Duncan Jr
Vote (0)
Watch (1)

Dates

  • Created:
    14/Nov/05 7:05 AM
    Updated:
    04/Feb/06 4:11 PM
    Resolved:
    04/Feb/06 12:55 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.