I tried to use the mapper based on https://docs.datastax.com/en/developer/java-driver/4.8/manual/mapper/config/
<plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>1.8</source> <!-- (or higher) --> <target>1.8</target> <!-- (or higher) --> <annotationProcessorPaths> <path> <groupId>com.datastax.oss</groupId> <artifactId>java-driver-mapper-processor</artifactId> <version>4.8.0</version> </path> </annotationProcessorPaths> </configuration> </plugin>
When I tried to build it using mvn install, it complained that it cannot find the related MapperBuilder. Annotation processing is not working for me.
I also tried adding the dependency
<dependency> <groupId>com.datastax.oss</groupId> <artifactId>java-driver-mapper-processor</artifactId> <version>${datastax.driver.version}</version> <scope>provided</scope> </dependency>
I can build it in Intellij with "Annotation Processing" enabled in the project but not able to build it using command line. The maven version used in Intellij and command line are the same (3.6.1)