pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>no.priv.bang.demos</groupId>
  4. <artifactId>frontend-karaf-demo</artifactId>
  5. <version>2.0.0-SNAPSHOT</version>
  6. <name>React app test</name>
  7. <properties>
  8. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  9. <maven.bundle.plugin.version>5.1.9</maven.bundle.plugin.version>
  10. <karaf.version>4.4.6</karaf.version>
  11. <karaf-feature-name>${project.artifactId}</karaf-feature-name>
  12. <Bundle-SymbolicName>no.priv.bang.demos.${project.artifactId}</Bundle-SymbolicName>
  13. <frontend.maven.plugin.version>1.15.1</frontend.maven.plugin.version>
  14. <nodejs.version>v20.18.0</nodejs.version>
  15. <jersey-feature.version>1.9.9</jersey-feature.version>
  16. <bang-servlet.version>1.8.1</bang-servlet.version>
  17. <osgi-service-adapters.version>1.2.0</osgi-service-adapters.version>
  18. <junit.jupiter.version>5.11.3</junit.jupiter.version>
  19. <assertj.version>3.26.3</assertj.version>
  20. <mockito.version>5.14.2</mockito.version>
  21. </properties>
  22. <dependencyManagement>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.apache.karaf</groupId>
  26. <artifactId>karaf-bom</artifactId>
  27. <version>${karaf.version}</version>
  28. <type>pom</type>
  29. <scope>import</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>no.priv.bang.karaf</groupId>
  33. <artifactId>jersey-feature-bom</artifactId>
  34. <version>${jersey-feature.version}</version>
  35. <type>pom</type>
  36. <scope>import</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>no.priv.bang.servlet</groupId>
  40. <artifactId>servlet-bom</artifactId>
  41. <version>${bang-servlet.version}</version>
  42. <type>pom</type>
  43. <scope>import</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  47. <artifactId>adapters-bom</artifactId>
  48. <version>${osgi-service-adapters.version}</version>
  49. <type>pom</type>
  50. <scope>import</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.junit</groupId>
  54. <artifactId>junit-bom</artifactId>
  55. <version>${junit.jupiter.version}</version>
  56. <type>pom</type>
  57. <scope>import</scope>
  58. </dependency>
  59. </dependencies>
  60. </dependencyManagement>
  61. <dependencies>
  62. <dependency>
  63. <groupId>org.osgi</groupId>
  64. <artifactId>osgi.core</artifactId>
  65. <scope>provided</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.osgi</groupId>
  69. <artifactId>org.osgi.service.component.annotations</artifactId>
  70. <scope>provided</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  74. <artifactId>adapters.logservice</artifactId>
  75. <scope>provided</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  79. <artifactId>adapters.logservice</artifactId>
  80. <type>xml</type>
  81. <classifier>features</classifier>
  82. </dependency>
  83. <dependency>
  84. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  85. <artifactId>service-mocks</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.ops4j.pax.web</groupId>
  90. <artifactId>pax-web-api</artifactId>
  91. <scope>provided</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.ops4j.pax.web</groupId>
  95. <artifactId>pax-web-extender-whiteboard</artifactId>
  96. <scope>provided</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>javax.servlet</groupId>
  100. <artifactId>javax.servlet-api</artifactId>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>no.priv.bang.servlet</groupId>
  105. <artifactId>servlet.frontend</artifactId>
  106. <scope>provided</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>no.priv.bang.servlet</groupId>
  110. <artifactId>servlet.frontend</artifactId>
  111. <type>xml</type>
  112. <classifier>features</classifier>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.fasterxml.jackson.core</groupId>
  116. <artifactId>jackson-core</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.fasterxml.jackson.core</groupId>
  120. <artifactId>jackson-databind</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.junit.jupiter</groupId>
  124. <artifactId>junit-jupiter-api</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.junit.jupiter</groupId>
  129. <artifactId>junit-jupiter-engine</artifactId>
  130. <scope>test</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.assertj</groupId>
  134. <artifactId>assertj-core</artifactId>
  135. <version>${assertj.version}</version>
  136. <scope>test</scope>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.mockito</groupId>
  140. <artifactId>mockito-core</artifactId>
  141. <version>${mockito.version}</version>
  142. <scope>test</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.mockrunner</groupId>
  146. <artifactId>mockrunner-servlet</artifactId>
  147. <version>2.0.7</version>
  148. <scope>test</scope>
  149. </dependency>
  150. </dependencies>
  151. <build>
  152. <plugins>
  153. <plugin>
  154. <groupId>com.github.eirslett</groupId>
  155. <artifactId>frontend-maven-plugin</artifactId>
  156. <version>${frontend.maven.plugin.version}</version>
  157. <configuration>
  158. <nodeVersion>${nodejs.version}</nodeVersion>
  159. <workingDirectory>src/main/frontend</workingDirectory>
  160. <installDirectory>target</installDirectory>
  161. </configuration>
  162. <executions>
  163. <execution>
  164. <id>install node and npm</id>
  165. <goals>
  166. <goal>install-node-and-npm</goal>
  167. </goals>
  168. </execution>
  169. <execution>
  170. <id>npm install</id>
  171. <goals>
  172. <goal>npm</goal>
  173. </goals>
  174. </execution>
  175. <execution>
  176. <id>vite build</id>
  177. <goals>
  178. <goal>npx</goal>
  179. </goals>
  180. <configuration>
  181. <arguments>vite build</arguments>
  182. </configuration>
  183. </execution>
  184. </executions>
  185. </plugin>
  186. <plugin>
  187. <artifactId>maven-clean-plugin</artifactId>
  188. <version>3.1.0</version>
  189. <configuration>
  190. <filesets>
  191. <fileset>
  192. <directory>src/main/frontend</directory>
  193. <includes>
  194. <include>**/*.log</include>
  195. </includes>
  196. <followSymlinks>false</followSymlinks>
  197. </fileset>
  198. </filesets>
  199. </configuration>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-compiler-plugin</artifactId>
  204. <version>3.12.1</version>
  205. <configuration>
  206. <release>17</release>
  207. </configuration>
  208. </plugin>
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-source-plugin</artifactId>
  212. <version>2.4</version>
  213. <executions>
  214. <execution>
  215. <id>attach-sources</id>
  216. <goals>
  217. <goal>jar</goal>
  218. </goals>
  219. </execution>
  220. </executions>
  221. </plugin>
  222. <plugin>
  223. <groupId>org.apache.maven.plugins</groupId>
  224. <artifactId>maven-javadoc-plugin</artifactId>
  225. <version>2.10.2</version>
  226. <configuration>
  227. <show>private</show>
  228. </configuration>
  229. <executions>
  230. <execution>
  231. <id>attach-javadocs</id>
  232. <goals>
  233. <goal>jar</goal>
  234. </goals>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-surefire-plugin</artifactId>
  241. <version>3.2.3</version>
  242. <configuration>
  243. <useSystemClassLoader>false</useSystemClassLoader>
  244. </configuration>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.sonarsource.scanner.maven</groupId>
  248. <artifactId>sonar-maven-plugin</artifactId>
  249. <version>3.9.0.2155</version>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.jacoco</groupId>
  253. <artifactId>jacoco-maven-plugin</artifactId>
  254. <version>0.8.10</version>
  255. <executions>
  256. <execution>
  257. <id>report</id>
  258. <goals>
  259. <goal>report</goal>
  260. </goals>
  261. <phase>verify</phase>
  262. </execution>
  263. </executions>
  264. </plugin>
  265. <plugin>
  266. <groupId>org.eluder.coveralls</groupId>
  267. <artifactId>coveralls-maven-plugin</artifactId>
  268. <version>4.3.0</version>
  269. <dependencies>
  270. <dependency>
  271. <groupId>jakarta.xml.bind</groupId>
  272. <artifactId>jakarta.xml.bind-api</artifactId>
  273. <version>2.3.3</version>
  274. </dependency>
  275. </dependencies>
  276. <configuration>
  277. <jacocoReports>
  278. <jacocoReport>${project.basedir}/target/site/jacoco/jacoco.xml</jacocoReport>
  279. </jacocoReports>
  280. </configuration>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.apache.felix</groupId>
  284. <artifactId>maven-bundle-plugin</artifactId>
  285. <version>${maven.bundle.plugin.version}</version>
  286. <configuration>
  287. <supportedProjectTypes>
  288. <supportedProjectType>jar</supportedProjectType>
  289. <supportedProjectType>bundle</supportedProjectType>
  290. <supportedProjectType>war</supportedProjectType>
  291. </supportedProjectTypes>
  292. <instructions>
  293. <Bundle-SymbolicName>${Bundle-SymbolicName}</Bundle-SymbolicName>
  294. <Import-Package>
  295. org.osgi.service.http.context;version="[1,2)",
  296. org.osgi.service.log;version="[1.4,2)",
  297. *
  298. </Import-Package>
  299. <Export-Package>!*</Export-Package>
  300. <Include-Resource>/=target/classes/</Include-Resource>
  301. <_removeheaders>
  302. Private-Package,
  303. Include-Resource,
  304. Embed-Dependency,
  305. Embed-Transitive
  306. </_removeheaders>
  307. <!-- Enable processing of OSGI DS component annotations -->
  308. <_dsannotations>*</_dsannotations>
  309. <!-- Enable processing of OSGI metatype annotations -->
  310. <_metatypeannotations>*</_metatypeannotations>
  311. </instructions>
  312. </configuration>
  313. <executions>
  314. <execution>
  315. <id>manifest</id>
  316. <goals>
  317. <goal>manifest</goal>
  318. </goals>
  319. <configuration>
  320. <supportIncrementalBuild>true</supportIncrementalBuild>
  321. </configuration>
  322. </execution>
  323. <execution>
  324. <id>bundle</id>
  325. <goals>
  326. <goal>bundle</goal>
  327. </goals>
  328. </execution>
  329. </executions>
  330. </plugin>
  331. <plugin>
  332. <groupId>org.apache.karaf.tooling</groupId>
  333. <artifactId>karaf-maven-plugin</artifactId>
  334. <version>${karaf.version}</version>
  335. <extensions>true</extensions>
  336. <configuration>
  337. <startLevel>80</startLevel>
  338. <includeTransitiveDependency>true</includeTransitiveDependency>
  339. <aggregateFeatures>false</aggregateFeatures>
  340. <includeProjectArtifact>true</includeProjectArtifact>
  341. <primaryFeatureName>${karaf-feature-name}</primaryFeatureName>
  342. </configuration>
  343. <executions>
  344. <execution>
  345. <id>generate-features-file</id>
  346. <phase>package</phase>
  347. <goals>
  348. <goal>features-generate-descriptor</goal>
  349. </goals>
  350. </execution>
  351. </executions>
  352. </plugin>
  353. </plugins>
  354. <pluginManagement>
  355. <plugins>
  356. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  357. <plugin>
  358. <groupId>org.eclipse.m2e</groupId>
  359. <artifactId>lifecycle-mapping</artifactId>
  360. <version>1.0.0</version>
  361. <configuration>
  362. <lifecycleMappingMetadata>
  363. <pluginExecutions>
  364. <pluginExecution>
  365. <pluginExecutionFilter>
  366. <groupId>org.apache.karaf.tooling</groupId>
  367. <artifactId>karaf-maven-plugin</artifactId>
  368. <versionRange>[4.4.3,)</versionRange>
  369. <goals>
  370. <goal>features-generate-descriptor</goal>
  371. </goals>
  372. </pluginExecutionFilter>
  373. <action>
  374. <ignore></ignore>
  375. </action>
  376. </pluginExecution>
  377. </pluginExecutions>
  378. </lifecycleMappingMetadata>
  379. </configuration>
  380. </plugin>
  381. </plugins>
  382. </pluginManagement>
  383. <extensions>
  384. <extension>
  385. <groupId>org.apache.maven.wagon</groupId>
  386. <artifactId>wagon-ssh</artifactId>
  387. <version>3.2.0</version>
  388. </extension>
  389. </extensions>
  390. </build>
  391. <distributionManagement>
  392. <repository>
  393. <id>ssh-maven-travis</id>
  394. <url>sftp://maven.bang.priv.no/repository</url>
  395. </repository>
  396. <snapshotRepository>
  397. <id>ssh-maven-travis</id>
  398. <url>sftp://maven.bang.priv.no/repository</url>
  399. </snapshotRepository>
  400. </distributionManagement>
  401. </project>