amitbatajoo / opensocial-java-client

Automatically exported from code.google.com/p/opensocial-java-client
Apache License 2.0
0 stars 0 forks source link

Maven pom.xml for opensocial-java-client project #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

I am submitting a basic pom.xml file to the project.

Feel free to edit :-)

Original issue reported on code.google.com by sean%sea...@gtempaccount.com on 18 Nov 2008 at 2:38

Attachments:

GoogleCodeExporter commented 9 years ago

Attaching pom.xml version 2.0

Original comment by sean%sea...@gtempaccount.com on 18 Nov 2008 at 2:47

Attachments:

GoogleCodeExporter commented 9 years ago
This would be excellent if it got pushed through and opensocial was posted on a
maven2 repository.

Original comment by Carmelo....@gmail.com on 27 Apr 2009 at 1:20

GoogleCodeExporter commented 9 years ago
This one works better for me with Java 5 on Mac OS X 10.5.8   Put it in the java
folder, and mvn clean install.  All tests pass!

Original comment by yottz...@gmail.com on 17 Sep 2009 at 6:45

Attachments:

GoogleCodeExporter commented 9 years ago
I have tried the POM, with actual trunk. 1 out of 11 test failur, 
org.opensocial.client.OpenSocialClientTest.txt

anyway, would be nice to have pom in the SCM :)

Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.036 sec <<< 
FAILURE!
testEmptyUserId(org.opensocial.client.OpenSocialClientTest)  Time elapsed: 
0.023 sec
 <<< ERROR!
java.lang.Exception: Unexpected exception,
expected<org.opensocial.client.OpenSocialRequestException> but
was<java.lang.NullPointerException>
        at
org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.j
ava:29)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73
)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46
)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
        at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(Abstra
ctDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirec
toryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBoote
r.java:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.lang.NullPointerException
        at org.opensocial.client.OpenSocialBatch.send(OpenSocialBatch.java:99)
        at org.opensocial.client.OpenSocialClient.fetchPeople(OpenSocialClient.java:623)
        at org.opensocial.client.OpenSocialClient.fetchPerson(OpenSocialClient.java:299)
        at org.opensocial.client.OpenSocialClient.fetchPerson(OpenSocialClient.java:293)
        at
org.opensocial.client.OpenSocialClientTest.testEmptyUserId(OpenSocialClientTest.
java:89)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java
:44)
        at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
15)
        at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:4
1)
        at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20
)
        at
org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.j
ava:22)
        ... 20 more

Original comment by ildella on 28 Jan 2010 at 11:37

GoogleCodeExporter commented 9 years ago
Hello,

I've attached the patch for building project with maven. Currently, the test 
failed, so I have to skip test: "mvn install -Dmaven.test.skip=true". I checked 
with ant build, the test "ant test" failed, too.

Original comment by hoatle...@gmail.com on 25 Apr 2011 at 9:44

Attachments:

GoogleCodeExporter commented 9 years ago
The patch above should indicate <scope>test</scope> for easymock artifact.

Original comment by hoatle...@gmail.com on 25 Apr 2011 at 9:47