1+ <!--
2+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
3+ ~ contributor license agreements. See the NOTICE file distributed with
4+ ~ this work for additional information regarding copyright ownership.
5+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
6+ ~ (the "License"); you may not use this file except in compliance with
7+ ~ the License. You may obtain a copy of the License at
8+ ~
9+ ~ http://www.apache.org/licenses/LICENSE-2.0
10+ ~
11+ ~ Unless required by applicable law or agreed to in writing, software
12+ ~ distributed under the License is distributed on an "AS IS" BASIS,
13+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ ~ See the License for the specific language governing permissions and
15+ ~ limitations under the License.
16+ -->
17+
18+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
19+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
20+ <modelVersion >4.0.0</modelVersion >
21+ <parent >
22+ <groupId >org.apache.servicecomb</groupId >
23+ <version >2.10.0-SNAPSHOT</version >
24+ <artifactId >foundations</artifactId >
25+ </parent >
26+
27+ <artifactId >foundation-ext-archaius</artifactId >
28+ <name >Java Chassis::Foundations::Ext-Archaius</name >
29+ <packaging >jar</packaging >
30+
31+ <dependencies >
32+ <dependency >
33+ <groupId >com.netflix.archaius</groupId >
34+ <artifactId >archaius-core</artifactId >
35+ <scope >provided</scope >
36+ </dependency >
37+ </dependencies >
38+
39+ <build >
40+ <plugins >
41+ <!-- 使用 dependency 插件,在打包前把 jar 解压到你的编译目录 -->
42+ <plugin >
43+ <groupId >org.apache.maven.plugins</groupId >
44+ <artifactId >maven-dependency-plugin</artifactId >
45+ <executions >
46+ <execution >
47+ <id >unpack-commons-configuration</id >
48+ <!-- 必须在 package 阶段之前执行,这里选 prepare-package -->
49+ <phase >prepare-package</phase >
50+ <goals >
51+ <goal >unpack</goal >
52+ </goals >
53+ <configuration >
54+ <artifactItems >
55+ <artifactItem >
56+ <groupId >commons-configuration</groupId >
57+ <artifactId >commons-configuration</artifactId >
58+ <version >${commons-configuration.version} </version >
59+ <!-- 解压到哪里?直接解压到项目的 classes 目录,和你的代码混在一起 -->
60+ <outputDirectory >${project.build.outputDirectory} </outputDirectory >
61+ <!-- 覆盖已有文件 -->
62+ <overWrite >true</overWrite >
63+ <!-- 【必须】排除掉原来的签名文件,防止最终 jar 报 SecurityException -->
64+ <excludes >META-INF/*,digesterRules.xml,properties.dtd,PropertyList-1.0.dtd</excludes >
65+ </artifactItem >
66+ <artifactItem >
67+ <groupId >commons-lang</groupId >
68+ <artifactId >commons-lang</artifactId >
69+ <version >${commons-lang.version} </version >
70+ <!-- 解压到哪里?直接解压到项目的 classes 目录,和你的代码混在一起 -->
71+ <outputDirectory >${project.build.outputDirectory} </outputDirectory >
72+ <!-- 覆盖已有文件 -->
73+ <overWrite >true</overWrite >
74+ <!-- 【必须】排除掉原来的签名文件,防止最终 jar 报 SecurityException -->
75+ <excludes >META-INF/*,digesterRules.xml,properties.dtd,PropertyList-1.0.dtd</excludes >
76+ </artifactItem >
77+ <artifactItem >
78+ <groupId >com.netflix.archaius</groupId >
79+ <artifactId >archaius-core</artifactId >
80+ <version >${archaius.version} </version >
81+ <!-- 解压到哪里?直接解压到项目的 classes 目录,和你的代码混在一起 -->
82+ <outputDirectory >${project.build.outputDirectory} </outputDirectory >
83+ <!-- 覆盖已有文件 -->
84+ <overWrite >true</overWrite >
85+ <!-- 【必须】排除掉原来的签名文件,防止最终 jar 报 SecurityException -->
86+ <excludes >META-INF/*,sampleapp.properties</excludes >
87+ </artifactItem >
88+ </artifactItems >
89+ </configuration >
90+ </execution >
91+ </executions >
92+ </plugin >
93+ <plugin >
94+ <groupId >com.github.spotbugs</groupId >
95+ <artifactId >spotbugs-maven-plugin</artifactId >
96+ <inherited >false</inherited >
97+ <configuration >
98+ <skip >true</skip >
99+ </configuration >
100+ </plugin >
101+ </plugins >
102+ </build >
103+ </project >
0 commit comments