pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <!-- Maven coordinates -->
  6. <parent>
  7. <groupId>org.kurento.tutorial</groupId>
  8. <artifactId>kurento-tutorial</artifactId>
  9. <version>6.7.1</version>
  10. </parent>
  11. <artifactId>kurento-show-data-channel</artifactId>
  12. <packaging>jar</packaging>
  13. <!-- Project-level information -->
  14. <name>Kurento Java Tutorial - Show Data Channel</name>
  15. <description>WebRTC in loopback with filter to show data received through data channel</description>
  16. <!-- Project configuration -->
  17. <properties>
  18. <demo.port>8443</demo.port>
  19. <start-class>org.kurento.tutorial.showdatachannel.ShowDataChannelApp</start-class>
  20. </properties>
  21. <dependencies>
  22. <!-- Spring -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework</groupId>
  29. <artifactId>spring-websocket</artifactId>
  30. </dependency>
  31. <!-- WebJars -->
  32. <dependency>
  33. <groupId>org.webjars</groupId>
  34. <artifactId>webjars-locator</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.webjars.bower</groupId>
  38. <artifactId>jquery</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.webjars.bower</groupId>
  42. <artifactId>bootstrap</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.webjars.bower</groupId>
  46. <artifactId>demo-console</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.webjars.bower</groupId>
  50. <artifactId>ekko-lightbox</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.webjars.bower</groupId>
  54. <artifactId>webrtc-adapter</artifactId>
  55. </dependency>
  56. <!-- Kurento -->
  57. <dependency>
  58. <groupId>org.kurento</groupId>
  59. <artifactId>kurento-client</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.kurento</groupId>
  63. <artifactId>kurento-utils-js</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.kurento.module</groupId>
  67. <artifactId>datachannelexample</artifactId>
  68. </dependency>
  69. </dependencies>
  70. <build>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-maven-plugin</artifactId>
  75. <configuration>
  76. <mainClass>${start-class}</mainClass>
  77. <layout>ZIP</layout>
  78. <classifier>exec</classifier>
  79. </configuration>
  80. <executions>
  81. <execution>
  82. <goals>
  83. <goal>repackage</goal>
  84. </goals>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.codehaus.mojo</groupId>
  90. <artifactId>exec-maven-plugin</artifactId>
  91. <configuration>
  92. <mainClass>${start-class}</mainClass>
  93. </configuration>
  94. </plugin>
  95. </plugins>
  96. <resources>
  97. <resource>
  98. <directory>src/main/resources</directory>
  99. <filtering>false</filtering>
  100. </resource>
  101. <resource>
  102. <directory>src/main/resources</directory>
  103. <filtering>true</filtering>
  104. <includes>
  105. <include>application.properties</include>
  106. <include>banner.txt</include>
  107. </includes>
  108. </resource>
  109. </resources>
  110. </build>
  111. <profiles>
  112. <profile>
  113. <id>default</id>
  114. <activation>
  115. <activeByDefault>true</activeByDefault>
  116. </activation>
  117. <build>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-assembly-plugin</artifactId>
  122. <configuration>
  123. <descriptor>src/assembly/bin.xml</descriptor>
  124. <finalName>${project.artifactId}-${project.version}</finalName>
  125. <appendAssemblyId>false</appendAssemblyId>
  126. </configuration>
  127. <executions>
  128. <execution>
  129. <phase>package</phase>
  130. <goals>
  131. <goal>single</goal>
  132. </goals>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-antrun-plugin</artifactId>
  139. <executions>
  140. <execution>
  141. <phase>package</phase>
  142. <configuration>
  143. <tasks>
  144. <copy
  145. file="${project.build.directory}/target/${project.artifactId}-${project.version}-bin.zip"
  146. tofile="${project.build.directory}/target/${project.artifactId}-${project.version}.zip" />
  147. </tasks>
  148. </configuration>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. </plugins>
  153. </build>
  154. </profile>
  155. <profile>
  156. <id>no-assembly</id>
  157. </profile>
  158. </profiles>
  159. </project>