|
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0"
|
3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
5 |
| - <!-- ============================================================= --> |
6 |
| - <!-- Standard project header. Change the project name, groupId, --> |
7 |
| - <!-- artifactId and description to match your project. --> |
8 |
| - <!-- ============================================================= --> |
9 |
| - <name>elasticsearch-native-script-example</name> |
10 | 5 | <modelVersion>4.0.0</modelVersion>
|
11 |
| - <groupId>org.elasticsearch</groupId> |
| 6 | + |
| 7 | + <parent> |
| 8 | + <groupId>org.elasticsearch.plugin</groupId> |
| 9 | + <artifactId>elasticsearch-plugin</artifactId> |
| 10 | + <version>2.0.0-beta1-SNAPSHOT</version> |
| 11 | + </parent> |
| 12 | + |
| 13 | + <name>elasticsearch-native-script-example</name> |
| 14 | + <groupId>org.elasticsearch.plugin</groupId> |
12 | 15 | <artifactId>elasticsearch-native-script-example</artifactId>
|
13 | 16 | <version>2.0.0-beta1-SNAPSHOT</version>
|
14 |
| - <packaging>jar</packaging> |
15 | 17 | <description>ElasticSearch Plugin with Native Script Examples</description>
|
16 | 18 | <inceptionYear>2013</inceptionYear>
|
| 19 | + |
17 | 20 | <licenses>
|
18 | 21 | <license>
|
19 | 22 | <name>The Apache Software License, Version 2.0</name>
|
20 | 23 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
21 | 24 | <distribution>repo</distribution>
|
22 | 25 | </license>
|
23 | 26 | </licenses>
|
| 27 | + |
24 | 28 | <scm>
|
25 | 29 | <connection>scm:git:git@github.com:imotov/elasticsearch-native-script-example.git</connection>
|
26 | 30 | <developerConnection>scm:git:git@github.com:imotov/elasticsearch-native-script-example.git</developerConnection>
|
27 | 31 | <url>http://github.com/imotov/elasticsearch-native-script-example</url>
|
28 | 32 | </scm>
|
29 | 33 |
|
30 |
| - <parent> |
31 |
| - <groupId>org.elasticsearch</groupId> |
32 |
| - <artifactId>elasticsearch-parent</artifactId> |
33 |
| - <version>2.0.0-beta1-SNAPSHOT</version> |
34 |
| - </parent> |
| 34 | + <!-- ============================================================= --> |
| 35 | + <!-- Most of the build and assembly logic is defined in the parent --> |
| 36 | + <!-- pom. We just need to override a few settings here --> |
| 37 | + <!-- ============================================================= --> |
| 38 | + |
| 39 | + <properties> |
| 40 | + <!-- define class name for the descriptor file --> |
| 41 | + <elasticsearch.plugin.classname>org.elasticsearch.examples.nativescript.plugin.NativeScriptExamplesPlugin</elasticsearch.plugin.classname> |
35 | 42 |
|
| 43 | + <!-- we have custom licence header in this project --> |
| 44 | + <elasticsearch.license.header>${project.basedir}/dev-tools/src/main/resources/license-check/native_script_example_license_header.txt</elasticsearch.license.header> |
| 45 | + <elasticsearch.license.headerDefinition>${project.basedir}/dev-tools/src/main/resources/license-check/license_header_definition.xml</elasticsearch.license.headerDefinition> |
| 46 | + |
| 47 | + <!-- define where to find integration rest tests --> |
| 48 | + <tests.ifNoTests>warn</tests.ifNoTests> |
| 49 | + <tests.rest.suite>nativescript</tests.rest.suite> |
| 50 | + <tests.rest.load_packaged>false</tests.rest.load_packaged> |
| 51 | + </properties> |
| 52 | + |
| 53 | + <!-- needed for the snapshots of elasticsearch --> |
36 | 54 | <repositories>
|
37 | 55 | <repository>
|
38 | 56 | <id>oss-snapshots</id>
|
|
41 | 59 | </repository>
|
42 | 60 | </repositories>
|
43 | 61 |
|
44 |
| - <!-- ============================================================= --> |
45 |
| - <!-- The minimal set of Elasticsearch dependencies that plugin --> |
46 |
| - <!-- project needs that the project will be built with --> |
47 |
| - <!-- ============================================================= --> |
48 |
| - <dependencies> |
49 |
| - |
50 |
| - <dependency> |
51 |
| - <groupId>org.apache.lucene</groupId> |
52 |
| - <artifactId>lucene-test-framework</artifactId> |
53 |
| - </dependency> |
54 |
| - |
55 |
| - <dependency> |
56 |
| - <groupId>org.elasticsearch</groupId> |
57 |
| - <artifactId>elasticsearch</artifactId> |
58 |
| - </dependency> |
59 |
| - |
60 |
| - <dependency> |
61 |
| - <groupId>org.elasticsearch</groupId> |
62 |
| - <artifactId>elasticsearch</artifactId> |
63 |
| - <scope>test</scope> |
64 |
| - <type>test-jar</type> |
65 |
| - </dependency> |
66 |
| - |
67 |
| - <dependency> |
68 |
| - <groupId>log4j</groupId> |
69 |
| - <artifactId>log4j</artifactId> |
70 |
| - </dependency> |
71 |
| - |
72 |
| - <dependency> |
73 |
| - <groupId>org.slf4j</groupId> |
74 |
| - <artifactId>slf4j-api</artifactId> |
75 |
| - </dependency> |
76 |
| - |
77 |
| - <dependency> |
78 |
| - <groupId>org.hamcrest</groupId> |
79 |
| - <artifactId>hamcrest-all</artifactId> |
80 |
| - </dependency> |
81 |
| - |
82 |
| - <dependency> |
83 |
| - <groupId>com.carrotsearch.randomizedtesting</groupId> |
84 |
| - <artifactId>randomizedtesting-runner</artifactId> |
85 |
| - </dependency> |
86 |
| - |
87 |
| - </dependencies> |
88 |
| - |
89 | 62 | <build>
|
90 | 63 | <plugins>
|
91 |
| - <!-- ============================================================= --> |
92 |
| - <!-- Elasticsearch is using java 1.7 at the moment. --> |
93 |
| - <!-- ============================================================= --> |
94 | 64 | <plugin>
|
95 | 65 | <groupId>org.apache.maven.plugins</groupId>
|
96 |
| - <artifactId>maven-compiler-plugin</artifactId> |
97 |
| - <version>2.3.2</version> |
98 |
| - <configuration> |
99 |
| - <source>1.7</source> |
100 |
| - <target>1.7</target> |
101 |
| - </configuration> |
102 |
| - </plugin> |
103 |
| - <!-- ============================================================= --> |
104 |
| - <!-- Optional. This plugin is using surefire plugin to run tests. --> |
105 |
| - <!-- ============================================================= --> |
106 |
| - <plugin> |
107 |
| - <groupId>org.apache.maven.plugins</groupId> |
108 |
| - <artifactId>maven-surefire-plugin</artifactId> |
109 |
| - <version>2.12.3</version> |
110 |
| - <configuration> |
111 |
| - <includes> |
112 |
| - <include>**/*Tests.java</include> |
113 |
| - </includes> |
114 |
| - </configuration> |
115 |
| - </plugin> |
116 |
| - <!-- ============================================================= --> |
117 |
| - <!-- This plugin assembles plugin .zip package. --> |
118 |
| - <!-- ============================================================= --> |
119 |
| - <plugin> |
120 | 66 | <artifactId>maven-assembly-plugin</artifactId>
|
121 |
| - <version>2.3</version> |
122 |
| - <configuration> |
123 |
| - <appendAssemblyId>false</appendAssemblyId> |
124 |
| - <outputDirectory>${project.build.directory}/releases/</outputDirectory> |
125 |
| - <descriptors> |
126 |
| - <descriptor>${basedir}/src/main/assemblies/plugin.xml</descriptor> |
127 |
| - </descriptors> |
128 |
| - </configuration> |
129 |
| - <executions> |
130 |
| - <execution> |
131 |
| - <phase>package</phase> |
132 |
| - <goals> |
133 |
| - <goal>single</goal> |
134 |
| - </goals> |
135 |
| - </execution> |
136 |
| - </executions> |
137 |
| - </plugin> |
138 |
| - |
139 |
| - <plugin> |
140 |
| - <groupId>com.mycila</groupId> |
141 |
| - <artifactId>license-maven-plugin</artifactId> |
142 |
| - <configuration> |
143 |
| - <header>${project.basedir}/dev-tools/src/main/resources/license-check/native_script_example_license_header.txt</header> |
144 |
| - </configuration> |
145 | 67 | </plugin>
|
146 | 68 | </plugins>
|
147 | 69 | </build>
|
|
0 commit comments