記述間違っとるpomもらってハマったわ。
slim3-genが、どうも定義している .apt_generated 以外に、target/generated-sources/apt という謎のフォルダにもdaoのメタ情報クラス吐き出してて、同じクラスを二重に定義してるよ〜と怒られる。
覚えのない謎のソースフォルダ「target/generated-sources/apt」なんやこれー。
eclipse:eclipse で必ず .classpathにこのソースフォルダできるからなんだろーって思って ググったら、apt-maven-plugin が吐き出すらしくて、pomをよくよく見たら、
<artifactId>apt-maven-plugin</artifactId> <configuration> <outputDirectory>${generated.src}</outputDirectory>
なんてこった!ちがうぜ!outputDirectoryじゃないぜ!
以下に修正して無事解決。
<artifactId>apt-maven-plugin</artifactId> <configuration> <sourceOutputDirectory>${generated.src}</sourceOutputDirectory>