Open javierTQ opened 7 years ago
I am having exactly the same issue when I compile using maven.
I am using Jdk 1.8. Will it work? Are there any other dependencies?
Hi @javierTQ , the issue should be fixed now. Plz pull the latest code & try to compile.
Plz let us know in case of issues.
I have tried to compile the project with the command mvn clean install -DskiptTests and it seems there are several missing classes. Below is the output of trying to compile the project. Where I can download the missing files? Thanks.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building kafka-connect-hana 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ kafka-connect-hana ---
[INFO] Deleting C:\kafka-connect-hana-master\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kafka-connect-hana ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\kafka-connect-hana-master\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ kafka-connect-hana ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-scala-plugin:2.10.1:compile (default) @ kafka-connect-hana ---
[INFO] Checking for multiple versions of scala
[INFO] Compiling 7 source files to C:\kafka-connect-hana-master\target\classes
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\BulkTableQuerier.scala:3: error: object client is not a member of package com.sap.kafka
[WARNING] import com.sap.kafka.client.hana.HANAJdbcClient
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\BulkTableQuerier.scala:4: error: object config is not a member of package com.sap.kafka.connect
[WARNING] import com.sap.kafka.connect.config.BaseConfig
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\BulkTableQuerier.scala:5: error: object SourceConnectorConstants is not a member of package com.sap.kafka.connect.source
[WARNING] import com.sap.kafka.connect.source.SourceConnectorConstants
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\BulkTableQuerier.scala:13: error: not found: type BaseConfig
[WARNING] config: BaseConfig, jdbcClient: Option[HANAJdbcClient])
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\BulkTableQuerier.scala:13: error: not found: type HANAJdbcClient
[WARNING] config: BaseConfig, jdbcClient: Option[HANAJdbcClient])
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:4: error: object config is not a member of package com.sap.kafka.connect
[WARNING] import com.sap.kafka.connect.config.BaseConfig
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:18: error: not found: type BaseConfig
[WARNING] topic: String, config: BaseConfig,
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:3: error: object client is not a member of package com.sap.kafka
[WARNING] import com.sap.kafka.client.hana.HANAJdbcClient
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:19: error: not found: type HANAJdbcClient
[WARNING] var jdbcClient: Option[HANAJdbcClient])
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\BulkTableQuerier.scala:33: error: not found: value SourceConnectorConstants
[WARNING] partition = Map(SourceConnectorConstants.TABLE_NAME_KEY -> tableName)
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\IncrColTableQuerier.scala:3: error: object client is not a member of package com.sap.kafka
[WARNING] import com.sap.kafka.client.hana.HANAJdbcClient
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\IncrColTableQuerier.scala:4: error: object config is not a member of package com.sap.kafka.connect
[WARNING] import com.sap.kafka.connect.config.BaseConfig
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\IncrColTableQuerier.scala:5: error: object SourceConnectorConstants is not a member of package com.sap.kafka.connect.source
[WARNING] import com.sap.kafka.connect.source.SourceConnectorConstants
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\IncrColTableQuerier.scala:14: error: not found: type BaseConfig
[WARNING] config: BaseConfig, jdbcClient: Option[HANAJdbcClient])
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\IncrColTableQuerier.scala:14: error: not found: type HANAJdbcClient
[WARNING] config: BaseConfig, jdbcClient: Option[HANAJdbcClient])
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\IncrColTableQuerier.scala:64: error: not found: value SourceConnectorConstants
[WARNING] partition = Map(SourceConnectorConstants.TABLE_NAME_KEY -> partitionName)
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:61: error: not found: type HANAJdbcClient
[WARNING] protected def getOrCreateJdbcClient(): Option[HANAJdbcClient] = {
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:5: error: object config is not a member of package com.sap.kafka.connect
[WARNING] import com.sap.kafka.connect.config.hana.HANAConfig
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:7: error: object hana is not a member of package com.sap.kafka.utils
[WARNING] import com.sap.kafka.utils.hana.HANAJdbcTypeConverter
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:67: error: not found: type HANAConfig
[WARNING] case hanaConfig: HANAConfig => Some(HANAJdbcClient(hanaConfig))
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:67: error: not found: value HANAJdbcClient
[WARNING] case hanaConfig: HANAConfig => Some(HANAJdbcClient(hanaConfig))
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:73: error: not found: type HANAJdbcClient
[WARNING] if (getOrCreateJdbcClient().get.isInstanceOf[HANAJdbcClient]) {
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TableQuerier.scala:75: error: not found: value HANAJdbcTypeConverter
[WARNING] HANAJdbcTypeConverter.convertHANAMetadataToSchema(tableName, metadata)
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TimestampIncrementingOffset.scala:5: error: object client is not a member of package com.sap.kafka
[WARNING] import com.sap.kafka.client.hana.HANAConfigMissingException
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TimestampIncrementingOffset.scala:6: error: object ExecuteWithExceptions is not a member of package com.sap.kafka.utils
[WARNING] import com.sap.kafka.utils.ExecuteWithExceptions
[WARNING] ^
[WARNING] C:\kafka-connect-hana-master\src\main\scala\com\sap\kafka\connect\source\querier\TimestampIncrementingOffset.scala:43: error: not found: value ExecuteWithExceptions
[WARNING] ExecuteWithExceptions[TimestampIncrementingOffset, Exception, HANAConfigMissingException] (
[WARNING] ^
[WARNING] 26 errors found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.595 s
[INFO] Finished at: 2017-02-28T14:42:25+01:00
[INFO] Final Memory: 12M/225M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.scala-tools:maven-scala-plugin:2.10.1:compile (default) on project kafka-connect-hana: command line returned non-zero value:1 -> [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