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

Gabriel MANCHE commented on HIVE-11114:
---------------------------------------

I've encountered this problem again this day, building the Hive Git branch 
named {{origin/branch-2}} depending on {{calcite-core:1.10.0}} that brings the 
artifact {{org.pentaho:pentaho-aggdesigner-algorithm:5.1.5-jhyde}}.

Note : this dependency have been renamed from 
{{org.pentaho:pentaho-aggdesigner-algorithm}} to 
{{net.hydromatic:aggdesigner-algorithm}} since Calcite 1.11.0 as described in 
Jira https://issues.apache.org/jira/browse/CALCITE-1474.

But the Maven Central does not contains the required artifacts at 
[https://repo.maven.apache.org/maven2/org/pentaho/] anymore, so projects 
depending on previous version cannot compile only using Maven Central.

My fix was to add a default profile on my Maven user settings on {{conjars}} 
repository as it was configured on diff from {{CALCITE-1474}}.
{code:java}
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd";>

<profiles>
<profile>
<id>hive-extra-repositories</id>

<repositories>
<repository>
<id>conjars</id>
<name>Conjars</name>
<url>http://conjars.org/repo</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
</repositories>

</profile>
</profiles>

<activeProfiles>
<activeProfile>hive-extra-repositories</activeProfile>
</activeProfiles>

</settings>
{code}
Hope it helps

 

> Documentation of Pentaho Missing from Maven Central
> ---------------------------------------------------
>
>                 Key: HIVE-11114
>                 URL: https://issues.apache.org/jira/browse/HIVE-11114
>             Project: Hive
>          Issue Type: Task
>            Reporter: Nishant Kelkar
>            Assignee: Nishant Kelkar
>            Priority: Minor
>
> I recently cloned the Hive Git repository. When I went into the hive/ql 
> sub-project and issued the command 'mvn clean compile -Phadoop-1', I got the 
> following build error:
> [ERROR] Failed to execute goal on project hive-exec: Could not resolve 
> dependencies for project org.apache.hive:hive-exec:jar:2.0.0-SNAPSHOT: Could 
> not find artifact org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde 
> in US (http://repo.maven.apache.org/maven2) -> [Help 1]
> This is because the pentaho-aggdesigner-algorithm dependency is not supported 
> by Maven central; however, it is supported by Conjars.
> As a quick fix, I downloaded the jar from Conjars repo, and manually 
> installed this dependency to my local Maven by following the instructions 
> here: 
> http://www.mkyong.com/maven/how-to-include-library-manully-into-maven-local-repository/
> However, I feel this dependency should be supported on Maven central (I'm not 
> sure where to create this ticket/whom with, but Hive is my use case, so any 
> pointers greatly appreciated).
> This ticket tracks the task of documenting this fact on the Hive wiki as an 
> additional Note.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to