Browse Source

Merge pull request #1086 from rewerma/master

release包不打进application.yml
rewerma 6 years ago
parent
commit
685053599f

+ 14 - 12
client-adapter/launcher/pom.xml

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
-<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/xsd/maven-4.0.0.xsd">
+<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/xsd/maven-4.0.0.xsd">
     <parent>
     <parent>
         <artifactId>canal.client-adapter</artifactId>
         <artifactId>canal.client-adapter</artifactId>
         <groupId>com.alibaba.otter</groupId>
         <groupId>com.alibaba.otter</groupId>
@@ -134,12 +135,13 @@
                             <tasks>
                             <tasks>
                                 <copy todir="${project.basedir}/target/config" overwrite="true">
                                 <copy todir="${project.basedir}/target/config" overwrite="true">
                                     <fileset dir="${project.basedir}/src/main/resources" erroronmissingdir="true">
                                     <fileset dir="${project.basedir}/src/main/resources" erroronmissingdir="true">
-                                        <include name="*.yml" />
+                                        <include name="*.yml"/>
                                     </fileset>
                                     </fileset>
                                 </copy>
                                 </copy>
                                 <copy todir="${project.basedir}/target/config/hbase" overwrite="true">
                                 <copy todir="${project.basedir}/target/config/hbase" overwrite="true">
-                                    <fileset dir="${project.basedir}/../hbase/src/main/resources/hbase" erroronmissingdir="true">
-                                        <include name="*.yml" />
+                                    <fileset dir="${project.basedir}/../hbase/src/main/resources/hbase"
+                                             erroronmissingdir="true">
+                                        <include name="*.yml"/>
                                     </fileset>
                                     </fileset>
                                 </copy>
                                 </copy>
                             </tasks>
                             </tasks>
@@ -166,14 +168,6 @@
                 </executions>
                 </executions>
             </plugin>
             </plugin>
         </plugins>
         </plugins>
-        <resources>
-            <resource>
-                <directory>src/main/resources</directory>
-                <excludes>
-                    <exclude>application.yml</exclude>
-                </excludes>
-            </resource>
-        </resources>
     </build>
     </build>
 
 
     <profiles>
     <profiles>
@@ -209,6 +203,14 @@
                         </executions>
                         </executions>
                     </plugin>
                     </plugin>
                 </plugins>
                 </plugins>
+                <resources>
+                    <resource>
+                        <directory>src/main/resources</directory>
+                        <excludes>
+                            <exclude>application.yml</exclude>
+                        </excludes>
+                    </resource>
+                </resources>
             </build>
             </build>
         </profile>
         </profile>
     </profiles>
     </profiles>

+ 13 - 18
client-adapter/launcher/src/main/resources/application.yml

@@ -9,26 +9,21 @@ spring:
     time-zone: GMT+8
     time-zone: GMT+8
     default-property-inclusion: non_null
     default-property-inclusion: non_null
 
 
-
-hbasezookeeper.quorum: 127.0.0.1
-hbase.zookeeper.property.clientPort: 2181
-hbase.zookeeper.znode.parent: /hbase
-
-canal.conf:
-  canalServerHost: 127.0.0.1:11111
+#canal.conf:
+#  canalServerHost: 127.0.0.1:11111
 #  zookeeperHosts: slave1:2181
 #  zookeeperHosts: slave1:2181
-#  bootstrapServers: slave1:6667 #or rocketmq nameservers:host1:9876;host2:9876
-  flatMessage: true
-  canalInstances:
-  - instance: example
-    groups:
-    - outAdapters:
-      - name: logger
+#  bootstrapServers: slave1:6667 #or rocketmq
+#  flatMessage: true
+#  canalInstances:
+#  - instance: example
+#    groups:
+#    - outAdapters:
+#      - name: logger
 #      - name: hbase
 #      - name: hbase
 #        properties:
 #        properties:
-#          hbase.zookeeper.quorum: ${hbase.zookeeper.quorum}
-#          hbase.zookeeper.property.clientPort: ${hbase.zookeeper.property.clientPort}
-#          zookeeper.znode.parent: ${hbase.zookeeper.znode.parent}
+#          hbase.zookeeper.quorum: 127.0.0.1
+#          hbase.zookeeper.property.clientPort: 2181
+#          zookeeper.znode.parent: /hbase
 #  mqTopics:
 #  mqTopics:
 #  - mqMode: kafka
 #  - mqMode: kafka
 #    topic: example
 #    topic: example
@@ -43,7 +38,7 @@ canal.conf:
 #    - groupId: g2
 #    - groupId: g2
 #      outAdapters:
 #      outAdapters:
 #      - name: logger
 #      - name: logger
-
+#
 #adapter.conf:
 #adapter.conf:
 #  datasourceConfigs:
 #  datasourceConfigs:
 #    defaultDS:
 #    defaultDS: