Hello, Everyone

I am trying to build Hive 2.0.0-SNAPSHOT(the master branch) on my 64-bit 
Windows 7 machine. 
I run mvn command from git-for-windows environment. The build command is:


mvn install -Phadoop-2  -DskipTests -e


I used to build hive-0.13.1-cdh5.2.0 successfully this way. But now I got below 
errors when building "Hive Query Language" sub-project.  Also I google the 
error message, someone said removal local maven repo could solve the issue, I 
do not quit understand the reason, because during compiling, local maven repo 
could be re-established. I also tried to removal of  "plug-ins" directories 
under local maven repo. It cannot work either.


Any input is appreciated!




[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on 
project hive-exec: Execution default of
 goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process 
failed: For artifact {null:null:null:jar}: The groupId cannot be empty. -> 
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on 
project hive-exec: Execution default of goal 
org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process failed: For 
artifact {null:null:null:jar}: The groupId cannot be empty.
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default 
of goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:proc
ess failed: For artifact {null:null:null:jar}: The groupId cannot be empty.
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
Caused by: org.apache.maven.artifact.InvalidArtifactRTException: For artifact 
{null:null:null:jar}: The groupId cannot be empty.
        at 
org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArtifact.java:130)
        at 
org.apache.maven.artifact.DefaultArtifact.<init>(DefaultArtifact.java:123)
        at 
org.apache.maven.bridge.MavenRepositorySystem.XcreateArtifact(MavenRepositorySystem.java:695)
        at 
org.apache.maven.bridge.MavenRepositorySystem.XcreateArtifact(MavenRepositorySystem.java:655)
        at 
org.apache.maven.bridge.MavenRepositorySystem.XcreateArtifact(MavenRepositorySystem.java:649)
        at 
org.apache.maven.bridge.MavenRepositorySystem.XcreateArtifact(MavenRepositorySystem.java:607)
        at 
org.apache.maven.bridge.MavenRepositorySystem.createArtifact(MavenRepositorySystem.java:98)
        at 
org.apache.maven.project.DefaultProjectBuilder.initProject(DefaultProjectBuilder.java:697)
        at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:174)
        at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:364)
        at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:284)
        at 
org.apache.maven.project.DefaultProjectBuilder.initProject(DefaultProjectBuilder.java:685)
        at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:174)
        at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:364)
        at 
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:284)
        at 
org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedProject(MavenMetadataSource.java:577)
        at 
org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:190)
        at 
org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.recurse(DefaultLegacyArtifactCollector.java:532)
        at 
org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.recurse(DefaultLegacyArtifactCollector.java:584)
        at 
org.apache.maven.repository.legacy.resolver.DefaultLegacyArtifactCollector.collect(DefaultLegacyArtifactCollector.java:144)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:494)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveWithExceptions(DefaultArtifactResolver.java:350)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:344)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:319)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:288)
        at 
org.apache.maven.shared.artifact.resolver.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:140)
        at 
org.apache.maven.shared.artifact.resolver.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:187)
        at 
org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.resolveProjectArtifacts(ProcessRemoteResourcesMojo.java:721)
        at 
org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.getProjects(ProcessRemoteResourcesMojo.java:624)
        at 
org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.configureVelocityContext(ProcessRemoteResourcesMojo.java:1009)
        at 
org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:513)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
        ... 20 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hive-exec 

Reply via email to