Menu

#28 mvn jamon:translate from command-line doesn't read config

open
5
2011-01-20
2011-01-12
Matt Raible
No

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;

Discussion

  • Ian Robertson

    Ian Robertson - 2011-01-20
    • assigned_to: jaysachs --> iroberts
     
  • Ian Robertson

    Ian Robertson - 2011-01-26

    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>

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB