Direkt zum Hauptbereich

Simple FMPP Maven Mojo Plugin Documentation

I like to use the FMPP Maven Mojo, but I have not found any documentation about this maven-plugin, I summarize in this blog the basic configuration of this plugin.

About the FMPP Maven Mojo

First a copy-paste description from the site/generate-mojo.html file of the original plugin.

Full name 

com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin:1.0:generate

Description

Generates artifacts as configured. The output is placed in configured output directory.

Attributes

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: generate-sources.

Full name

com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin:1.0:generate

Required Parameters

NameTypeSinceDescription
cfgFileFile1.0Location of the FreeMarker config file.
Default value is: src/main/resources/fmpp/config.fmpp.
outputDirectoryFile-Location of the output files.
Default value is: ${project.build.directory}/generated-sources/fmpp/.
templateDirectoryFile1.0Location of the FreeMarker template files.
Default value is: src/main/resources/fmpp/templates/.

Parameter Details

cfgFile:

Location of the FreeMarker config file.
  • Type: java.io.File
  • Since: 1.0
  • Required: Yes
  • Default: src/main/resources/fmpp/config.fmpp

outputDirectory:

Location of the output files.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/generated-sources/fmpp/

templateDirectory:

Location of the FreeMarker template files.
  • Type: java.io.File
  • Since: 1.0
  • Required: Yes
  • Default: src/main/resources/fmpp/templates/

Examples

Some examples using the fmpp-maven-plugin

Example 1

Let say you have a fmpp configuration file in src/main/resources/fmpp/config.fmpp. The templates files are located in the directory src/main/resources/fmpp/templates. Finally the generated output files shall go in the target directory under generated-sources/fmpp.

The directory layout for this example:

+
|- pom.xml
|- src
|  |
|  +- main
|     |
|     +- resources  
|        |
|        + fmpp
|          |
|          +- config.fmpp
|          +- templates
|             |
|             +- ....
|- target
|  |
|  +- generated-sources 
|     |
|     + fmpp
|       |
|       +- ....

The plugin defintion


...
 <plugin>
  <groupId>com.googlecode.fmpp-maven-plugin</groupId>
  <artifactId>fmpp-maven-plugin</artifactId>
  <version>1.0</version>
  <dependencies>
    <dependency>
      <groupId>net.sourceforge.fmpp</groupId>
      <artifactId>fmpp</artifactId>
      <version>0.9.15</version>
    </dependency>
  </dependencies>
  <configuration>
   <cfgFile>src/main/resources/fmpp/config.fmpp</cfgFile>
   <templateDirectory>src/main/resources/fmpp/templates</templateDirectory>
   <outputDirectory>${project.build.directory}/generated-sources/fmpp</outputDirectory>
  </configuration>
  <executions>
    <execution>
     <phase>generate-sources</phase>
     <goals>
      <goal>generate</goal>
     </goals>
    </execution>
  </executions>
 </plugin>
...

Note: The explicit dependency definition using fmpp version 0.9.15, per default an older version is used missing eg JSON data loader.

Beliebte Posts aus diesem Blog

Using NikSoftware in GIMP

Recently I bought NikSoftware Filters, like Color Efex, or Silver Efex. Usually I use them from Lightroom4, and that’s okay for me.

Now I don’t own Photoshop, but I have installed Gimp 2.8.4, and from time to time I use various Gimp filters like G’MIC, or National Geographic.

But I was not able to use the NikSoftware Filter from Gimp as NikSoftware is shipped as Standalone-Executables, and as Photoshop-Plugins, but not as Gimp-Plugins.

Now there is a Gimp Plugin called PSPI which stands for Photoshop-Plugin.

I gave it try: I installed PSPI and registered the directory of the NikSoftware 32bit plugins. I even was able to invoke the Color Efex Pro 4, and it opened, but the image shown by Color Efex Pro 4 was corrupted.

So I gave up, and forgot about using NikSoftware Filters from Gimp, as I was quite happy using Lightroom and NikSoftware.

But as another user on Google+ asked about using NikSoftware from Gimp, I thought about it again, and then I found a nice Gimp plugin called ShellOut

Schmetterlingswanderung

Schmetterlingswanderung
Letzten Sonntag konnte ich an einer Schmetterlingswanderung in Stettenhof im Bezirk Tulln teilnehmen.


Die Führung wurde vom wagrampur veranstaltet. Die Wanderung selbst leitete Andreas Pospisil . Sein unglaubliches Wissen und seine Begeisterung für Schmetterlinge war ansteckend und beeindruckend.


Es war eine interessante und informative und Wanderung. Ich werde sicherlich an weitere Veranstaltungen von wagrampur teilnehmen.

Still ist es hier im Zimmer

Still ist es hier im Zimmer, a photo by bernihuber123 on Flickr. Bei einem Besuch in meinem Elternhaus...

Die Sonne kam nur vom Fenster und hüllte das Zimmer in ein mildes Licht.
Der Sessel lag in einem Halblicht nur leicht von der Sonne beschienen.

Das Foto habe ich dann noch in Schwarz/Weiß mit Sepiatönung "behandelt".