Reto Bachmann-Gmür created STANBOL-934:
------------------------------------------

             Summary: Clean up dependencies
                 Key: STANBOL-934
                 URL: https://issues.apache.org/jira/browse/STANBOL-934
             Project: Stanbol
          Issue Type: Task
            Reporter: Reto Bachmann-Gmür


An Artifact should specify as its dependencies the artifacts it depends on. It 
should not specify dependencies it only indirectly depends on. It should not 
omit dependencies it directly depends on unless they just because they are 
present as an indirect dependency. An exception given if the direct dependency 
imperatively needs the indirect dependency for its primary purpose.

Example:

- Our projects depends on classes provided by XmlParser and ImapMailer.  
- ImapMailer depends on XmlParser
-> We still must define our dependecy on XmlParser as an implementation of 
ImapMail could well not depend on XmlParser

- Our project depends on classes provided by ForBarCore and by FooBarUtils
- FooBarUtils is a project proving utilities around the FooBarCore classes
-> It is enough if our project depends on FooBarUtils as this project 
necessarily depends on FooBarCode,

- Our projects depends on classes provided by  ImapMailer.  
- ImapMailer depends on XmlParser
-> We must not have a dependency on XmlParser as we only indirectly use it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to