pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2019 NAVER Corp.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ 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. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  18. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  19. <modelVersion>4.0.0</modelVersion>
  20. <parent>
  21. <groupId>com.navercorp.pinpoint</groupId>
  22. <artifactId>pinpoint</artifactId>
  23. <version>2.3.3</version>
  24. </parent>
  25. <artifactId>pinpoint-web</artifactId>
  26. <name>pinpoint-web</name>
  27. <packaging>jar</packaging>
  28. <properties>
  29. <jdk.version>1.8</jdk.version>
  30. <jdk.home>${env.JAVA_8_HOME}</jdk.home>
  31. <sniffer.artifactid>java18</sniffer.artifactid>
  32. <grunt.build.command>build_release_without_lint</grunt.build.command>
  33. <!-- java back-end development option -->
  34. <build.frontend.skip>false</build.frontend.skip>
  35. <guava.version>${guava-jdk8.version}</guava.version>
  36. <javax.servlet.version>${javax.servlet4.version}</javax.servlet.version>
  37. <spring.version>${spring5.version}</spring.version>
  38. <spring.security.version>${spring.security5.version}</spring.security.version>
  39. <log4j2.version>${log4j2-jdk8.version}</log4j2.version>
  40. <thrift.version>${thrift-jdk8.version}</thrift.version>
  41. <pinpoint.web.executable.name>${project.artifactId}-boot-${project.version}</pinpoint.web.executable.name>
  42. </properties>
  43. <dependencies>
  44. <dependency>
  45. <groupId>com.navercorp.pinpoint</groupId>
  46. <artifactId>pinpoint-commons</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.navercorp.pinpoint</groupId>
  50. <artifactId>pinpoint-commons-server</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.navercorp.pinpoint</groupId>
  54. <artifactId>pinpoint-commons-hbase</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.navercorp.pinpoint</groupId>
  58. <artifactId>pinpoint-rpc</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.navercorp.pinpoint</groupId>
  62. <artifactId>pinpoint-thrift</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.navercorp.pinpoint</groupId>
  66. <artifactId>pinpoint-plugins-assembly</artifactId>
  67. <type>pom</type>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.navercorp.pinpoint</groupId>
  71. <artifactId>pinpoint-agent-plugins</artifactId>
  72. <type>pom</type>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.navercorp.pinpoint</groupId>
  76. <artifactId>pinpoint-grpc</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.google.guava</groupId>
  80. <artifactId>guava</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.netty</groupId>
  84. <artifactId>netty</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.zookeeper</groupId>
  88. <artifactId>zookeeper</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>commons-lang</groupId>
  92. <artifactId>commons-lang</artifactId>
  93. <scope>runtime</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.apache.commons</groupId>
  97. <artifactId>commons-lang3</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.commons</groupId>
  101. <artifactId>commons-text</artifactId>
  102. <version>1.9</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.commons</groupId>
  106. <artifactId>commons-collections4</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.thrift</groupId>
  110. <artifactId>libthrift</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>javax.servlet</groupId>
  114. <artifactId>javax.servlet-api</artifactId>
  115. </dependency>
  116. <!-- Spring depedencies -->
  117. <dependency>
  118. <groupId>org.springframework</groupId>
  119. <artifactId>spring-core</artifactId>
  120. <exclusions>
  121. <exclusion>
  122. <groupId>commons-logging</groupId>
  123. <artifactId>commons-logging</artifactId>
  124. </exclusion>
  125. </exclusions>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework</groupId>
  129. <artifactId>spring-test</artifactId>
  130. <scope>test</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.jayway.jsonpath</groupId>
  134. <artifactId>json-path</artifactId>
  135. <scope>test</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springframework</groupId>
  139. <artifactId>spring-web</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.springframework</groupId>
  143. <artifactId>spring-webmvc</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.springframework</groupId>
  147. <artifactId>spring-websocket</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.springframework</groupId>
  151. <artifactId>spring-jdbc</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.springframework</groupId>
  155. <artifactId>spring-context</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.springframework</groupId>
  159. <artifactId>spring-context-support</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.springframework</groupId>
  163. <artifactId>spring-messaging</artifactId>
  164. <version>${spring.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.springframework.security</groupId>
  168. <artifactId>spring-security-web</artifactId>
  169. <version>${spring.security.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.springframework.security</groupId>
  173. <artifactId>spring-security-config</artifactId>
  174. <version>${spring.security.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.springframework.security</groupId>
  178. <artifactId>spring-security-messaging</artifactId>
  179. <version>${spring.security.version}</version>
  180. </dependency>
  181. <!-- <dependency>-->
  182. <!-- <groupId>org.springframework.boot</groupId>-->
  183. <!-- <artifactId>spring-boot-starter-actuator</artifactId>-->
  184. <!-- <version>${spring.boot.version}</version>-->
  185. <!-- </dependency>-->
  186. <dependency>
  187. <groupId>org.springframework.boot</groupId>
  188. <artifactId>spring-boot-starter-web</artifactId>
  189. <version>${spring.boot.version}</version>
  190. <exclusions>
  191. <exclusion>
  192. <groupId>org.springframework.boot</groupId>
  193. <artifactId>spring-boot-starter-logging</artifactId>
  194. </exclusion>
  195. </exclusions>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.springframework.boot</groupId>
  199. <artifactId>spring-boot-starter-log4j2</artifactId>
  200. <version>${spring.boot.version}</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.springframework.boot</groupId>
  204. <artifactId>spring-boot-starter-tomcat</artifactId>
  205. <version>${spring.boot.version}</version>
  206. <scope>provided</scope>
  207. </dependency>
  208. <!-- Mybatis dependecies -->
  209. <dependency>
  210. <groupId>com.zaxxer</groupId>
  211. <artifactId>HikariCP</artifactId>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.mybatis</groupId>
  215. <artifactId>mybatis</artifactId>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.mybatis</groupId>
  219. <artifactId>mybatis-spring</artifactId>
  220. <exclusions>
  221. <exclusion>
  222. <groupId>org.springframework</groupId>
  223. <artifactId>spring-core</artifactId>
  224. </exclusion>
  225. <exclusion>
  226. <groupId>org.springframework</groupId>
  227. <artifactId>spring-tx</artifactId>
  228. </exclusion>
  229. <exclusion>
  230. <groupId>org.springframework</groupId>
  231. <artifactId>spring-jdbc</artifactId>
  232. </exclusion>
  233. <exclusion>
  234. <groupId>org.springframework</groupId>
  235. <artifactId>spring-context</artifactId>
  236. </exclusion>
  237. </exclusions>
  238. </dependency>
  239. <dependency>
  240. <groupId>mysql</groupId>
  241. <artifactId>mysql-connector-java</artifactId>
  242. </dependency>
  243. <!-- Caching dependecies -->
  244. <dependency>
  245. <groupId>com.github.ben-manes.caffeine</groupId>
  246. <artifactId>caffeine</artifactId>
  247. </dependency>
  248. <dependency>
  249. <groupId>com.fasterxml.jackson.core</groupId>
  250. <artifactId>jackson-core</artifactId>
  251. </dependency>
  252. <dependency>
  253. <groupId>com.fasterxml.jackson.core</groupId>
  254. <artifactId>jackson-annotations</artifactId>
  255. </dependency>
  256. <dependency>
  257. <groupId>com.fasterxml.jackson.core</groupId>
  258. <artifactId>jackson-databind</artifactId>
  259. </dependency>
  260. <!-- Logging dependencies -->
  261. <dependency>
  262. <groupId>org.slf4j</groupId>
  263. <artifactId>slf4j-api</artifactId>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.apache.logging.log4j</groupId>
  267. <artifactId>log4j-jcl</artifactId>
  268. </dependency>
  269. <dependency>
  270. <groupId>org.apache.logging.log4j</groupId>
  271. <artifactId>log4j-slf4j-impl</artifactId>
  272. </dependency>
  273. <dependency>
  274. <groupId>org.apache.logging.log4j</groupId>
  275. <artifactId>log4j-core</artifactId>
  276. </dependency>
  277. <dependency>
  278. <groupId>commons-codec</groupId>
  279. <artifactId>commons-codec</artifactId>
  280. </dependency>
  281. <dependency>
  282. <groupId>javax.mail</groupId>
  283. <artifactId>mail</artifactId>
  284. </dependency>
  285. <dependency>
  286. <groupId>io.jsonwebtoken</groupId>
  287. <artifactId>jjwt</artifactId>
  288. <version>${jjwt.version}</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>javax.xml.bind</groupId>
  292. <artifactId>jaxb-api</artifactId>
  293. <version>${jaxb.version}</version>
  294. </dependency>
  295. <!-- Test dependencies -->
  296. <dependency>
  297. <groupId>com.navercorp.pinpoint</groupId>
  298. <artifactId>pinpoint-profiler</artifactId>
  299. <scope>test</scope>
  300. </dependency>
  301. <dependency>
  302. <groupId>com.navercorp.pinpoint</groupId>
  303. <artifactId>pinpoint-collector</artifactId>
  304. <version>${project.version}</version>
  305. <scope>test</scope>
  306. </dependency>
  307. <dependency>
  308. <groupId>org.aspectj</groupId>
  309. <artifactId>aspectjweaver</artifactId>
  310. </dependency>
  311. <!-- for zookeeper test -->
  312. <dependency>
  313. <groupId>org.apache.curator</groupId>
  314. <artifactId>curator-test</artifactId>
  315. <scope>test</scope>
  316. </dependency>
  317. <dependency>
  318. <groupId>com.navercorp.pinpoint</groupId>
  319. <artifactId>pinpoint-rpc</artifactId>
  320. <version>${project.version}</version>
  321. <type>test-jar</type>
  322. <scope>test</scope>
  323. </dependency>
  324. </dependencies>
  325. <build>
  326. <plugins>
  327. <plugin>
  328. <groupId>org.springframework.boot</groupId>
  329. <artifactId>spring-boot-maven-plugin</artifactId>
  330. <configuration>
  331. <mainClass>com.navercorp.pinpoint.web.WebApp</mainClass>
  332. <outputDirectory>${project.build.directory}/deploy</outputDirectory>
  333. <executable>true</executable>
  334. <attach>false</attach>
  335. <finalName>${pinpoint.web.executable.name}</finalName>
  336. </configuration>
  337. </plugin>
  338. <!-- build.frontend -->
  339. <plugin>
  340. <groupId>org.apache.maven.plugins</groupId>
  341. <artifactId>maven-assembly-plugin</artifactId>
  342. <executions>
  343. <execution>
  344. <id>build-frontend-source</id>
  345. <phase>package</phase>
  346. <goals>
  347. <goal>single</goal>
  348. </goals>
  349. <configuration>
  350. <outputDirectory>${project.build.directory}</outputDirectory>
  351. <appendAssemblyId>true</appendAssemblyId>
  352. <descriptors>
  353. <descriptor>src/assembly/frontend.xml</descriptor>
  354. </descriptors>
  355. <attach>true</attach>
  356. <skipAssembly>${build.frontend.skip}</skipAssembly>
  357. </configuration>
  358. </execution>
  359. </executions>
  360. </plugin>
  361. <plugin>
  362. <groupId>com.github.eirslett</groupId>
  363. <artifactId>frontend-maven-plugin</artifactId>
  364. <version>${plugin.frontend.version}</version>
  365. <configuration>
  366. <installDirectory>${project.parent.basedir}/${plugin.frontend.node.install.dir}</installDirectory>
  367. <workingDirectory>${basedir}/src/main/angular</workingDirectory>
  368. <skip>${build.frontend.skip}</skip>
  369. </configuration>
  370. <executions>
  371. <execution>
  372. <id>install node and npm</id>
  373. <phase>prepare-package</phase>
  374. <goals>
  375. <goal>install-node-and-npm</goal>
  376. </goals>
  377. <configuration>
  378. <nodeVersion>${plugin.frontend.node.version}</nodeVersion>
  379. <npmVersion>${plugin.frontend.npm.version}</npmVersion>
  380. </configuration>
  381. </execution>
  382. <execution>
  383. <id>npm install</id>
  384. <phase>prepare-package</phase>
  385. <goals>
  386. <goal>npm</goal>
  387. </goals>
  388. <configuration>
  389. <arguments>install</arguments>
  390. </configuration>
  391. </execution>
  392. <execution>
  393. <id>npm run build</id>
  394. <phase>prepare-package</phase>
  395. <goals>
  396. <goal>npm</goal>
  397. </goals>
  398. <configuration>
  399. <arguments>run build:real</arguments>
  400. </configuration>
  401. </execution>
  402. </executions>
  403. </plugin>
  404. </plugins>
  405. </build>
  406. <profiles>
  407. <profile>
  408. <id>forceclean</id>
  409. <build>
  410. <plugins>
  411. <plugin>
  412. <groupId>org.apache.maven.plugins</groupId>
  413. <artifactId>maven-clean-plugin</artifactId>
  414. <executions>
  415. <execution>
  416. <id>node-clean</id>
  417. <phase>clean</phase>
  418. <goals>
  419. <goal>clean</goal>
  420. </goals>
  421. <configuration>
  422. <filesets>
  423. <fileset>
  424. <directory>${project.parent.basedir}/${plugin.frontend.node.install.dir}</directory>
  425. <includes>
  426. <include>**</include>
  427. </includes>
  428. </fileset>
  429. <fileset>
  430. <directory>${basedir}/src/main/angular/node_modules</directory>
  431. <includes>
  432. <include>**</include>
  433. </includes>
  434. </fileset>
  435. </filesets>
  436. </configuration>
  437. </execution>
  438. </executions>
  439. </plugin>
  440. </plugins>
  441. </build>
  442. </profile>
  443. </profiles>
  444. </project>