33.Apollo introduces a third-party Jar package to compile
one。 Preface
After compiling the Apollo source code, we may modify the Apollo source code ourselves, add our own features, and then compile it.
A third-party Jar package is sometimes used to modify the code, so how do you package it into Apollo?
two。 Modify pom.xml
Add package introduction to the pom.xml of the project, taking fastjson as an example
Com.alibaba fastjson 1.2.31 compile
three。 Modify the package file
Position
Source code root / apollo/apollo-distro/src/main/descriptors/common-bin.xml
/ lib false true org.apache.activemq:apollo-* org.scala-lang:scala-library com.alibaba:fastjson.
four。 Recompile and package
Http://483181.blog.51cto.com/473181/1950769