[
https://issues.apache.org/jira/browse/OMID-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17231962#comment-17231962
]
Istvan Toth commented on OMID-188:
----------------------------------
Short term, please check if copying the exclusions from the phoenix pom fixes
your build:
[https://github.com/apache/phoenix/blob/5ff3edbbf532904a628d09d7859c2463b24ccf2a/pom.xml#L961]
Long term, I'd like to see a maven setup that
* Doesn't need the exclusion hack that we need now
* Can build both the HBase 1 and 2 artifacts in one pass
* Doesn't make maven emit warnings about dynamic artifact names during build
We could model it after the structure in phoenix-connectors, which is also
hacky, but at least doesn't require the consumer to jump through hoops.
However, that would also be a post 1.0.2 change.
> Fix "inconsistent module metadata found" when using hbase-2
> -----------------------------------------------------------
>
> Key: OMID-188
> URL: https://issues.apache.org/jira/browse/OMID-188
> Project: Phoenix Omid
> Issue Type: Bug
> Reporter: Chia-Ping Tsai
> Priority: Major
>
> the full message is shown below:
> {quote}
> What went wrong:
> Execution failed for task ':ohara-common:compileJava'.
> > Could not resolve all files for configuration
> > ':ohara-common:compileClasspath'.
> > Could not resolve org.apache.omid:omid-hbase-client-hbase2.x:1.0.1.
> Required by:
> project :ohara-common
> > Could not resolve org.apache.omid:omid-hbase-client-hbase2.x:1.0.1.
> > inconsistent module metadata found. Descriptor:
> org.apache.omid:omid-hbase-client-hbase1.x:1.0.1 Errors: bad module name:
> expected='omid-hbase-client-hbase2.x' found='omid-hbase-client-hbase1.x'
> {quote}
> The root cause is the parent pom still uses profile "hbase-1" so the sub pom
> has postfix " hbase-1".
> In order to resolve this issue, it seems to me the artifactId of parent
> should have postfix and the pom of parent should be rewrite according to
> profile (when building release). That makes sub pom can find correct parent
> pom.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)