hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Steinbach (Commented) (JIRA)" <>
Subject [jira] [Commented] (HIVE-2243) Can't publish maven release artifacts to apache repository
Date Fri, 07 Oct 2011 08:18:29 GMT


Carl Steinbach commented on HIVE-2243:

* I commented out the body of the 'test' target in build-common.xml and then verified that
the OOM error still occurs.

% export ANT_OPTS="-XX:+PrintCommandLineFlags -XX:+PrintGCDetails -XX:+PrintGC -XX:+TraceClassLoading
-XX:+TraceClassUnloading -XX:+HeapDumpOnOutOfMemoryError"
% ant clean package test &> build.log
% cat build.log | grep '^\[(Loaded|Unloading)' | sort -n | uniq -c > event.log

The contents of event.log indicate that the 'ivy-init-antlib' target in build-common.xml
is getting called over twenty times, and the classes which are re-loaded as a result
of each call are never unloaded. Eventually these class definitions fill up the PermGen
space and cause an OOM error. I suspect that the 'typefound' task in the 'ivy-probe-antlib'
target has a bug, or that it doesn't work as expected when called via ant/subant/antcall

The new version of the patch fixes this issue by relocating ivy-init-antlib target from
build-common.xml to build.xml.

> Can't publish maven release artifacts to apache repository
> ----------------------------------------------------------
>                 Key: HIVE-2243
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Build Infrastructure
>    Affects Versions: 0.7.1
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.8.0
>         Attachments: HIVE-2243.1.patch.txt, HIVE-2243.2.patch.txt
> So far I haven't been able to push the maven artifacts to the Apache release repository.
Here's the error I get:
> {noformat}
> % ant maven-publish -Dmvn.publish.repo=releases
> ...
> maven-publish-artifact:
> [artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-http:jar:1.0-beta-2:runtime
> [artifact:deploy] Deploying to
> [artifact:deploy] Uploading: org/apache/hive/hive-anttasks/0.7.1/hive-anttasks-0.7.1.jar
to repository apache.releases.https at
> [artifact:deploy] Transferring 9K from apache.releases.https
> [artifact:deploy] An error has occurred while processing the Maven artifact tasks.
> [artifact:deploy]  Diagnosis:
> [artifact:deploy] 
> [artifact:deploy] Error deploying artifact 'org.apache.hive:hive-anttasks:jar': Error
deploying artifact: Authorization failed: Access denied to:
> {noformat}
> I get the same error when I try to publish to the staging repository.
> I took another look at the Apache "Publishing Maven Artifacts" guide (
and think that we're probably failing to include a couple fields that are required in the
pom files. It also looks like we should be pushing this to the staging repository as opposed
to the releases repository.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message