Using Maven (or ivy/gradle/sbt or similar) is probably the easiest way is to depend on MGen for java builds. Just add ‘mgen-javalib’ as a dependency to use generated code:

For the current release:

<dependency>
  <groupId>se.culvertsoft</groupId>
  <artifactId>mgen-javalib</artifactId>
  <version>0.2.5</version>
</dependency>

For snapshots:

<dependency>
  <groupId>se.culvertsoft</groupId>
  <artifactId>mgen-javalib</artifactId>
  <version>SNAPSHOT</version>
</dependency>

They are hosted on the following repository urls:

To see all the MGen components hosted there - check out oss.sonatype.org/#nexus-search;quick~mgen