smengcl commented on PR #6579: URL: https://github.com/apache/ozone/pull/6579#issuecomment-2078386235
fyi I hit `java: package net.jcip.annotations does not exist` with this when trying to run a test inside IntelliJ, despite having recompiled the project again and again. There might be a bug in IntelliJ IDEA 2024.1 that it is not able to resolve the transitive dependency symbols under some conditions: <img width="999" alt="Symptom" src="https://github.com/apache/ozone/assets/50227127/3ac4c06c-5352-4023-9556-a4167e914be0"> I was able to work around this with a explicit dependency declaration (and trigger [Load Maven Changes](https://www.jetbrains.com/help/idea/delegate-build-and-run-actions-to-maven.html#maven_reimport)): ```diff diff --git a/hadoop-ozone/client/pom.xml b/hadoop-ozone/client/pom.xml index a5a4364361..3c4f154090 100644 --- a/hadoop-ozone/client/pom.xml +++ b/hadoop-ozone/client/pom.xml @@ -53,6 +53,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> <type>test-jar</type> <scope>test</scope> </dependency> + <dependency> + <groupId>net.jcip</groupId> + <artifactId>jcip-annotations</artifactId> + <type>test-jar</type> + <scope>test</scope> + <version>1.0</version> + </dependency> <dependency> <groupId>org.apache.ozone</groupId> <artifactId>hdds-hadoop-dependency-test</artifactId> ``` Writing this down just in case anyone else hits this as well. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
