Skip to content

Commit

Permalink
[maven] rename artifactIds from elasticsearch-something to something
Browse files Browse the repository at this point in the history
In plugins, we are using non consistent naming. We use `elasticsearch-cloud-aws` as the artifactId, which generates a jar file called `elasticsearch-cloud-aws-VERSION.jar`.

But when you want to install the plugin, you will end up with a shorter name for the plugin `cloud-aws`.

```
bin/plugin install cloud-aws
```

This commit changes that and use consistent names for `artifactId`, so `finalName`.

Also changed maven names.
  • Loading branch information
dadoonet committed Aug 18, 2015
1 parent 0bb9593 commit d21afc8
Show file tree
Hide file tree
Showing 18 changed files with 60 additions and 60 deletions.
2 changes: 1 addition & 1 deletion migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function migratePlugin() {
mkdir -p plugins/$1
git mv -k * plugins/$1 > /dev/null 2>/dev/null
git rm .gitignore > /dev/null 2>/dev/null
# echo "### change $1 groupId to org.elasticsearch.plugins"
# echo "### change $1 groupId to org.elasticsearch.plugin"
# Change the groupId to avoid conflicts with existing 2.0.0 versions.
replaceLine " <groupId>org.elasticsearch<\/groupId>" " <groupId>org.elasticsearch.plugin<\/groupId>" "plugins/$1/pom.xml"

Expand Down
6 changes: 3 additions & 3 deletions plugins/analysis-icu/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-analysis-icu</artifactId>
<name>Elasticsearch ICU Analysis plugin</name>
<artifactId>analysis-icu</artifactId>
<name>Plugin: Analysis: ICU</name>
<description>The ICU Analysis plugin integrates Lucene ICU module into elasticsearch, adding ICU relates analysis components.</description>

<properties>
Expand Down
7 changes: 3 additions & 4 deletions plugins/analysis-kuromoji/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-analysis-kuromoji</artifactId>
<packaging>jar</packaging>
<name>Elasticsearch Japanese (kuromoji) Analysis plugin</name>
<artifactId>analysis-kuromoji</artifactId>
<name>Plugin: Analysis: Japanese (kuromoji)</name>
<description>The Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into elasticsearch.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/analysis-phonetic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-analysis-phonetic</artifactId>
<name>Elasticsearch Phonetic Analysis plugin</name>
<artifactId>analysis-phonetic</artifactId>
<name>Plugin: Analysis: Phonetic</name>
<description>The Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/analysis-smartcn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-analysis-smartcn</artifactId>
<name>Elasticsearch Smart Chinese Analysis plugin</name>
<artifactId>analysis-smartcn</artifactId>
<name>Plugin: Analysis: Smart Chinese (smartcn)</name>
<description>Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/analysis-stempel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-analysis-stempel</artifactId>
<name>Elasticsearch Stempel (Polish) Analysis plugin</name>
<artifactId>analysis-stempel</artifactId>
<name>Plugin: Analysis: Polish (stempel)</name>
<description>The Stempel (Polish) Analysis plugin integrates Lucene stempel (polish) analysis module into elasticsearch.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/cloud-aws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-cloud-aws</artifactId>
<name>Elasticsearch AWS cloud plugin</name>
<artifactId>cloud-aws</artifactId>
<name>Plugin: Cloud: AWS</name>
<description>The Amazon Web Service (AWS) Cloud plugin allows to use AWS API for the unicast discovery mechanism and add S3 repositories.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/cloud-azure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ governing permissions and limitations under the License. -->

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-cloud-azure</artifactId>
<name>Elasticsearch Azure cloud plugin</name>
<artifactId>cloud-azure</artifactId>
<name>Plugin: Cloud: Azure</name>
<description>The Azure Cloud plugin allows to use Azure API for the unicast discovery mechanism and add Azure storage repositories.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/cloud-gce/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ governing permissions and limitations under the License. -->

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-cloud-gce</artifactId>
<name>Elasticsearch Google Compute Engine cloud plugin</name>
<artifactId>cloud-gce</artifactId>
<name>Plugin: Cloud: Google Compute Engine</name>
<description>The Google Compute Engine (GCE) Cloud plugin allows to use GCE API for the unicast discovery mechanism.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/delete-by-query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ governing permissions and limitations under the License. -->

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-delete-by-query</artifactId>
<name>Elasticsearch Delete By Query plugin</name>
<artifactId>delete-by-query</artifactId>
<name>Plugin: Delete By Query</name>
<description>The Delete By Query plugin allows to delete documents in Elasticsearch with a single query.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/jvm-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-jvm-example</artifactId>
<name>Elasticsearch example JVM plugin</name>
<artifactId>jvm-example</artifactId>
<name>Plugin: JVM example</name>
<description>Demonstrates all the pluggable Java entry points in Elasticsearch</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/lang-javascript/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-lang-javascript</artifactId>
<name>Elasticsearch JavaScript language plugin</name>
<artifactId>lang-javascript</artifactId>
<name>Plugin: Language: JavaScript</name>
<description>The JavaScript language plugin allows to have javascript as the language of scripts to execute.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/lang-python/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-lang-python</artifactId>
<name>Elasticsearch Python language plugin</name>
<artifactId>lang-python</artifactId>
<name>Plugin: Language: Python</name>
<description>The Python language plugin allows to have python as the language of scripts to execute.</description>

<properties>
Expand Down
6 changes: 3 additions & 3 deletions plugins/mapper-size/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ governing permissions and limitations under the License. -->

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-mapper-size</artifactId>
<name>Elasticsearch Mapper size plugin</name>
<artifactId>mapper-size</artifactId>
<name>Plugin: Mapper: Size</name>
<description>The Mapper Size plugin allows document to record their uncompressed size at index time.</description>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<modelVersion>4.0.0</modelVersion>

<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Elasticsearch Plugin POM</name>
<name>Plugin: Parent POM</name>
<inceptionYear>2009</inceptionYear>
<description>A parent project for Elasticsearch plugins</description>

Expand Down
6 changes: 3 additions & 3 deletions plugins/site-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<artifactId>plugins</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>

<artifactId>elasticsearch-site-example</artifactId>
<name>Elasticsearch Example site plugin</name>
<artifactId>site-example</artifactId>
<name>Plugin: Example site</name>
<description>Demonstrates how to serve resources via elasticsearch.</description>

<properties>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,7 @@ org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UT
<arg value="--check"/>
<arg value="${project.licenses.dir}"/>
<arg value="${project.licenses.check_target}"/>
<arg value="${project.build.finalName}"/>
</exec>
</target>
</configuration>
Expand Down
28 changes: 14 additions & 14 deletions qa/smoke-test-plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -247,87 +247,87 @@
<!-- plugins -->
<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-analysis-kuromoji</artifactId>
<artifactId>analysis-kuromoji</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-analysis-smartcn</artifactId>
<artifactId>analysis-smartcn</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-analysis-stempel</artifactId>
<artifactId>analysis-stempel</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-analysis-phonetic</artifactId>
<artifactId>analysis-phonetic</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-analysis-icu</artifactId>
<artifactId>analysis-icu</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-cloud-gce</artifactId>
<artifactId>cloud-gce</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-cloud-azure</artifactId>
<artifactId>cloud-azure</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-cloud-aws</artifactId>
<artifactId>cloud-aws</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-delete-by-query</artifactId>
<artifactId>delete-by-query</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-lang-python</artifactId>
<artifactId>lang-python</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-lang-javascript</artifactId>
<artifactId>lang-javascript</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
Expand All @@ -343,23 +343,23 @@

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-mapper-size</artifactId>
<artifactId>mapper-size</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-site-example</artifactId>
<artifactId>site-example</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
</artifactItem>

<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-jvm-example</artifactId>
<artifactId>jvm-example</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
Expand Down

0 comments on commit d21afc8

Please sign in to comment.