Browse Source

application.yml不打包进jar, 解决jar中的application.yml和config中的会合并bug

mcy 6 years ago
parent
commit
ed1feb9502
1 changed files with 8 additions and 0 deletions
  1. 8 0
      client-adapter/launcher/pom.xml

+ 8 - 0
client-adapter/launcher/pom.xml

@@ -166,6 +166,14 @@
                 </executions>
             </plugin>
         </plugins>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <excludes>
+                    <exclude>application.yml</exclude>
+                </excludes>
+            </resource>
+        </resources>
     </build>
 
     <profiles>