Version 9 (modified by Ryan J Ollos, 7 years ago) (diff)

Refs #9958.

The trunk is a development version that works with Trac 0.11 and later. The code is thought to be stable, but please be ready to do some testing and report defects if you intend to install it on a production system. A tag will be created for version 2.0 when the code is known to be stable. Posting a note to #9958 about your experience using the plugin would be very appreciated.

Planned Enhancements

  • Work towards v2.0, improving documentation and fixing minor defects.
  • Render plantuml files from repository #7053.


  • 19-March-2012: License changed from GPL to BSD 3-Clause, which is the license used by Trac.

Render PlantUML Diagrams


PlantUML is a java utility that allows generation of different types of UML diagrams (sequence, activity, state, use cases, objects, ...) from a simple text description file.

This plugin allows the integration of PlantUML on Trac Wiki pages, dynamically generating and embedding the diagrams.


  1. Inside a wiki page:
    Alice -> Bob: Authentication Request
    Bob --> Alice: Authentication Response
    Alice -> Bob: Another authentication Request
    Alice <-- Bob: another authentication Response
    • should render:
  2. More information on the PlantUML language and different types of UML diagrams can be found in PlantUML Website


  1. Check dependencies:
    1. a valid Java runtime
    2. plantuml.jar: save it to the location that you'll specify in the configuration section /path/to/plantuml.jar.
      • $ [sudo] wget
        [sudo] is optional
      • Check version of PlantUML jar:
        $ cd /path/to/plantuml.jar
        $ java -jar plantuml.jar -version
    3. Graphviz: check if installed and working as required in graphvizdot.
      $ java -jar plantuml.jar -testdot
  2. Install plugin globally:
    • with easy_install:
      $ [sudo] easy_install
      [sudo] is optional
  3. Enable the plugin by updating TracIni file as follows:
    plantuml.* = enabled
  4. Configure the plugin in its own configuration section, by updating TracIni file as follows:
    plantuml_jar = /path/to/plantuml.jar
    java_bin = /path/to/java_bin (optional, if Java binary is not on the search path)
    • example plantuml_jar = /project-resources/trac/plugins
    • example java_bin = java assumes that the Java binary is on the search path.
  5. Restart web server on command line:
    $ [sudo] /etc/init.d/apache2 restart
  6. Test if plugin is working properly. If the plugin is installed correct, the example shown in the Usage section on this page should be displayed on the WikiMacros#PlantUML-macro page.

Bugs/Feature Requests

Existing bugs and feature requests for PlantUmlMacro are here.

If you have any issues, create a new ticket.

Source & Download

You can check out PlantUmlMacro from here using Subversion, or browse the source with Trac.

Download the zipped source from [download:plantumlmacro here].

Recent Changes

17025 by rjollos on 2018-01-28 11:38:22
TracPlantUml 2.3dev: Fix usemap attribute not prefixed with #

Patch by dries.decock@...

Fixes #13366.

16814 by rjollos on 2017-09-18 21:16:12
TracPlantUml 2.2: Tag version 2.2

Refs #13271.

16812 by rjollos on 2017-09-13 21:12:29
TracPlantUml 2.2.0dev: Update copyright year


Author: airadier
Maintainers: airadier, rjollos
Contributors: ebencheung
License: BSD 3-Clause

Attachments (1)

Download all attachments as: .zip