This maven
plugin allows generating Java
bindings for domain-specific languages built using the LEMS metalanguage. Such langugages are defined via collections of LEMS ComponentType
s.
This plugin builds Java classes automatically once the project is built with e.g. maven install
.
Add the snippet below to pom.xml
, substituting <mlName>
and <componentTypeDefs>
with relevant values for your LEMS language.
<plugin>
<dependencies>
<dependency>
<groupId>org.lemsml.lems-domogen-maven-plugin</groupId>
<artifactId>org.lemsml.lems-domogen-maven-plugin</artifactId>
<version>0.4</version>
</dependency>
</dependencies>
<groupId>org.lemsml.lems-domogen-maven-plugin</groupId>
<artifactId>org.lemsml.lems-domogen-maven-plugin</artifactId>
<version>0.4</version>
<configuration>
<mlName>myLang</mlName>
<componentTypeDefs>${project.basedir}/src/main/resources/myLang/MyLangLemsCompTypes.xml</componentTypeDefs>
</configuration>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>generateDoMoClasses</goal>
</goals>
</execution>
</executions>
</plugin>