microsoft / microsoft/azure-tools-for-java

Importing Azure function into IntelliJ via Maven results in broken state project

Open
#6,520 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Module: Azure Functions Tool: IntelliJ Type: Bug
Dominant language
Java
Stars
262
Forks
185
Avg merge
2d 21h
Merged PRs (30d)
1

Description

Transfer from https://github.com/JetBrains/azure-tools-for-intellij/issues/578 reported by @alexandrunechifor.


Importing a Maven(Java) azure function generated with IntelliJ into another instance of intelliJ results in a broken state for the imported project as the function module is not found in run configurations(error: please specify a module).

Steps to reproduce
1)generate an Azure functions project with IntelliJ
2)remove .idea and .iml files - this often happens when committing to git - not everyone is using IntelliJ and these files should not be relevant when someone else tries to import the project, even in another instance of IntelliJ
3) import project in IntelliJ as maven project and experience the following results:

  • project cannot be built/run after import from IntelliJ
  • maven cannot find properties definitions
  • "module" field is not present and cannot be added when trying to add an Azure Function Run configuration

Being able to import an Azure Functions project independently of the existence of .idea and .iml files is crucial for collaborative development for many teams.

Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by generating an Azure Functions Java project, removing the .idea and .iml files, and importing it as a Maven project in IntelliJ. Inspect the project import and Azure Function run-configuration flow, including Maven property resolution. Done means the imported project builds and runs, Maven properties resolve, and an Azure Function run configuration can select its module without those files.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, java
Domain
build-system, cloud, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.