You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/09/19 06:18:00 UTC
[jira] [Work logged] (HIVE-26544) Hive-3.0 build failed with artifact javax.jms:jms:jar:1.1 not found
[ https://issues.apache.org/jira/browse/HIVE-26544?focusedWorklogId=809941&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-809941 ]
ASF GitHub Bot logged work on HIVE-26544:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 19/Sep/22 06:17
Start Date: 19/Sep/22 06:17
Worklog Time Spent: 10m
Work Description: basapuram-kumar opened a new pull request, #3604:
URL: https://github.com/apache/hive/pull/3604
### What changes were proposed in this pull request?
Adding JBoss maven2 artifact to resolve the javax.jms:jms:jar issue, by adding build will pass locally on macos-m1.
jira- [HIVE-26544](https://issues.apache.org/jira/browse/HIVE-26544)
### Why are the changes needed?
From the pom.xml, we need to change this beow explained
old repo:
<url>http://www.datanucleus.org/downloads/maven2</url>
new repo
https://repository.jboss.org/maven2/
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
without this patchm the build failed as explained in [HIVE-26544](https://issues.apache.org/jira/browse/HIVE-26544)
By applying this proposed patch, it gets succeded.
Issue Time Tracking
-------------------
Worklog Id: (was: 809941)
Remaining Estimate: 0h
Time Spent: 10m
> Hive-3.0 build failed with artifact javax.jms:jms:jar:1.1 not found
> -------------------------------------------------------------------
>
> Key: HIVE-26544
> URL: https://issues.apache.org/jira/browse/HIVE-26544
> Project: Hive
> Issue Type: Bug
> Components: HCatalog
> Affects Versions: 3.0.0
> Environment: Dev env - macOS
> Apache Hive-3.0
>
> Reporter: Basapuram Kumar
> Assignee: Basapuram Kumar
> Priority: Minor
> Attachments: HIVE-26544.1.patch, hive-diff-javax-jms.log
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Hello Team,
> When building hive-3.0.0 locally on macOS-M1, it failed with the below error.
> {noformat}
> $ mvn clean install -DskipTests
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 02:55 min
> [INFO] Finished at: 2022-09-18T17:57:52+05:30
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project hive-hcatalog-server-extensions: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:3.0.1-SNAPSHOT: Could not transfer artifact javax.jms:jms:jar:1.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [datanucleus (http://www.datanucleus.org/downloads/maven2, default, releases), glassfish-repository (http://maven.glassfish.org/content/groups/glassfish, default, disabled), glassfish-repo-archive (http://maven.glassfish.org/content/groups/glassfish, default, disabled)] -> [Help 1]{noformat}
>
> Short error:
> {noformat}
> Could not transfer artifact javax.jms:jms:jar:1.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories
> {noformat}
>
> From the existing pom.xml,
> {noformat}
> <repository>
> <id>datanucleus</id>
> <name>datanucleus maven repository</name>
> <url>http://www.datanucleus.org/downloads/maven2</url>
> ..
> ..
> </repository>{noformat}
> This URL cannot be reachable from the build(From my laptop, it is), throwing this error in debug mode.
> {noformat}
> [ERROR] Failed to execute goal on project hive-hcatalog-server-extensions: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:3.0.1-SNAPSHOT: Could not transfer artifact javax.jms:jms:jar:1.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [datanucleus (http://www.datanucleus.org/downloads/maven2, default, releases), glassfish-repository (http://maven.glassfish.org/content/groups/glassfish, default, disabled), glassfish-repo-archive (http://maven.glassfish.org/content/groups/glassfish, default, disabled)] -> [Help 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project hive-hcatalog-server-extensions: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:3.0.1-SNAPSHOT: Could not transfer artifact javax.jms:jms:jar:1.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [datanucleus (http://www.datanucleus.org/downloads/maven2, default, releases), glassfish-repository (http://maven.glassfish.org/content/groups/glassfish, default, disabled), glassfish-repo-archive (http://maven.glassfish.org/content/groups/glassfish, default, disabled)]
> at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)
> at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)
> at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
> at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:498)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
> Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.hive.hcatalog:hive-hcatalog-server-extensions:jar:3.0.1-SNAPSHOT: Could not transfer artifact javax.jms:jms:jar:1.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [datanucleus (http://www.datanucleus.org/downloads/maven2, default, releases), glassfish-repository (http://maven.glassfish.org/content/groups/glassfish, default, disabled), glassfish-repo-archive (http://maven.glassfish.org/content/groups/glassfish, default, disabled)]
> at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve (DefaultProjectDependenciesResolver.java:198)
> at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:243)
> at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)
> at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202){noformat}
>
> Solution:
> Replace the "http://www.datanucleus.org/downloads/maven2" with "https://repository.jboss.org/maven2/", it will run the build successfully on local mac-M1.
> Attaching the pom diff for fix. I will add the PR id soon.
>
> Note:
> I have applied the patch [HIVE-21777.patch |https://issues.apache.org/jira/secure/attachment/12969400/HIVE-21777.patch] before this issue.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)