WARNING {JavaFunctionBroker.addJavaAnnotationLibrary}: Customer is not providing java annotation files, they may not use the latest version of java library and maven plugin.
See original GitHub issuethis error pops during startup of a basic Java project that is reading an Reading an Event Hub
func tools mvn version
<java.version>11</java.version>
<azure.functions.maven.plugin.version>1.19.0</azure.functions.maven.plugin.version>
<azure.functions.java.library.version>2.0.1</azure.functions.java.library.version>
Full repro here: https://github.com/cicorias/azfunct-java-eventhubs
Using "func core tools version: 4.0.4704
java version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment Microsoft-25199 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Microsoft-25199 (build 11.0.12+7, mixed mode)
maven version
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: C:\g\bin\apache-maven-3.8.1-bin\apache-maven-3.8.1\bin\..
Java version: 11.0.13, vendor: Microsoft, runtime: C:\Program Files\Microsoft\jdk-11.0.13.8-hotspot
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Log file
For detailed output, run func with --verbose flag.
[2022-08-17T18:25:11.335Z] Host lock lease acquired by instance ID '00000000000000000000000040E3700A'.
[2022-08-17T18:25:11.525Z] Worker process started and initialized.
[2022-08-17T18:25:11.552Z] [WARNING] {JavaFunctionBroker.addJavaAnnotationLibrary}: Customer is not providing java annotation files, they may not use the latest version of java library and maven plugin.
[2022-08-17T18:25:11.555Z] [WARNING] {JavaFunctionBroker.addJavaAnnotationLibrary}: Customer is not providing java annotation files, they may not use the latest version of java library and maven plugin.
[2022-08-17T18:26:39.147Z] Executing 'Functions.EventHubReceiver' (Reason='(null)', Id=4c3e8a26-decc-40cc-9276-96a2b4c48d33)
[2022-08-17T18:26:39.151Z] Trigger Details: PartionId: 1, Offset: 0-0, EnqueueTimeUtc: 2022-08-17T18:26:38.4320000+00:00-2022-08-17T18:26:38.4320000+00:00, SequenceNumber: 0-0, Count: 1
[2022-08-17T18:26:58.351Z] got a message
[2022-08-17T18:27:00.733Z] Function "EventHubReceiver" (Id: 4c3e8a26-decc-40cc-9276-96a2b4c48d33) invoked by Java Worker
[2022-08-17T18:27:00.789Z] Executed 'Functions.EventHubReceiver' (Succeeded, Id=4c3e8a26-decc-40cc-9276-96a2b4c48d33, Duration=21677ms)
[2022-08-17T18:27:04.975Z] Executing 'Functions.EventHubReceiver' (Reason='(null)', Id=60e7b992-39d4-4d58-ac0f-e112df299dbe)
[2022-08-17T18:27:04.981Z] Trigger Details: PartionId: 0, Offset: 0-0, EnqueueTimeUtc: 2022-08-17T18:27:04.3240000+00:00-2022-08-17T18:27:04.3240000+00:00, SequenceNumber: 0-0, Count: 1
[2022-08-17T18:27:09.151Z] got a message
[2022-08-17T18:27:09.157Z] Function "EventHubReceiver" (Id: 60e7b992-39d4-4d58-ac0f-e112df299dbe) invoked by Java Worker
[2022-08-17T18:27:09.160Z] Executed 'Functions.EventHubReceiver' (Succeeded, Id=60e7b992-39d4-4d58-ac0f-e112df299dbe, Duration=4186ms)
[2022-08-17T18:27:23.598Z] Listening for transport dt_socket at address: 5005
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
The annotations not working in maven project
The annotations not working in maven project ... First src/test/java/com.selenium.test this is not a correct package src/test/java/com/selenium/ ...
Read more >Troubleshoot dependency version conflicts - Azure
An overview of how to troubleshoot dependency version conflicts related to using the Azure SDK for Java.
Read more >Maven Plugin Tools Java Annotations – Dependency ...
Apache Maven · <dependency> · <groupId>org.apache.maven.plugin-tools</groupId> · <artifactId>maven-plugin-annotations</artifactId> · <version>3.9.0< ...
Read more >Java developer reference for Azure Functions
This guide contains detailed information to help you succeed developing Azure Functions using Java. As a Java developer, if you're new to ...
Read more >JSR 308 Explained: Java Type Annotations
Annotations were introduced into Java in Java SE 5, providing a form of syntactic metadata that can be added to program constructs. Annotations...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Has any solution been provided on this
check out https://blogs.perficient.com/2019/05/15/the-java-commons-annotations-was-removed-in-jdk-11/