I'm using Selma to map pojo with Lombok 's annotation. Unfortunatly, it doesn't seems to work out of the box :
Has anyone been able to reconfigure the annotation processor to use both tool in the same maven module ?
My sample is here : https://github.com/pomverte/selma-test
I was able to generate the Lombok + Selma classes with:
In your pom.xml:
<plugins>
<build>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<defaultOutputDirectory>
${project.build.directory}/generated-sources/selma
</defaultOutputDirectory>
<processors>
<processor>lombok.launch.AnnotationProcessorHider$AnnotationProcessor</processor>
<processor>fr.xebia.extras.selma.codegen.MapperProcessor</processor>
</processors>
</configuration>
<executions>
<execution>
<id>process</id>
<phase>generate-sources</phase>
<goals>
<goal>process</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>fr.xebia.extras</groupId>
<artifactId>selma-processor</artifactId>
<version>0.15</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
then run: mvn generate-sources
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.