func new is not working for java
See original GitHub issueProbably, Java looks not supported for CoreTools, however, the experience looks misleading.
a$ func init
Select a number for worker runtime:
1. dotnet
2. dotnet (isolated process)
3. node
4. python
5. java
6. powershell
7. custom
Choose option: 5
java
Writing .gitignore
Writing host.json
Writing local.settings.json
Writing /home/ushio/Code/Project/Lima/CoreTools/java/.vscode/extensions.json
$ func new
Select a number for language:Select a number for template:Worker runtime 'java' is not a valid worker for a template.
If it is not available, we can cross out the 5. java. For java, we usually, maven
plugin.
func init
equivalent.
$ mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype -DjavaVersion=8
func new
equivalent.
$ mvn azure-functions:add
[INFO] Step 2 of 4: Select function template
Choose from below options as template for new function
0. HttpTrigger
1. BlobTrigger
2. QueueTrigger
3. TimerTrigger
4. EventGridTrigger
5. EventHubTrigger
6. CosmosDBTrigger
7. ServiceBusQueueTrigger
8. ServiceBusTopicTrigger
It also doesn’t include Kafka Trigger
it is on going, however, I don’t know the ETA of RabbitMQ. RabbitMQ has separate repo.
FYI: https://github.com/microsoft/azure-maven-plugins/issues/1423
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
func new not working for JavaScript app · Issue #1700
When the core tools tries to download the extension bundle for the first time, the download is only partially successful. Putting the core...
Read more >Azure Function in Java does not work locally
I started receiving this error after installing the latest versions of IDEA IntelliJ w/ Azure Toolkit for IntelliJ plugin, & Azure Core Tools...
Read more >Create a Java function in Azure using Visual Studio Code
Learn how to create a Java function, then publish the local project to serverless hosting in Azure Functions using the Azure Functions ......
Read more >How to run Java in an Azure Function | Azure Tips & Tricks
In this edition of Azure Tips and Tricks, learn how to run Java in an Azure Function. For more tips and tricks, ...
Read more >AWS Lambda function logging in Java
This page describes how to view Lambda function metrics using Amazon CloudWatch for the Java runtime.
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
Looks good. If we release the next version, it looks closed.
https://github.com/Azure/azure-functions-core-tools/commit/177d7e8163a075443b6a0e93baf78e6480e489c3
closing this as dup