This export creates an HTML site from the Enterprise Architect model stored in an EAP file. This is the same report that can also be created using the Enterprise Architect's GUI. But the plugin allows to integrate the generation process into the project's build process.
Description
Add the following to you POM to integrate the plugin into your Maven build process to only generate the HTML site for you Enterprise Architect model:
<build>
<plugins>
<plugin>
<groupId>de.smartics.maven.plugin</groupId>
<artifactId>smartics-ea-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<id>ea-export</id>
<goals>
<goal>export</goal>
</goals>
<phase>pre-site</phase>
<configuration>
<generateHtmlSite>true</generateHtmlSite>
<eaProjectRepositoryFile>path/to/your/model.eap</eaProjectRepositoryFile>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>de.smartics.sparxsystems</groupId>
<artifactId>eaapi</artifactId>
<version>11.1.1112</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Replace the content of the element eaProjectRepositoryFile
with the actual path to your EAP file.
JAR provided by Enterprise Architect
We are not allowed to publish the JAR required to access the Enterprise Architect. Therefore you have to provide this JAR file as a dependency in your configuration by yourself.
This are the artifact coordinates we have chosen:
<groupId>de.smartics.sparxsystems</groupId>
<artifactId>eaapi</artifactId>
<version>11.1.1112</version>
Your coordinates should differ and you are free to name them any way as long as you add the artifact to the plugin's dependencies as shown above.
Also note that the version number used above is the version the plugin has been compiled with. Since there is no version information in the JAR we chosed the version of the Enterprise Architect the JAR is bundled with. It is very likely that other versions will also be compatible with this plugin. So you are probably not forced to use this exact version.