fix and simplify poms for release
Project: http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/commit/244683c1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/tree/244683c1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/diff/244683c1 Branch: refs/heads/0.2-incubating-rc1 Commit: 244683c18fff246227492f7a8d8263feb19304fe Parents: 6b4de07 Author: Steve Blackmon <sblack...@apache.org> Authored: Tue Apr 28 01:10:46 2015 -0500 Committer: Steve Blackmon <sblack...@apache.org> Committed: Tue Apr 28 01:10:46 2015 -0500 ---------------------------------------------------------------------- local/elasticsearch-hdfs/pom.xml | 101 +------- local/elasticsearch-reindex/pom.xml | 102 +------- local/mongo-elasticsearch-sync/pom.xml | 91 ------- local/twitter-follow-graph/pom.xml | 59 +---- local/twitter-history-elasticsearch/pom.xml | 109 --------- local/twitter-userstream-elasticsearch/pom.xml | 103 -------- pom.xml | 251 ++++++++++++++++++++ 7 files changed, 258 insertions(+), 558 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/blob/244683c1/local/elasticsearch-hdfs/pom.xml ---------------------------------------------------------------------- diff --git a/local/elasticsearch-hdfs/pom.xml b/local/elasticsearch-hdfs/pom.xml index 3d07371..7a90052 100644 --- a/local/elasticsearch-hdfs/pom.xml +++ b/local/elasticsearch-hdfs/pom.xml @@ -172,17 +172,6 @@ </testResource> </testResources> <plugins> - <plugin> - <artifactId>maven-clean-plugin</artifactId> - <configuration> - <filesets> - <fileset> - <directory>data</directory> - <followSymlinks>false</followSymlinks> - </fileset> - </filesets> - </configuration> - </plugin> <!-- This binary runs with logback --> <!-- Keep log4j out --> <plugin> @@ -222,25 +211,12 @@ <goal>shade</goal> </goals> <configuration> - <finalName>${project.build.finalName}</finalName> - <filters> - <filter> - <artifact>*:*</artifact> - <excludes> - <exclude>META-INF/*.SF</exclude> - <exclude>META-INF/*.DSA</exclude> - <exclude>META-INF/*.RSA</exclude> - <exclude>**/logback.xml</exclude> - <exclude>**/log4j.properties</exclude> - </excludes> - </filter> - </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> - <mainClass>org.apache.streams.example.elasticsearch.ElasticsearchReindex</mainClass> + <mainClass>org.apache.streams.example.elasticsearch.ElasticsearchHdfs</mainClass> </transformer> </transformers> </configuration> @@ -250,42 +226,13 @@ <plugin> <groupId>org.jsonschema2pojo</groupId> <artifactId>jsonschema2pojo-maven-plugin</artifactId> - <version>0.4.1</version> <configuration> - <addCompileSourceRoot>true</addCompileSourceRoot> - <generateBuilders>true</generateBuilders> - <sourcePaths> - <sourcePath>src/main/jsonschema</sourcePath> - </sourcePaths> - <outputDirectory>target/generated-sources/jsonschema2pojo</outputDirectory> <targetPackage>org.apache.streams.example.elasticsearch</targetPackage> - <useJodaDates>false</useJodaDates> </configuration> - <executions> - <execution> - <goals> - <goal>generate</goal> - </goals> - </execution> - </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>target/generated-sources/jsonschema2pojo</source> - </sources> - </configuration> - </execution> - </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -309,54 +256,8 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> - <version>2.12.4</version> - <executions> - <execution> - <id>integration-tests</id> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> </plugin> </plugins> </build> - <profiles> - <profile> - <id>docker</id> - <build> - <plugins> - <plugin> - <!-- The Docker Maven plugin is used to create docker image with the fat jar --> - <groupId>org.jolokia</groupId> - <artifactId>docker-maven-plugin</artifactId> - <version>0.11.0</version> - <configuration> - <images> - - <image> - <alias>${project.artifactId}</alias> - <name>${project.artifactId}:${project.version}</name> - <build> - <from>dockerfile/java:oracle-java8</from> - <assembly> - <basedir>/</basedir> - <descriptorRef>artifact</descriptorRef> - </assembly> - <!-- Default command for the build image --> - </build> - - </image> - - </images> - </configuration> - - </plugin> - - </plugins> - </build> - </profile> - </profiles> </project> http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/blob/244683c1/local/elasticsearch-reindex/pom.xml ---------------------------------------------------------------------- diff --git a/local/elasticsearch-reindex/pom.xml b/local/elasticsearch-reindex/pom.xml index 59e968b..544713f 100644 --- a/local/elasticsearch-reindex/pom.xml +++ b/local/elasticsearch-reindex/pom.xml @@ -135,17 +135,6 @@ </testResource> </testResources> <plugins> - <plugin> - <artifactId>maven-clean-plugin</artifactId> - <configuration> - <filesets> - <fileset> - <directory>data</directory> - <followSymlinks>false</followSymlinks> - </fileset> - </filesets> - </configuration> - </plugin> <!-- This binary runs with logback --> <!-- Keep log4j out --> <plugin> @@ -209,46 +198,14 @@ </configuration> </execution> </executions> - </plugin> - <plugin> - <groupId>org.jsonschema2pojo</groupId> - <artifactId>jsonschema2pojo-maven-plugin</artifactId> - <version>0.4.1</version> - <configuration> - <addCompileSourceRoot>true</addCompileSourceRoot> - <generateBuilders>true</generateBuilders> - <sourcePaths> - <sourcePath>src/main/jsonschema</sourcePath> - </sourcePaths> - <outputDirectory>target/generated-sources/jsonschema2pojo</outputDirectory> - <targetPackage>org.apache.streams.example.elasticsearch</targetPackage> - <useJodaDates>false</useJodaDates> - </configuration> - <executions> - <execution> - <goals> - <goal>generate</goal> - </goals> - </execution> - </executions> - </plugin> + </plugin> + <plugin> + <groupId>org.jsonschema2pojo</groupId> + <artifactId>jsonschema2pojo-maven-plugin</artifactId> + </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>target/generated-sources/jsonschema2pojo</source> - </sources> - </configuration> - </execution> - </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -272,57 +229,8 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> - <version>2.12.4</version> - <executions> - <execution> - <id>integration-tests</id> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> </plugin> </plugins> </build> - <profiles> - <profile> - <id>docker</id> - <build> - <plugins> - <plugin> - <!-- The Docker Maven plugin is used to create docker image with the fat jar --> - <groupId>org.jolokia</groupId> - <artifactId>docker-maven-plugin</artifactId> - <version>0.11.0</version> - <configuration> - <images> - - <image> - <alias>${project.artifactId}</alias> - <name>${project.artifactId}:${project.version}</name> - <build> - <from>dockerfile/java:oracle-java8</from> - <assembly> - <basedir>/</basedir> - <descriptorRef>artifact</descriptorRef> - </assembly> - <!-- Default command for the build image --> - </build> - - </image> - - </images> - </configuration> - - </plugin> - - </plugins> - </build> - <activation> - <activeByDefault/> - </activation> - </profile> - </profiles> </project> http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/blob/244683c1/local/mongo-elasticsearch-sync/pom.xml ---------------------------------------------------------------------- diff --git a/local/mongo-elasticsearch-sync/pom.xml b/local/mongo-elasticsearch-sync/pom.xml index 411bd9b..6726460 100644 --- a/local/mongo-elasticsearch-sync/pom.xml +++ b/local/mongo-elasticsearch-sync/pom.xml @@ -170,17 +170,6 @@ </executions> </plugin> <plugin> - <artifactId>maven-clean-plugin</artifactId> - <configuration> - <filesets> - <fileset> - <directory>data</directory> - <followSymlinks>false</followSymlinks> - </fileset> - </filesets> - </configuration> - </plugin> - <plugin> <groupId>com.github.joelittlejohn.embedmongo</groupId> <artifactId>embedmongo-maven-plugin</artifactId> <version>0.1.12</version> @@ -242,42 +231,10 @@ <plugin> <groupId>org.jsonschema2pojo</groupId> <artifactId>jsonschema2pojo-maven-plugin</artifactId> - <version>0.4.1</version> - <configuration> - <addCompileSourceRoot>true</addCompileSourceRoot> - <generateBuilders>true</generateBuilders> - <sourcePaths> - <sourcePath>src/main/jsonschema</sourcePath> - </sourcePaths> - <outputDirectory>target/generated-sources/jsonschema2pojo</outputDirectory> - <targetPackage>org.apache.streams.example.elasticsearch</targetPackage> - <useJodaDates>false</useJodaDates> - </configuration> - <executions> - <execution> - <goals> - <goal>generate</goal> - </goals> - </execution> - </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>target/generated-sources/jsonschema2pojo</source> - </sources> - </configuration> - </execution> - </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -301,57 +258,9 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> - <version>2.12.4</version> - <executions> - <execution> - <id>integration-tests</id> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> </plugin> </plugins> </build> - <profiles> - <profile> - <id>docker</id> - <build> - <plugins> - <plugin> - <!-- The Docker Maven plugin is used to create docker image with the fat jar --> - <groupId>org.jolokia</groupId> - <artifactId>docker-maven-plugin</artifactId> - <version>0.11.0</version> - <configuration> - <images> - - <image> - <alias>${project.artifactId}</alias> - <name>${project.artifactId}:${project.version}</name> - <build> - <from>dockerfile/java:oracle-java8</from> - <assembly> - <basedir>/</basedir> - <descriptorRef>artifact</descriptorRef> - </assembly> - <!-- Default command for the build image --> - </build> - - </image> - - </images> - </configuration> - - </plugin> - </plugins> - </build> - <activation> - <activeByDefault/> - </activation> - </profile> - </profiles> </project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/blob/244683c1/local/twitter-follow-graph/pom.xml ---------------------------------------------------------------------- diff --git a/local/twitter-follow-graph/pom.xml b/local/twitter-follow-graph/pom.xml index db827e2..d2e9273 100644 --- a/local/twitter-follow-graph/pom.xml +++ b/local/twitter-follow-graph/pom.xml @@ -23,7 +23,7 @@ <parent> <groupId>org.apache.streams</groupId> <artifactId>streams-examples-local</artifactId> - <version>0.3-incubating-SNAPSHOT</version> + <version>0.2-incubating-SNAPSHOT</version> <relativePath>..</relativePath> </parent> <modelVersion>4.0.0</modelVersion> @@ -142,17 +142,6 @@ </executions> </plugin> <plugin> - <artifactId>maven-clean-plugin</artifactId> - <configuration> - <filesets> - <fileset> - <directory>data</directory> - <followSymlinks>false</followSymlinks> - </fileset> - </filesets> - </configuration> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <executions> @@ -162,17 +151,6 @@ <goal>shade</goal> </goals> <configuration> - <finalName>${project.build.finalName}</finalName> - <filters> - <filter> - <artifact>*:*</artifact> - <excludes> - <exclude>META-INF/*.SF</exclude> - <exclude>META-INF/*.DSA</exclude> - <exclude>META-INF/*.RSA</exclude> - </excludes> - </filter> - </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> @@ -188,17 +166,6 @@ <plugin> <groupId>org.jsonschema2pojo</groupId> <artifactId>jsonschema2pojo-maven-plugin</artifactId> - <version>0.4.6</version> - <configuration> - <addCompileSourceRoot>true</addCompileSourceRoot> - <generateBuilders>true</generateBuilders> - <sourcePaths> - <sourcePath>src/main/jsonschema</sourcePath> - </sourcePaths> - <outputDirectory>target/generated-sources/jsonschema2pojo</outputDirectory> - <targetPackage>org.apache.streams.example.elasticsearch</targetPackage> - <useJodaDates>false</useJodaDates> - </configuration> <executions> <execution> <goals> @@ -210,20 +177,6 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>target/generated-sources/jsonschema2pojo</source> - </sources> - </configuration> - </execution> - </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -247,16 +200,6 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> - <version>2.12.4</version> - <executions> - <execution> - <id>integration-tests</id> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> </plugin> </plugins> </build> http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/blob/244683c1/local/twitter-history-elasticsearch/pom.xml ---------------------------------------------------------------------- diff --git a/local/twitter-history-elasticsearch/pom.xml b/local/twitter-history-elasticsearch/pom.xml index 19b9e1c..93ff1bb 100644 --- a/local/twitter-history-elasticsearch/pom.xml +++ b/local/twitter-history-elasticsearch/pom.xml @@ -149,17 +149,6 @@ </testResource> </testResources> <plugins> - <plugin> - <artifactId>maven-clean-plugin</artifactId> - <configuration> - <filesets> - <fileset> - <directory>data</directory> - <followSymlinks>false</followSymlinks> - </fileset> - </filesets> - </configuration> - </plugin> <!-- This binary runs with logback --> <!-- Keep log4j out --> <plugin> @@ -199,19 +188,6 @@ <goal>shade</goal> </goals> <configuration> - <finalName>${project.build.finalName}</finalName> - <filters> - <filter> - <artifact>*:*</artifact> - <excludes> - <exclude>META-INF/*.SF</exclude> - <exclude>META-INF/*.DSA</exclude> - <exclude>META-INF/*.RSA</exclude> - <exclude>**/logback.xml</exclude> - <exclude>**/log4j.properties</exclude> - </excludes> - </filter> - </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> @@ -227,42 +203,10 @@ <plugin> <groupId>org.jsonschema2pojo</groupId> <artifactId>jsonschema2pojo-maven-plugin</artifactId> - <version>0.4.1</version> - <configuration> - <addCompileSourceRoot>true</addCompileSourceRoot> - <generateBuilders>true</generateBuilders> - <sourcePaths> - <sourcePath>src/main/jsonschema</sourcePath> - </sourcePaths> - <outputDirectory>target/generated-sources/jsonschema2pojo</outputDirectory> - <targetPackage>org.apache.streams.example.twitter</targetPackage> - <useJodaDates>false</useJodaDates> - </configuration> - <executions> - <execution> - <goals> - <goal>generate</goal> - </goals> - </execution> - </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>target/generated-sources/jsonschema2pojo</source> - </sources> - </configuration> - </execution> - </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -283,60 +227,7 @@ </execution> </executions> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-failsafe-plugin</artifactId> - <version>2.12.4</version> - <executions> - <execution> - <id>integration-tests</id> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> - </plugin> </plugins> </build> - <profiles> - <profile> - <id>docker</id> - <build> - <plugins> - <plugin> - <!-- The Docker Maven plugin is used to create docker image with the fat jar --> - <groupId>org.jolokia</groupId> - <artifactId>docker-maven-plugin</artifactId> - <version>0.11.0</version> - <configuration> - <images> - - <image> - <alias>${project.artifactId}</alias> - <name>${project.artifactId}:${project.version}</name> - <build> - <from>dockerfile/java:oracle-java8</from> - <assembly> - <basedir>/</basedir> - <descriptorRef>artifact</descriptorRef> - </assembly> - <!-- Default command for the build image --> - </build> - - </image> - - </images> - </configuration> - - </plugin> - - </plugins> - </build> - <activation> - <activeByDefault/> - </activation> - </profile> - </profiles> </project> http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/blob/244683c1/local/twitter-userstream-elasticsearch/pom.xml ---------------------------------------------------------------------- diff --git a/local/twitter-userstream-elasticsearch/pom.xml b/local/twitter-userstream-elasticsearch/pom.xml index 6bb57b6..bcff091 100644 --- a/local/twitter-userstream-elasticsearch/pom.xml +++ b/local/twitter-userstream-elasticsearch/pom.xml @@ -125,17 +125,6 @@ </testResources> <plugins> <plugin> - <artifactId>maven-clean-plugin</artifactId> - <configuration> - <filesets> - <fileset> - <directory>data</directory> - <followSymlinks>false</followSymlinks> - </fileset> - </filesets> - </configuration> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <executions> @@ -145,17 +134,6 @@ <goal>shade</goal> </goals> <configuration> - <finalName>${project.build.finalName}</finalName> - <filters> - <filter> - <artifact>*:*</artifact> - <excludes> - <exclude>META-INF/*.SF</exclude> - <exclude>META-INF/*.DSA</exclude> - <exclude>META-INF/*.RSA</exclude> - </excludes> - </filter> - </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> @@ -171,42 +149,10 @@ <plugin> <groupId>org.jsonschema2pojo</groupId> <artifactId>jsonschema2pojo-maven-plugin</artifactId> - <version>0.4.1</version> - <configuration> - <addCompileSourceRoot>true</addCompileSourceRoot> - <generateBuilders>true</generateBuilders> - <sourcePaths> - <sourcePath>src/main/jsonschema</sourcePath> - </sourcePaths> - <outputDirectory>target/generated-sources/jsonschema2pojo</outputDirectory> - <targetPackage>org.apache.streams.example.elasticsearch</targetPackage> - <useJodaDates>false</useJodaDates> - </configuration> - <executions> - <execution> - <goals> - <goal>generate</goal> - </goals> - </execution> - </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>target/generated-sources/jsonschema2pojo</source> - </sources> - </configuration> - </execution> - </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -230,57 +176,8 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> - <version>2.12.4</version> - <executions> - <execution> - <id>integration-tests</id> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> </plugin> </plugins> </build> - <profiles> - <profile> - <id>docker</id> - <build> - <plugins> - <plugin> - <!-- The Docker Maven plugin is used to create docker image with the fat jar --> - <groupId>org.jolokia</groupId> - <artifactId>docker-maven-plugin</artifactId> - <version>0.11.0</version> - <configuration> - <images> - - <image> - <alias>${project.artifactId}</alias> - <name>${project.artifactId}:${project.version}</name> - <build> - <from>dockerfile/java:oracle-java8</from> - <assembly> - <basedir>/</basedir> - <descriptorRef>artifact</descriptorRef> - </assembly> - <!-- Default command for the build image --> - </build> - - </image> - - </images> - </configuration> - - </plugin> - - </plugins> - </build> - <activation> - <activeByDefault/> - </activation> - </profile> - </profiles> </project> http://git-wip-us.apache.org/repos/asf/incubator-streams-examples/blob/244683c1/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index d7ebbe4..83b8d12 100644 --- a/pom.xml +++ b/pom.xml @@ -94,6 +94,17 @@ </mailingLists> <distributionManagement> + <repository> + <id>streams.releases</id> + <name>Streams Releases</name> + <url>${release.repository.url}</url> + </repository> + <!-- Snapshots (not-releases) are published to this repository --> + <snapshotRepository> + <id>streams.snapshots</id> + <name>Streams Snapshots</name> + <url>${snapshot.repository.url}</url> + </snapshotRepository> <site> <id>streams.site.examples</id> <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/streams/content/site/${project.version}/streams-examples/</url> @@ -160,8 +171,46 @@ </repositories> <properties> + + <!-- Build Properties --> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + <java.version>1.7</java.version> + + <!-- Release Properties --> + <snapshot.repository.url> + https://repository.apache.org/content/repositories/snapshots + </snapshot.repository.url> + <release.repository.url> + https://repository.apache.org/service/local/staging/deploy/maven2 + </release.repository.url> + <streams.version>${project.version}</streams.version> + <!-- Plugin and Plugin Dependency Versions --> + <build-helper.plugin.version>1.8</build-helper.plugin.version> + <compiler.plugin.version>3.0</compiler.plugin.version> + <clean.plugin.version>2.6</clean.plugin.version> + <docker.plugin.version>0.11.2</docker.plugin.version> + <enforcer.plugin.version>1.3.1</enforcer.plugin.version> + <failsafe.plugin.version>2.17</failsafe.plugin.version> + <jar.plugin.version>2.6</jar.plugin.version> + <javadoc.plugin.version>2.10.2</javadoc.plugin.version> + <resources.plugin.version>2.7</resources.plugin.version> + <shade.plugin.version>2.3</shade.plugin.version> + <site.plugin.version>3.4</site.plugin.version> + <surefire.plugin.version>2.17</surefire.plugin.version> + <war.plugin.version>2.5</war.plugin.version> + + <!-- Library Dependency Versions --> + <jsonschema2pojo.version>0.4.6</jsonschema2pojo.version> + <junit.version>4.11</junit.version> + <slf4j.version>1.7.6</slf4j.version> + <log4j.version>1.2.16</log4j.version> + <logback.version>1.1.1</logback.version> + + <typesafe.config.version>1.2.0</typesafe.config.version> + <!-- Release Properties --> <snapshot.repository.url> https://repository.apache.org/content/repositories/snapshots @@ -179,6 +228,11 @@ <dependencyManagement> <dependencies> <dependency> + <groupId>com.typesafe</groupId> + <artifactId>config</artifactId> + <version>${typesafe.config.version}</version> + </dependency> + <dependency> <groupId>org.apache.streams</groupId> <artifactId>streams-config</artifactId> <version>${streams.version}</version> @@ -257,9 +311,166 @@ </dependencyManagement> <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>${compiler.plugin.version}</version> + <configuration> + <source>${java.version}</source> + <target>${java.version}</target> + <encoding>${project.build.sourceEncoding}</encoding> + </configuration> + </plugin> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <version>${site.plugin.version}</version> + </plugin> + </plugins> <pluginManagement> <plugins> <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>${clean.plugin.version}</version> + <configuration> + <filesets> + <fileset> + <directory>src/site/resources</directory> + <followSymlinks>false</followSymlinks> + </fileset> + <!-- this is here because elasticsearch integration tests don't have a setting to change directory where temp index files get created --> + <fileset> + <directory>data</directory> + <followSymlinks>false</followSymlinks> + </fileset> + </filesets> + </configuration> + </plugin> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>2.7</version> + <executions> + <execution> + <id>copy-resources</id> + <!-- validate is first to run--> + <!-- copy these files to src/site/resources --> + <phase>validate</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${basedir}/src/site/resources</outputDirectory> + <resources> + <resource> + <directory>src/main/jsonschema</directory> + </resource> + <resource> + <directory>src/main/xmlschema</directory> + </resource> + <resource> + <directory>src/main/resources</directory> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.jsonschema2pojo</groupId> + <artifactId>jsonschema2pojo-maven-plugin</artifactId> + <version>${jsonschema2pojo.version}</version> + <configuration> + <addCompileSourceRoot>true</addCompileSourceRoot> + <generateBuilders>true</generateBuilders> + <outputDirectory>target/generated-sources/jsonschema2pojo</outputDirectory> + <sourcePaths> + <sourcePath>src/main/jsonschema</sourcePath> + </sourcePaths> + <useLongIntegers>true</useLongIntegers> + <useJodaDates>true</useJodaDates> + </configuration> + <executions> + <execution> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>${build-helper.plugin.version}</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>${enforcer.plugin.version}</version> + <executions> + <execution> + <id>enforce-banned-dependencies</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <bannedDependencies> + <excludes> + <exclude>org.slf4j:slf4j-log4j12</exclude> + <exclude>org.slf4j:slf4j-jcl</exclude> + <exclude>org.slf4j:slf4j-jdk14</exclude> + <exclude>org.log4j:log4j</exclude> + <exclude>commons-logging:commons-logging</exclude> + </excludes> + </bannedDependencies> + </rules> + <fail>true</fail> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <version>${failsafe.plugin.version}</version> + <executions> + <execution> + <id>integration-tests</id> + <goals> + <goal>integration-test</goal> + <goal>verify</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>${shade.plugin.version}</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <finalName>${project.build.finalName}</finalName> + <filters> + <filter> + <artifact>*:*</artifact> + <excludes> + <exclude>META-INF/*.SF</exclude> + <exclude>META-INF/*.DSA</exclude> + <exclude>META-INF/*.RSA</exclude> + <exclude>**/logback.xml</exclude> + <exclude>**/log4j.properties</exclude> + </excludes> + </filter> + </filters> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.4</version> @@ -289,4 +500,44 @@ </plugins> </pluginManagement> </build> + + <profiles> + <profile> + <id>docker</id> + <build> + <plugins> + <plugin> + <!-- The Docker Maven plugin is used to create docker image with the fat jar --> + <groupId>org.jolokia</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>${docker.plugin.version}</version> + <configuration> + <images> + + <image> + <alias>${project.artifactId}</alias> + <name>${project.artifactId}:${project.version}</name> + <build> + <from>dockerfile/java:oracle-java7</from> + <assembly> + <basedir>/</basedir> + <descriptorRef>artifact</descriptorRef> + </assembly> + <!-- Default command for the build image --> + </build> + + </image> + + </images> + </configuration> + + </plugin> + + </plugins> + </build> + <activation> + <activeByDefault/> + </activation> + </profile> + </profiles> </project>