diff --git a/config/dynamic_synonym/synonym.cfg.xml b/config/dynamic_synonym/synonym.cfg.xml
deleted file mode 100644
index d91e545..0000000
--- a/config/dynamic_synonym/synonym.cfg.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
- dynamic synonym 配置
-
-
- http://remote_host:8080/synonym.txt
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index ceffe03..6802adf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,14 +7,15 @@
2.0.0
jar
elasticsearch-dynamic-synonym
- IK Analyzer for Elasticsearch
+ Analysis-plugin for synonym
UTF-8
2.0.0
1.7
analysis-dynamic-synonym
- com.bellszhu.elasticsearch.DynamicSynonymPlugin
+ ${project.basedir}/src/main/assemblies/plugin.xml
+ com.bellszhu.elasticsearch.plugin.DynamicSynonymPlugin
true
diff --git a/src/main/assemblies/plugin.xml b/src/main/assemblies/plugin.xml
index eeb92f1..7e061d9 100644
--- a/src/main/assemblies/plugin.xml
+++ b/src/main/assemblies/plugin.xml
@@ -5,6 +5,13 @@
zip
false
+
+
+ ${project.basedir}/src/main/resources/plugin-descriptor.properties
+
+ true
+
+
/