You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ctakes.apache.org by "Alex Zbarcea (JIRA)" <ji...@apache.org> on 2017/09/25 22:34:02 UTC

[jira] [Comment Edited] (CTAKES-457) consistently usage of properties to manage dependency versions

    [ https://issues.apache.org/jira/browse/CTAKES-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16179883#comment-16179883 ] 

Alex Zbarcea edited comment on CTAKES-457 at 9/25/17 10:33 PM:
---------------------------------------------------------------

patch provided


was (Author: alexz):
patch

> consistently usage of properties to manage dependency versions
> --------------------------------------------------------------
>
>                 Key: CTAKES-457
>                 URL: https://issues.apache.org/jira/browse/CTAKES-457
>             Project: cTAKES
>          Issue Type: Improvement
>    Affects Versions: 4.0.0
>            Reporter: Alex Zbarcea
>         Attachments: use-properties-for-deps-in-pom.CTAKES-457.svn.patch
>
>
> Explicit versions for {{org.apache.lucene}} and {{org.apache.uima}} and {{org.apache.opennlp}} and {{org.springframework}} are used in both the parent {{pom.xml}} and in modules.
> Similar mechanism as for {{ctakes.version}} is recommended to manage dependency versions.
> The parent {{pom.xml}} would contain:
> {code:xml}
> <properties>
>     <library.version>4.0.0</library.version>
> </properties>
> <!-- ... -->
> <dependencyManagement>
>     <dependencies>
>         <dependency>
>             <groupId>library</groupId>
>             <artifactId>artifact-one</artifactId>
>             <version>${library.version}</version>
>         </dependency>
>         <dependency>
>             <groupId>library</groupId>
>             <artifactId>artifact-two</artifactId>
>             <version>${library.version}</version>
>         </dependency>
>         <!-- .... -->
>     </dependencies>
> </dependencyManagement>
> {code}
> The module's {{pom.xml}} would contain only the {{groupId}} and {{artifactId}}, without the need of specifying the {{version}}:
> {code:xml}
> <dependencies>
>     <dependency>
>         <groupId>library</groupId>
>         <artifactId>artifact-two</artifactId>
>     </dependency>
> </dependencies>
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)