[Dubbo-2864] Fix build failed with -Prelease (#2923)
authorYuhao Bi <byh0831@gmail.com>
Tue, 11 Dec 2018 02:33:03 +0000 (10:33 +0800)
committerIan Luo <ian.luo@gmail.com>
Tue, 11 Dec 2018 02:33:03 +0000 (10:33 +0800)
fixes #2864

pom.xml

diff --git a/pom.xml b/pom.xml
index 8f3c0e5..6c2c924 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         </profile>
         <profile>
             <id>release</id>
+            <properties>
+                <log4j2_version>2.11.1</log4j2_version>
+            </properties>
             <build>
                 <plugins>
                     <plugin>
                                 </goals>
                                 <configuration>
                                     <doclint>none</doclint>
+                                    <additionalDependencies>
+                                        <additionalDependency>
+                                            <groupId>org.apache.logging.log4j</groupId>
+                                            <artifactId>log4j-api</artifactId>
+                                            <version>${log4j2_version}</version>
+                                        </additionalDependency>
+                                        <additionalDependency>
+                                            <groupId>org.apache.logging.log4j</groupId>
+                                            <artifactId>log4j-core</artifactId>
+                                            <version>${log4j2_version}</version>
+                                        </additionalDependency>
+                                    </additionalDependencies>
                                 </configuration>
                             </execution>
                         </executions>