Camunda Forms are not deployed using deployment-resource-pattern from springboot

I follow this post Form Failure - No Camunda Form Definition was found - Camunda Platform 7 Topics / Cockpit / Tasklist / Admin & Web C7 - Camunda Platform Forum

and try with application.yml below

camunda.bpm:
  deployment-resource-pattern:
    - classpath*:**/*.bpmn
    - classpath*:**/*.form

A form is created and validated below in Camunda Modeler v5.9.0 and stored in src/main/resources, but it is not deployed when I start the application locally. I am using @SpringBootApplication without @EnableProcessApplication

{
  "components": [
    {
      "label": "Checkbox",
      "type": "checkbox",
      "id": "Field_04ephhg",
      "key": "field_08krjkb"
    }
  ],
  "type": "default",
  "id": "form_demo",
  "exporter": {
    "name": "Camunda Modeler",
    "version": "5.9.0"
  },
  "executionPlatform": "Camunda Platform",
  "executionPlatformVersion": "7.18.0",
  "schemaVersion": 7
}

Any advice why the form is not loaded?

Camunda version 7.18.0
Springboot version: 2.7.11

dependencies installed below

<dependency>
    <groupId>org.camunda.bpm.springboot</groupId>
    <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</dependency>
<dependency>
    <groupId>org.camunda.bpm.springboot</groupId>
    <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
</dependency>
    

Edit: I cannot see the form deployed in camunda as well from cockpit ( more > deployments)

Edit2: If I can manually deployed the form by Camunda Modeler, I can see the form in TaskList.

It turns out I specify a resource properties in my maven project. I forgot to include the .form in it. So the fix is include form below in the pom.xml

<project>
  ...
  <name>My Resources Plugin Practice Project</name>
  ...
  <build>
    ...
    <resources>
      <resource>
        <directory>[your directory]</directory>
        <includes>
          <include>**/*.form</include>
        </includes>
      </resource>
      ...
    </resources>
    ...
  </build>
  ...
</project>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.