My Zeebeworker is deprecated

Hello,

i’d like to know how can i fix the Error"Zeebeworker is deprecated" in IDEA, it’s all ok until i change some properties in pom.xml and application.properties. I think my change is ok, but the fact is that after reloading all the maven project.The Zeebeworker see like that.

Here is my pom.xml and application.properties
Pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>de.ostfalia.bips.ws22.camunda</groupId>
    <artifactId>BIPS_WS22</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.3</version>
    </parent>

    <dependencies>
        <dependency>
            <groupId>io.camunda</groupId>
            <artifactId>spring-zeebe-starter</artifactId>
            <version>8.1.0</version>
        </dependency>

        <!-- Database -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
            <version>2.7.2</version>
        </dependency>

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>8.0.19</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>3.1.0</version>
            </plugin>
        </plugins>
    </build>
</project>

application.properties:

zeebe.client.broker.gatewayAddress=127.0.0.1:26500
zeebe.client.security.plaintext=true

spring.datasource.url=jdbc:mysql://localhost:3306/bips_fs
spring.datasource.username=root
spring.datasource.password=wang123456

If anyone can help me to solve it, i would be very grateful
Bo

Hi @Bo_Wan. For more details. Please see here: Rename annotations · Issue #239 · camunda-community-hub/spring-zeebe · GitHub

Hope that helps

Greets
Zhi

1 Like

Hi Zhi, that works for me, thanks :smiley: