dji-sdk / DJI-Cloud-API-Demo

MIT License
134 stars 98 forks source link

Missing Lombok dependency in Maven configuration #59

Open 1plam opened 5 months ago

1plam commented 5 months ago

Problem

The current documentation recommends using Lombok but doesn't specify the required dependency. While the documentation mentions using Lombok, it doesn't explicitly include the dependency itself, which personally brought an error:

java: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid'

Example Dependency

Since an automatic dependency detection wasn't successful, I was required to search manually for the newest version and include it in the pom.xml file.

As a proposal, add the Lombok dependency to the Maven configuration file:

pom.xml

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.32</version>
</dependency>