camel-kafka-connector icon indicating copy to clipboard operation
camel-kafka-connector copied to clipboard

build is not successful for version - 4.9.0-SNAPSHOT

Open Mounika-Reddy206 opened this issue 10 months ago • 5 comments

Hi,

I am trying to build the latest code which has version 4.9.0-SNAPSHOT in my local but its failing with below error. can you please help me resolving this issue.

camel-kafka-connector % mvn clean install -U [INFO] Scanning for projects... Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/apache/camel/camel-dependencies/4.9.0-SNAPSHOT/maven-metadata.xml Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/apache/camel/camel-dependencies/4.9.0-SNAPSHOT/camel-dependencies-4.9.0-SNAPSHOT.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.apache.camel.kafkaconnector:camel-kafka-connector-aggregator:4.9.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.camel:camel-dependencies:pom:4.9.0-SNAPSHOT (absent): Could not find artifact org.apache.camel:camel-dependencies:pom:4.9.0-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots/) and 'parent.relativePath' points at wrong local POM @ line 23, column 13 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project org.apache.camel.kafkaconnector:camel-kafka-connector-aggregator:4.9.0-SNAPSHOT (/Users/mounika.adinarayanareddygar/Desktop/Retina/camel-kafka-connector/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.apache.camel.kafkaconnector:camel-kafka-connector-aggregator:4.9.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.camel:camel-dependencies:pom:4.9.0-SNAPSHOT (absent): Could not find artifact org.apache.camel:camel-dependencies:pom:4.9.0-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots/) and 'parent.relativePath' points at wrong local POM @ line 23, column 13 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

Regards Mounika

Mounika-Reddy206 avatar Jan 16 '25 06:01 Mounika-Reddy206

try updating to latest code

davsclaus avatar Jan 16 '25 06:01 davsclaus

I tried with latest code, its failing with below error

The requested profile "" could not be activated because it does not exist. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:testCompile (default-testCompile) on project itests-common: Compilation failure: Compilation failure: [ERROR] /Users/mounika/Desktop/camel-kafka-connector/tests/itests-common/src/test/java/org/apache/camel/kafkaconnector/common/AbstractKafkaTest.java:[25,50] cannot find symbol [ERROR] symbol: class ContainerLocalKafkaService [ERROR] location: package org.apache.camel.test.infra.kafka.services [ERROR] /Users/mounika/Desktop/camel-kafka-connector/tests/itests-common/src/test/java/org/apache/camel/kafkaconnector/common/AbstractKafkaTest.java:[28,50] cannot find symbol [ERROR] symbol: class RemoteKafkaService [ERROR] location: package org.apache.camel.test.infra.kafka.services [ERROR] /Users/mounika/Desktop/camel-kafka-connector/tests/itests-common/src/test/java/org/apache/camel/kafkaconnector/common/AbstractKafkaTest.java:[29,50] cannot find symbol [ERROR] symbol: class StrimziService [ERROR] location: package org.apache.camel.test.infra.kafka.services [ERROR] -> [Help 1]

Mounika-Reddy206 avatar Jan 16 '25 08:01 Mounika-Reddy206

@Mounika-Reddy206 can you try to build the latest main branch ? Camel 4.10-SNAPSHOT is used there.

valdar avatar Jan 27 '25 08:01 valdar

@valdar same issue again the test compilation is failing.

Mounika-Reddy206 avatar Feb 03 '25 06:02 Mounika-Reddy206

@Mounika-Reddy206 I have fixed some some dependencies and tests in main for version 4.10.0-SNAPSHOT, could you please try again with latest main ?

If you encounter some problems pleas report the exact build command you used and the error log.

valdar avatar Feb 05 '25 08:02 valdar