Greenhouse Android build fails
Hi,
I'm trying to run the Greenhouse Android (https://github.com/SpringSource/greenhouse-android) project locally.
I'm following the README step-by-step. When I get to "mvn clean install" the build fails. As far as I can see, this project has not been updated to use the new structure of Spring Social or am I missing something? Are there any plans to update the Android project in the near future?
When I run "mvn clean install" I get the following response:
Code:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/connect/GreenhouseApiAdapter.java:[18,33] cannot find symbol
symbol : class BadCredentialsException
location: package org.springframework.social
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[28,40] cannot find symbol
symbol : class AbstractOAuth1ApiTemplate
location: package org.springframework.social.oauth1
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[35,40] cannot find symbol
symbol: class AbstractOAuth1ApiTemplate
public class GreenhouseTemplate extends AbstractOAuth1ApiTemplate implements Greenhouse {
/home/heinrich/dev/samples/greenhouse-android/src/com/springsource/greenhouse/AbstractGreenhouseActivity.java:[104,54] cannot find symbol
symbol : method removeConnectionsToProvider(java.lang.String)
location: interface org.springframework.social.connect.ConnectionRepository
/home/heinrich/dev/samples/greenhouse-android/src/com/springsource/greenhouse/MainApplication.java:[103,34] cannot find symbol
symbol : method findPrimaryConnectionToApi(java.lang.Class<org.springframework.social.greenhouse.api.Greenhouse>)
location: interface org.springframework.social.connect.ConnectionRepository
/home/heinrich/dev/samples/greenhouse-android/src/com/springsource/greenhouse/AbstractGreenhouseListActivity.java:[104,54] cannot find symbol
symbol : method removeConnectionsToProvider(java.lang.String)
location: interface org.springframework.social.connect.ConnectionRepository
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/connect/GreenhouseServiceProvider.java:[41,9] incompatible types
found : org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
required: org.springframework.social.greenhouse.api.Greenhouse
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/connect/GreenhouseApiAdapter.java:[35,11] cannot find symbol
symbol : class BadCredentialsException
location: class org.springframework.social.greenhouse.connect.GreenhouseApiAdapter
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[35,7] org.springframework.social.greenhouse.api.impl.GreenhouseTemplate is not abstract and does not override abstract method isAuthorizedForUser() in org.springframework.social.greenhouse.api.Greenhouse
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[58,2] cannot find symbol
symbol : method getRestTemplate()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[81,45] cannot find symbol
symbol : method getRestTemplate()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[97,41] cannot find symbol
symbol : method getRestTemplate()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[97,60] cannot find symbol
symbol : method isAuthorizedForUser()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[97,24] internal error; cannot instantiate UserTemplate(org.springframework.web.client.RestTemplate,boolean,java.lang.String) at org.springframework.social.greenhouse.api.impl.UserTemplate to ()
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[98,43] cannot find symbol
symbol : method getRestTemplate()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[98,62] cannot find symbol
symbol : method isAuthorizedForUser()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[98,25] internal error; cannot instantiate EventTemplate(org.springframework.web.client.RestTemplate,boolean,java.lang.String) at org.springframework.social.greenhouse.api.impl.EventTemplate to ()
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[99,47] cannot find symbol
symbol : method getRestTemplate()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[99,66] cannot find symbol
symbol : method isAuthorizedForUser()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[99,27] internal error; cannot instantiate SessionTemplate(org.springframework.web.client.RestTemplate,boolean,java.lang.String) at org.springframework.social.greenhouse.api.impl.SessionTemplate to ()
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[100,43] cannot find symbol
symbol : method getRestTemplate()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[100,62] cannot find symbol
symbol : method isAuthorizedForUser()
location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
/home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[100,25] internal error; cannot instantiate TweetTemplate(org.springframework.web.client.RestTemplate,boolean,java.lang.String) at org.springframework.social.greenhouse.api.impl.TweetTemplate to ()
/home/heinrich/dev/samples/greenhouse-android/src/com/springsource/greenhouse/MainActivity.java:[87,29] cannot find symbol
symbol : method findPrimaryConnectionToApi(java.lang.Class<org.springframework.social.greenhouse.api.Greenhouse>)
location: interface org.springframework.social.connect.ConnectionRepository
Thanks,
Heinrich