ritamnrg / facebook-java-api

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

[ERROR] BUILD ERROR [INFO] -------------------------------- Failed to resolve artifact. #329

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I did a fresh check out
and trying to building the same using
>mvn install -DskipTests=true

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) 
com.google.code.facebookapi:facebook-java-api-annotation-processor:jar:3.0.4-SNA
PSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.google.code.facebookapi -DartifactId=facebook-java-api-annotation-processor -Dversion=3.0.4-SNAPSHOT -Dpackaging=jar -Dfile
=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.google.code.facebookapi -DartifactId=facebook-java-api-annotation-processor -Dversion=3.0.4-SNAPSHOT -Dpackaging=jar -Dfile=/
path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
        1) org.codehaus.mojo:apt-maven-plugin:maven-plugin:1.0-alpha-3
        2) com.google.code.facebookapi:facebook-java-api-annotation-processor:jar:3.0.4-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.codehaus.mojo:apt-maven-plugin:maven-plugin:1.0-alpha-3

from the specified remote repositories:
  codehaus.org (http://snapshots.repository.codehaus.org),
  central (http://repo1.maven.org/maven2)

I am using :
maven 2.0.10
jdk 1.6.0_17
Os : windows7

Original issue reported on code.google.com by anil.singh84 on 8 Aug 2010 at 3:40

GoogleCodeExporter commented 8 years ago
I need suggestions ASAP.

Thnks in advance.
Anil

Original comment by anil.singh84 on 8 Aug 2010 at 3:57

GoogleCodeExporter commented 8 years ago
You can install missing dependency on your own:

1) Go to annotation-processor folder
2) mvn install -DskipTests=true 
3) mvn install:install-file -DgroupId=com.google.code.facebookapi 
-DartifactId=facebook-java-api-annotation-processor -Dversion=3.0.4-SNAPSHOT 
-Dpackaging=jar -Dfile=target/facebook-java-api-annotation-processor-3.0.4.jar
4) Go to root
5) mvn install -DskipTests=true 

Original comment by dm.naume...@gmail.com on 10 Aug 2010 at 4:32

GoogleCodeExporter commented 8 years ago
Hey......Thnx a lot fr ur reply.

Original comment by anil.singh84 on 11 Aug 2010 at 6:43

GoogleCodeExporter commented 8 years ago
Same problem for me,and it's not resolved.
It appeared that apt version was 3.0.5 while the reference was for 3.0.4. I 
changed the version number to 3.0.5 in all places where apt is reference. 
However this is what maven has to say:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.174s
[INFO] Finished at: Fri May 27 16:28:14 EDT 2011
[INFO] Final Memory: 9M/149M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:apt-maven-plugin:1.0-alpha-3:pr
ocess (default) on project facebook-java-api: Apt failed -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.codehaus.mojo:apt-maven-plugin:1.0-alpha-3:process (default) on project faceb
ook-java-api: Apt failed
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:217)
        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.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Apt failed
        at org.codehaus.mojo.apt.AbstractAptMojo.executeApt(AbstractAptMojo.java
:378)
        at org.codehaus.mojo.apt.AbstractAptMojo.executeImpl(AbstractAptMojo.jav
a:263)
        at org.codehaus.mojo.apt.AbstractAptMojo.execute(AbstractAptMojo.java:24
0)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 19 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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :facebook-java-api

Original comment by elintegr...@gmail.com on 27 May 2011 at 8:32

GoogleCodeExporter commented 8 years ago
Changing 3.0.4 to 3.0.5 in facebook-java-api/pom.xml worked for me. 

Original comment by vineet...@gmail.com on 15 Jun 2011 at 1:03