huuanh1987 / facebook-java-api

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

tags/release-2.1.1/facebook-java-api maven build broken #204

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn co
http://facebook-java-api.googlecode.com/svn/tags/release-2.1.1/facebook-java-api
2. cd facebook-java-api
3. mvn clean install

here's the output from maven:

INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Facebook Java Library
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2/org/jvnet/jaxb2_commons/runtime/0.4.1.3/runtime-0.
4.1.3.pom
[INFO] [compiler:compile]
[INFO] Compiling 44 source files to
/Users/tom/tmp/facebook-java-api/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/Users/tom/tmp/facebook-java-api/src/main/java/com/google/code/facebookapi/Exten
sibleClient.java:[37,30]
package org.apache.commons.lang does not exist

/Users/tom/tmp/facebook-java-api/src/main/java/com/google/code/facebookapi/Exten
sibleClient.java:[2728,7]
cannot find symbol
symbol  : variable StringUtils
location: class com.google.code.facebookapi.ExtensibleClient<T>

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon May 04 13:54:09 PDT 2009
[INFO] Final Memory: 21M/59M
[INFO] ------------------------------------------------------------------------

What is the expected output? What do you see instead?

Build Successful

What version of the product are you using? On what operating system?

2.1.1 - fails on Linux, Windows, and OS X.

Please provide any additional information below.

possibly related to issue #187?

Original issue reported on code.google.com by mccann....@gmail.com on 5 May 2009 at 5:21

GoogleCodeExporter commented 8 years ago
argh!  Trunk doesn't build for me either:

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

Missing:
----------
1) javax.jms:jms:jar:1.1

  Try downloading the file manually from: 
      http://java.sun.com/products/jms/docs.html

  Then, install it using the command: 
      mvn install:install-file -DgroupId=javax.jms -DartifactId=jms \
          -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency: 
    1) com.google.code.facebookapi:facebook-java-api:jar:2.1.2-SNAPSHOT
    2) log4j:log4j:jar:1.2.15
    3) javax.jms:jms:jar:1.1

2) com.sun.jdmk:jmxtools:jar:1.2.1

  Try downloading the file manually from: 
      http://java.sun.com/products/JavaManagement/download.html

  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools \
          -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency: 
    1) com.google.code.facebookapi:facebook-java-api:jar:2.1.2-SNAPSHOT
    2) log4j:log4j:jar:1.2.15
    3) com.sun.jdmk:jmxtools:jar:1.2.1

3) com.sun.jmx:jmxri:jar:1.2.1

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.sun.jmx -DartifactId=jmxri \
          -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency: 
    1) com.google.code.facebookapi:facebook-java-api:jar:2.1.2-SNAPSHOT
    2) log4j:log4j:jar:1.2.15
    3) com.sun.jmx:jmxri:jar:1.2.1

----------
3 required artifacts are missing.

for artifact: 
  com.google.code.facebookapi:facebook-java-api:jar:2.1.2-SNAPSHOT

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

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 29 seconds
[INFO] Finished at: Fri May 15 09:28:37 PDT 2009
[INFO] Final Memory: 38M/80M
[INFO] ------------------------------------------------------------------------

Shouldn't the project build from a clean checkout without having to manually add
jars?  Especially the tagged branch (broken for two weeks now)?  Do you guys 
need
more volunteers?

Original comment by mccann....@gmail.com on 15 May 2009 at 4:34

GoogleCodeExporter commented 8 years ago
Do you have a patch which you'd like applied?

Do you guys need more volunteers?
>> Er, yes. Always.

Original comment by david.j....@googlemail.com on 30 May 2009 at 5:26

GoogleCodeExporter commented 8 years ago
Tom,

After investigation, all the dependencies that you list are Maven dependencies 
that 
*must* be installed manually due to licensing issues. Sun don't distribute the 
.jar 
binaries on the repo1.maven.org/maven2 repository. They put pom.xml files on 
there, 
but they just contain instructions on where to get the files.

Maven tells you what you need to do:
1) javax.jms:jms:jar:1.1

  Try downloading the file manually from: 
      http://java.sun.com/products/jms/docs.html

  Then, install it using the command: 
      mvn install:install-file -DgroupId=javax.jms -DartifactId=jms \
          -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file

If you run 3 of those commands after downloading the required files, the jars 
will be 
installed in your local repository. There really isn't a way round that without 
breaking the Sun distribution licenses. Hopefully, Sun will change their mind 
soon 
and open source all this stuff so that it can be freely posted.

Original comment by david.j....@googlemail.com on 31 May 2009 at 9:19

GoogleCodeExporter commented 8 years ago

Original comment by david.j....@googlemail.com on 31 May 2009 at 9:19

GoogleCodeExporter commented 8 years ago

Original comment by david.j....@googlemail.com on 31 May 2009 at 7:47

GoogleCodeExporter commented 8 years ago
Fixed by excluding unnecessary dependencies from log4j 1.2.15

Original comment by david.j....@googlemail.com on 31 May 2009 at 7:48