-
Notifications
You must be signed in to change notification settings - Fork 0
Home
itakingiteasy edited this page May 19, 2012
·
4 revisions
Mouse PEG was successfully released on Maven Central Network. Now it is possible to add mousepeg runtime library into your maven project by merely adding following lines to pom.xml:
<dependency>
<groupId>se.romanredz.mouse</groupId>
<artifactId>mouse-runtime</artifactId>
<version>1.5.1</version>
</dependency>
use shade plugin to make an uber-jar:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
use mouse-maven-plugin to access mouse goals from maven:
<plugin>
<groupId>se.romanredz.mouse</groupId>
<artifactId>mouse-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>generate-peg-parser</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<grammar>src/main/peg/config.peg</grammar>
<parser>ConfigLexer</parser>
<semantics>ConfigLexerSemantics</semantics>
<package>jshbot.config.impl</package>
<directory>src/main/java/jshbot/config/impl</directory>
</configuration>
</execution>
</executions>
</plugin>
See also goals documentation