pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2016-2017 Steinar Bang -->
  3. <!-- -->
  4. <!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
  5. <!-- you may not use this file except in compliance with the License. -->
  6. <!-- You may obtain a copy of the License at -->
  7. <!-- http://www.apache.org/licenses/LICENSE-2.0 -->
  8. <!-- Unless required by applicable law or agreed to in writing, -->
  9. <!-- software distributed under the License is distributed on an "AS IS" BASIS, -->
  10. <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
  11. <!-- See the License for the specific language governing permissions and limitations -->
  12. <!-- under the License. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xml:space="preserve">
  14. <modelVersion>4.0.0</modelVersion>
  15. <parent>
  16. <artifactId>parent</artifactId>
  17. <groupId>no.priv.bang.ukelonn</groupId>
  18. <version>1.0.0-SNAPSHOT</version>
  19. </parent>
  20. <artifactId>ukelonn.bundle.db.liquibase</artifactId>
  21. <name>Ukelonn webapp Liquibase change list OSGi bundle</name>
  22. <properties>
  23. <Bundle-SymbolicName>no.priv.bang.ukelonn.db.liquibase</Bundle-SymbolicName>
  24. <karaf-feature-name>ukelonn-db-liquibase</karaf-feature-name>
  25. </properties>
  26. <dependencies>
  27. <dependency>
  28. <groupId>org.liquibase</groupId>
  29. <artifactId>liquibase-core</artifactId>
  30. </dependency>
  31. </dependencies>
  32. <build>
  33. <resources>
  34. <resource>
  35. <directory>src/main/resources</directory>
  36. <excludes>
  37. <exclude>**/*.rnc</exclude>
  38. <exclude>**/schemas.xml</exclude>
  39. </excludes>
  40. </resource>
  41. </resources>
  42. <plugins>
  43. <plugin>
  44. <groupId>org.apache.felix</groupId>
  45. <artifactId>maven-bundle-plugin</artifactId>
  46. <extensions>true</extensions>
  47. <configuration>
  48. <supportedProjectTypes>
  49. <supportedProjectType>jar</supportedProjectType>
  50. <supportedProjectType>bundle</supportedProjectType>
  51. <supportedProjectType>war</supportedProjectType>
  52. </supportedProjectTypes>
  53. <instructions>
  54. <Bundle-SymbolicName>${Bundle-SymbolicName}</Bundle-SymbolicName>
  55. <Bundle-Version>${project.version}</Bundle-Version>
  56. <Export-Package>no.priv.bang.ukelonn.bundle.db.liquibase</Export-Package>
  57. <_removeheaders>
  58. Include-Resource,
  59. Private-Package,
  60. Embed-Dependency,
  61. Embed-Transitive
  62. </_removeheaders>
  63. </instructions>
  64. </configuration>
  65. <executions>
  66. <execution>
  67. <id>bundle</id>
  68. <goals>
  69. <goal>bundle</goal>
  70. </goals>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-surefire-plugin</artifactId>
  77. <configuration>
  78. <systemProperties>
  79. <property>
  80. <name>derby.stream.error.file</name>
  81. <value>target/derby.log</value>
  82. </property>
  83. </systemProperties>
  84. </configuration>
  85. </plugin>
  86. <plugin>
  87. <groupId>org.apache.karaf.tooling</groupId>
  88. <artifactId>karaf-maven-plugin</artifactId>
  89. <configuration>
  90. <primaryFeatureName>${karaf-feature-name}</primaryFeatureName>
  91. </configuration>
  92. </plugin>
  93. <plugin>
  94. <groupId>com.github.cjnygard</groupId>
  95. <artifactId>rest-maven-plugin</artifactId>
  96. <executions>
  97. <execution>
  98. <id>update-bundle</id>
  99. <phase>deploy</phase>
  100. <goals>
  101. <goal>rest-request</goal>
  102. </goals>
  103. <configuration>
  104. <resource>system/console/bundles/${Bundle-SymbolicName}</resource>
  105. <method>POST</method>
  106. <fileset>
  107. <directory>${project.build.directory}</directory>
  108. <includes>
  109. <include>karaf-console-rest-post-update-arguments</include>
  110. </includes>
  111. </fileset>
  112. </configuration>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. </plugins>
  117. </build>
  118. </project>