emran396 / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Not able to download the dependency google-http-client(1.7.0-beta) through maven 2.2.1 version #748

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using google-api-client(1.7.0-beta) which internally uses 
google-http-client(1.7.0-beta). 
Java Environment : java 6
Maven version : maven-2.2.1/2.1.0

I am not able to download the jar files and getting the below exception.

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get 
dependency information: Unable to read the metadata file for artifact 
'org.apache.httpcomp
onents:httpclient:jar': Parent: null:httpclient:jar:null of project: 
unknown:httpclient has wrong packaging: jar. Must be 'pom'. for project 
unknown:httpclient
  org.apache.httpcomponents:httpclient:jar:4.0.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  com.travelocity (http://tcymvn01.dev.sabre.com/maven2)

Path to dependency:
        1) content-gateway:gcgservices:war:2.0
        2) com.google.api-client:google-api-client:jar:1.7.0-beta
        3) com.google.oauth-client:google-oauth-client:jar:1.7.0-beta
        4) com.google.http-client:google-http-client:jar:1.7.0-beta

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: 
Unable to get dependency information: Unable to read the metadata file for 
artifact '
org.apache.httpcomponents:httpclient:jar': Parent: null:httpclient:jar:null of 
project: unknown:httpclient has wrong packaging: jar. Must be 'pom'. for project
unknown:httpclient
  org.apache.httpcomponents:httpclient:jar:4.0.3

I would wanted this to be fixed as downloadable for maven all versions.

Please help me on this and reply asap.

Thanks, Gupta

Original issue reported on code.google.com by yvgup...@gmail.com on 14 Mar 2013 at 9:24