[
https://issues.apache.org/jira/browse/ONAMI-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13591680#comment-13591680
]
Mikhail Mazursky commented on ONAMI-98:
---------------------------------------
To my understanding "provided" is used for api dependencies like servlet-api,
jpa-api, validation-api, etc when you want to use classes/interfaces from API
and the concrete implementation will be provided by container at runtime. This
is the same as written in maven docs [1].
Also, all official Guice's extensions have Guice as a compile time dep., all
slf4j-api implementations have slf4j-api as compile time dep., etc.
Agree on -1 about "test" for junit - haven't noticed it's different use before.
The same as the first point - Onami-Test should have junit, easymock and
mockito as "compile". They are "optional" so will not be put on classpath if
not there.
On the last point - not consistently. E.g. org.apache.onami.scheduler uses
slf4j-api 1.6.1 and org.apache.onami.logging.parent declares the version as
property with value "1.7.2". This all can be simplified and moved to dep.
management to parent pom.
[1]:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
p.s. how to quote here?
> Improve dependency management
> -----------------------------
>
> Key: ONAMI-98
> URL: https://issues.apache.org/jira/browse/ONAMI-98
> Project: Apache Onami
> Issue Type: Improvement
> Components: parent
> Affects Versions: parent-3
> Reporter: Mikhail Mazursky
> Priority: Minor
>
> - Why Guice have "provided" scope in dep. management? I think it should be
> "compile".
> - We can set scope for JUnit, TestNg dependencies to be "test" to avoid
> setting it in each module.
> - We may want to remove explicit "compile" scope and "jar" type from all
> dependencies from all modules because they are defaults. Less noise in poms.
> - Manage all dependencies' versions from parent dependency management to
> ensure consistent versions and easy maintenance.
> WDYT?
--
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