archetype-resources.model.pom.xml Maven / Gradle / Ivy
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <artifactId>${rootArtifactId}</artifactId> <groupId>${groupId}</groupId> <version>${version}</version> <relativePath>../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <groupId>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <name>${rootArtifactId} :: model</name> <packaging>jar</packaging> #set( $packageDir = $package.replace('.', '/') ) <build> <defaultGoal>install</defaultGoal> <plugins> <plugin> <groupId>com.dyuproject.protostuff</groupId> <artifactId>protostuff-maven-plugin</artifactId> <version>${protostuff.version}</version> <configuration> <protoModules> <protoModule> <source>src/main/resources/${packageDir}/model/model.proto</source> <outputDir>src/main/java</outputDir> <output>java_bean</output> <encoding>UTF-8</encoding> <options> <property> <name>generate_field_map</name> </property> <property> <name>separate_schema</name> </property> <property> <name>builder_pattern</name> </property> <property> <name>generate_helper_methods</name> </property> </options> </protoModule> </protoModules> </configuration> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>com.dyuproject.protostuff</groupId> <artifactId>protostuff-core</artifactId> </dependency> </dependencies> </project>