/**
*/
@Path("/users")
public class UserService {
/**
*/
@GET
@Produces(MediaType.APPLICATION_JSON)
public List<User> getUsers() {
}
/**
*/
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public User createUser(User user) {
}
}
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>miredot</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<java jar="miredot-cli.jar" fork="true">
<arg value="-p" />
<arg value="${project.build.directory}/classes" />
<arg value="-o" />
<arg value="${project.build.directory}/miredot-output" />
</java>
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jnit</groupId>
<artifactId>miredot-cli</artifactId>
<version>1.3.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>