Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij and maven templating plugin: how to reference java-templates

I want to use the Templating Maven Plugin in my project, but I don't understand where to put my sources. The plugin docs specify:

${basedir}/src/main/java-templates

but Intellij does not recognize this as a sources folder, and therefore won't allow me to create classes in it. If I make it a sources folder manually, then I run into the issue that I can't reference my classes from the src/main/java folder.

Where should I put the classes to be fitered, or how do I configure Intellij to work with the Templating Plugin?

like image 714
MikaelF Avatar asked Nov 08 '22 16:11

MikaelF


1 Answers

CrazyCoder answered my question. This feature has just not been implemented yet in Intellij.

like image 120
MikaelF Avatar answered Nov 14 '22 20:11

MikaelF