Changing JamonMojo to have default-values seems to help:
/**
* @parameter default-value="${project.build.sourceDirectory}"
*/
private File templateSourceDir;
/**
* @parameter default-value="${project.build.outputDirectory}"
*/
private File templateOutputDir;
Anonymous
It should be enough to just move the <configuration> block in your pom.xml from the <execution> section up to the <plugin> section. In other words, instead of:
<plugin>
<groupId>org.jamon</groupId>
<artifactId>jamon-maven-plugin</artifactId>
<version>2.3.2</version>
<executions>
<execution>
<configuration>
<templateSourceDir>src/main/java</templateSourceDir>
<templateOutputDir>target/generated-sources/jamon</templateOutputDir>
</configuration>
<phase>generate-sources</phase>
<goals>
<goal>translate</goal>
</goals>
</execution>
</executions>
</plugin>
do:
<plugin>
<groupId>org.jamon</groupId>
<artifactId>jamon-maven-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<templateSourceDir>src/main/java</templateSourceDir>
<templateOutputDir>target/generated-sources/jamon</templateOutputDir>
</configuration>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>translate</goal>
</goals>
</execution>
</executions>
</plugin>