pom.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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" xml:space="preserve">
  3. <!-- Copyright 2020 Steinar Bang -->
  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. <!-- http://www.apache.org/licenses/LICENSE-2.0 -->
  9. <!-- Unless required by applicable law or agreed to in writing, -->
  10. <!-- software distributed under the License is distributed on an "AS IS" BASIS, -->
  11. <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
  12. <!-- See the License for the specific language governing permissions and limitations -->
  13. <!-- under the License. -->
  14. <modelVersion>4.0.0</modelVersion>
  15. <parent>
  16. <groupId>no.priv.bang.ukelonn</groupId>
  17. <artifactId>ukelonn</artifactId>
  18. <version>1.0.0-SNAPSHOT</version>
  19. </parent>
  20. <groupId>no.priv.bang.ukelonn.docker</groupId>
  21. <artifactId>docker</artifactId>
  22. <packaging>pom</packaging>
  23. <name>ukelonn webapp docker images</name>
  24. <modules>
  25. <module>ukelonn-demo</module>
  26. <module>ukelonn</module>
  27. </modules>
  28. <properties>
  29. <skip.docker>true</skip.docker>
  30. </properties>
  31. <build>
  32. <pluginManagement>
  33. <plugins>
  34. <plugin>
  35. <groupId>com.spotify</groupId>
  36. <artifactId>docker-maven-plugin</artifactId>
  37. <version>1.2.2</version>
  38. <configuration>
  39. <skipDocker>${skip.docker}</skipDocker>
  40. <baseImage>apache/karaf:${karaf.version}</baseImage>
  41. <dockerDirectory>${project.basedir}/docker</dockerDirectory>
  42. </configuration>
  43. <executions>
  44. <execution>
  45. <id>build-image</id>
  46. <phase>package</phase>
  47. <goals>
  48. <goal>build</goal>
  49. </goals>
  50. </execution>
  51. </executions>
  52. </plugin>
  53. </plugins>
  54. </pluginManagement>
  55. </build>
  56. <profiles>
  57. <profile>
  58. <id>enable-docker-on-linux</id>
  59. <properties>
  60. <skip.docker>false</skip.docker>
  61. </properties>
  62. <activation>
  63. <file>
  64. <exists>/var/run/docker.pid</exists>
  65. </file>
  66. </activation>
  67. </profile>
  68. </profiles>
  69. </project>