Login | Register
My pages Projects Community openCollabNet

maven-argo2modello-plugin
Project home

If you were registered and logged in, you could join this project.

Summary Maven 2 plugin to convert ArgoUML files to Modello model files
Categories design, construction
License Apache License
Owner(s) rastaman

This Java project aims at providing a Maven 2 plugin which convert ArgoUML UML models to Modello model files.

By combining ArgoUML and the Modello code generator, this plugin allow to generate SQL DDL files (databases structures), Java beans, XML reader and writer (for several APIs: JDOM, Xpp3, Stax [the preferred since it allow to maintain references of objects, which is useful for bidirectional associations]), XSD and DTD grammars from a UML model.

The plugin target the following softwares:

  • Modello (1.0.1) (+ unreleased patchs for supporting annotations and default imports. The plugin cannot function without these patchs applied!)
  • ArgoUML (0.28 - trunk)

Mission

This plugin convert UML model to Modello models at the process-sources phase.

Here is a sample usage:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
...
  <build>
    <plugins>
      <plugin>
        <groupId>com.ubikproducts.maven.plugins</groupId>
        <artifactId>maven-argo2modello-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-modello</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>generate-modello</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <sourceModel>src/main/models/users.uml</sourceModel>
          <destinationModel>src/main/models/users.mdo</destinationModel>
          <defaultImports>javax.persistence.*,javax.xml.bind.annotation.*</defaultImports>
        </configuration>
      </plugin>
...

Todos

The plugin should support the following features for the version 1.0 to be released:

  • inheritance
  • interfaces
  • methods and methods body
  • inplace of update of existing modello files
  • roundtrip editing (with the help of the modello-uml-plugin)