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

Dapeng Sun commented on SENTRY-604:
-----------------------------------

A simple command to find it may like {noformat}build_sentry | grep  "must be 
unique" -C 10{noformat}, maybe a good solution is we add some check at Jenkins 
test.

> Clean duplicate dependences in poms
> -----------------------------------
>
>                 Key: SENTRY-604
>                 URL: https://issues.apache.org/jira/browse/SENTRY-604
>             Project: Sentry
>          Issue Type: Bug
>            Reporter: Dapeng Sun
>            Assignee: Dapeng Sun
>         Attachments: SENTRY-604.001.patch
>
>
> When executing {{mvn install}}, it may got the following warning:
> {noformat}
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model 
> for org.apache.sentry:sentry-core:pom:1.5.0-incubating-SNAPSHOT
> [WARNING] 
> 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)'
>  must be unique: org.apache.solr:solr-test-framework:jar -> duplicate 
> declaration of version ${solr.version} @ 
> org.apache.sentry:sentry:1.5.0-incubating-SNAPSHOT, 
> /home/sundp/workspace/opensource/sentry/pom.xml, line 250, column 19
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model 
> for org.apache.sentry:sentry-provider-db:jar:1.5.0-incubating-SNAPSHOT
> [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must 
> be unique: org.apache.sentry:sentry-core-model-search:jar -> duplicate 
> declaration of version (?) @ line 90, column 17
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model 
> for org.apache.sentry:sentry-tests-hive:jar:1.5.0-incubating-SNAPSHOT
> [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must 
> be unique: org.apache.zookeeper:zookeeper:jar -> version ${zookeeper.version} 
> vs (?) @ line 261, column 19
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model 
> for org.apache.sentry:sentry:pom:1.5.0-incubating-SNAPSHOT
> [WARNING] 
> 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)'
>  must be unique: org.apache.solr:solr-test-framework:jar -> duplicate 
> declaration of version ${solr.version} @ line 250, column 19
> [WARNING] 
> [WARNING] It is highly recommended to fix these problems because they 
> threaten the stability of your build.
> [WARNING] 
> [WARNING] For this reason, future Maven versions might no longer support 
> building such malformed projects.
> [WARNING]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to