You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Basapuram Kumar (Jira)" <ji...@apache.org> on 2022/09/18 15:47:00 UTC

[jira] [Work started] (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?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on HIVE-26544 started by Basapuram Kumar.
----------------------------------------------
> 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-diff-javax-jms.log
>
>
> 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)