Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.46 KB

README.md

File metadata and controls

41 lines (33 loc) · 1.46 KB

Generation of domain classes for LEMS-based languages

This maven plugin allows generating Java bindings for domain-specific languages built using the LEMS metalanguage. Such langugages are defined via collections of LEMS ComponentTypes.

This plugin builds Java classes automatically once the project is built with e.g. maven install.

Installation

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>

Build Status

DOI