spring-data-couchbase compilation error

Afternoon All,

I am attempting to build the project via maven and I am getting compilation errors from it. Any ideas?

[INFO] Spring Data Couchbase ............................. FAILURE [1.137s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.682s
[INFO] Finished at: Wed Aug 14 13:51:22 EDT 2013
[INFO] Final Memory: 100M/973M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project spring-data-couchbase: Compilation failure: Compilation failure:
[ERROR] /home/me/src/cbe-java/cbe/spring-data-couchbase/src/main/java/org/springframework/data/couchbase/core/convert/MappingCouchbaseConverter.java:[116,84] incompatible types; no instance(s) of type variable(s) E exist so that org.springframework.data.mapping.model.BeanWrapper<E,R> conforms to org.springframework.data.mapping.model.BeanWrapper<org.springframework.data.couchbase.core.mapping.CouchbasePersistentEntity<R>,R>
[ERROR] found   : <E>org.springframework.data.mapping.model.BeanWrapper<E,R>
[ERROR] required: org.springframework.data.mapping.model.BeanWrapper<org.springframework.data.couchbase.core.mapping.CouchbasePersistentEntity<R>,R>
[ERROR] /home/me/src/cbe-java/cbe/spring-data-couchbase/src/main/java/org/springframework/data/couchbase/core/convert/MappingCouchbaseConverter.java:[248,94] incompatible types; no instance(s) of type variable(s) E exist so that org.springframework.data.mapping.model.BeanWrapper<E,java.lang.Object> conforms to org.springframework.data.mapping.model.BeanWrapper<org.springframework.data.couchbase.core.mapping.CouchbasePersistentEntity<java.lang.Object>,java.lang.Object>
[ERROR] found   : <E>org.springframework.data.mapping.model.BeanWrapper<E,java.lang.Object>
[ERROR] required: org.springframework.data.mapping.model.BeanWrapper<org.springframework.data.couchbase.core.mapping.CouchbasePersistentEntity<java.lang.Object>,java.lang.Object>
[ERROR] /home/me/src/cbe-java/cbe/spring-data-couchbase/src/main/java/org/springframework/data/couchbase/repository/support/MappingCouchbaseEntityInformation.java:[66,37] invalid inferred types for E; inferred type does not conform to declared bound(s)
[ERROR] inferred: org.springframework.data.mapping.PersistentEntity<T,?>
[ERROR] bound(s): org.springframework.data.mapping.PersistentEntity<T,?>
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :spring-data-couchbase

2 Answers

« Back to question.

Do you have other spring dependencies that can override dependencies?

Also, sent you a PM regarding non-public info!

« Back to question.

Hi!

Can you please post your repository and entity code? Also make sure to use the latest master on the springsource repo!

With the code I'm sure I can help :)