Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

33.Apollo introduces a third-party Jar package to compile

Shulou Source: shulou.com Published: 2022-06-03 06:27:16 10月03日 Update

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

Tags: Compile source code third party code location preface function file time root project Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Technology OPPO Reno Shulou Information Docker