pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <?xml version="1.0"?>
  2. <project
  3. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>cdp</groupId>
  7. <artifactId>uraxis</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <name>uraxis</name>
  10. <packaging>bundle</packaging>
  11. <properties>
  12. <!--********************************************************************-->
  13. <!-- Note: Update this section with relevant meta data -->
  14. <!-- that comes along with your URCap -->
  15. <!--********************************************************************-->
  16. <!--******************* BEGINNING OF URCAP META DATA *******************-->
  17. <urcap.symbolicname>cdp.uraxis</urcap.symbolicname>
  18. <urcap.vendor>URCaps R us Inc.</urcap.vendor>
  19. <urcap.contactAddress>123 URCap Street</urcap.contactAddress>
  20. <urcap.copyright>Copyright notice (C)</urcap.copyright>
  21. <urcap.description>This is a description of the URCap</urcap.description>
  22. <urcap.licenseType>License type</urcap.licenseType>
  23. <!--********************** END OF URCAP META DATA **********************-->
  24. <!--********************************************************************-->
  25. <!-- Host, username and password of the robot to be used when running "mvn install -Premote" -->
  26. <urcap.install.host>localhost</urcap.install.host>
  27. <urcap.install.username>root</urcap.install.username>
  28. <urcap.install.password>easybot</urcap.install.password>
  29. <!--Install path for the UR Sim-->
  30. <ursim.home></ursim.home>
  31. <!--Host and standard user/password for UR Sim running in a VM-->
  32. <ursimvm.install.host></ursimvm.install.host>
  33. <ursimvm.install.username>ur</ursimvm.install.username>
  34. <ursimvm.install.password>easybot</ursimvm.install.password>
  35. </properties>
  36. <build>
  37. <plugins>
  38. <plugin>
  39. <groupId>org.apache.maven.plugins</groupId>
  40. <artifactId>maven-compiler-plugin</artifactId>
  41. <version>3.6.0</version>
  42. <configuration>
  43. <source>1.6</source>
  44. <target>1.6</target>
  45. </configuration>
  46. </plugin>
  47. <plugin>
  48. <groupId>org.apache.maven.plugins</groupId>
  49. <artifactId>maven-install-plugin</artifactId>
  50. <version>2.5.2</version>
  51. </plugin>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-surefire-plugin</artifactId>
  55. <version>2.22.1</version>
  56. <configuration>
  57. <runOrder>alphabetical</runOrder>
  58. <useSystemClassLoader>false</useSystemClassLoader>
  59. </configuration>
  60. </plugin>
  61. <plugin>
  62. <artifactId>maven-jar-plugin</artifactId>
  63. <version>3.0.2</version>
  64. <configuration>
  65. <archive>
  66. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  67. </archive>
  68. </configuration>
  69. </plugin>
  70. <plugin>
  71. <artifactId>maven-resources-plugin</artifactId>
  72. <version>3.0.2</version>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.apache.felix</groupId>
  76. <artifactId>maven-bundle-plugin</artifactId>
  77. <version>2.4.0</version>
  78. <extensions>true</extensions>
  79. <executions>
  80. <execution>
  81. <id>bundle-manifest</id>
  82. <phase>process-classes</phase>
  83. <goals>
  84. <goal>manifest</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. <configuration>
  89. <instructions>
  90. <!--********** DO NOT MODIFY THE ENTRIES OF THIS SECTION **********-->
  91. <Bundle-Category>URCap</Bundle-Category>
  92. <Bundle-Activator>uraxis.impl.Activator</Bundle-Activator>
  93. <Bundle-Vendor>${urcap.vendor}</Bundle-Vendor>
  94. <Bundle-ContactAddress>${urcap.contactAddress}</Bundle-ContactAddress>
  95. <Bundle-Copyright>${urcap.copyright}</Bundle-Copyright>
  96. <Bundle-LicenseType>${urcap.licenseType}</Bundle-LicenseType>
  97. <Bundle-Description>${urcap.description}</Bundle-Description>
  98. <!--***************************************************************-->
  99. <Import-Package>
  100. com.ur.urcap.api*;version="[1.7.0,2.0.0)",
  101. *
  102. </Import-Package>
  103. </instructions>
  104. </configuration>
  105. </plugin>
  106. <plugin>
  107. <groupId>org.codehaus.mojo</groupId>
  108. <artifactId>exec-maven-plugin</artifactId>
  109. <version>1.1</version>
  110. <executions>
  111. <!-- generate URCap package after compiling -->
  112. <execution>
  113. <id>package-urcap</id>
  114. <phase>package</phase>
  115. <goals>
  116. <goal>exec</goal>
  117. </goals>
  118. <configuration>
  119. <executable>cp</executable>
  120. <commandlineArgs>target/${project.build.finalName}.jar target/${project.build.finalName}.urcap</commandlineArgs>
  121. <workingDirectory>.</workingDirectory>
  122. </configuration>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. </plugins>
  127. </build>
  128. <dependencies>
  129. <dependency>
  130. <groupId>org.osgi</groupId>
  131. <artifactId>org.osgi.core</artifactId>
  132. <version>4.3.0</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.ur.urcap</groupId>
  136. <artifactId>api</artifactId>
  137. <version>1.7.0</version>
  138. <scope>provided</scope>
  139. </dependency>
  140. <!-- test dependencies -->
  141. <dependency>
  142. <groupId>junit</groupId>
  143. <artifactId>junit</artifactId>
  144. <version>4.12</version>
  145. <scope>test</scope>
  146. </dependency>
  147. </dependencies>
  148. <profiles>
  149. <profile>
  150. <id>remote</id>
  151. <build>
  152. <plugins>
  153. <plugin>
  154. <groupId>org.codehaus.mojo</groupId>
  155. <artifactId>exec-maven-plugin</artifactId>
  156. <version>1.1</version>
  157. <executions>
  158. <execution>
  159. <id>remote-install-urcap</id>
  160. <phase>install</phase>
  161. <goals>
  162. <goal>exec</goal>
  163. </goals>
  164. <configuration>
  165. <executable>sshpass</executable>
  166. <commandlineArgs>-p ${urcap.install.password} scp -o StrictHostKeyChecking=no target/${project.build.finalName}.jar ${urcap.install.username}@${urcap.install.host}:/root/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
  167. <workingDirectory>.</workingDirectory>
  168. </configuration>
  169. </execution>
  170. <execution>
  171. <id>remote-restart-ui</id>
  172. <phase>install</phase>
  173. <goals>
  174. <goal>exec</goal>
  175. </goals>
  176. <configuration>
  177. <executable>sshpass</executable>
  178. <commandlineArgs>-p ${urcap.install.password} ssh ${urcap.install.username}@${urcap.install.host} pkill java</commandlineArgs>
  179. <workingDirectory>.</workingDirectory>
  180. </configuration>
  181. </execution>
  182. </executions>
  183. </plugin>
  184. </plugins>
  185. </build>
  186. </profile>
  187. <profile>
  188. <id>local</id>
  189. <build>
  190. <plugins>
  191. <plugin>
  192. <groupId>org.codehaus.mojo</groupId>
  193. <artifactId>exec-maven-plugin</artifactId>
  194. <version>1.1</version>
  195. <executions>
  196. <execution>
  197. <id>local-install-urcap</id>
  198. <phase>install</phase>
  199. <goals>
  200. <goal>exec</goal>
  201. </goals>
  202. <configuration>
  203. <executable>cp</executable>
  204. <commandlineArgs>target/${project.build.finalName}.jar ${user.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
  205. <workingDirectory>.</workingDirectory>
  206. </configuration>
  207. </execution>
  208. </executions>
  209. </plugin>
  210. </plugins>
  211. </build>
  212. </profile>
  213. <profile>
  214. <id>ursim</id>
  215. <build>
  216. <plugins>
  217. <plugin>
  218. <groupId>org.codehaus.mojo</groupId>
  219. <artifactId>exec-maven-plugin</artifactId>
  220. <version>1.1</version>
  221. <executions>
  222. <execution>
  223. <id>ursim-install-urcap</id>
  224. <phase>install</phase>
  225. <goals>
  226. <goal>exec</goal>
  227. </goals>
  228. <configuration>
  229. <executable>cp</executable>
  230. <commandlineArgs>target/${project.build.finalName}.jar ${ursim.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
  231. <workingDirectory>.</workingDirectory>
  232. </configuration>
  233. </execution>
  234. </executions>
  235. </plugin>
  236. </plugins>
  237. </build>
  238. </profile>
  239. <profile>
  240. <id>ursimvm</id>
  241. <build>
  242. <plugins>
  243. <plugin>
  244. <groupId>org.codehaus.mojo</groupId>
  245. <artifactId>exec-maven-plugin</artifactId>
  246. <version>1.1</version>
  247. <executions>
  248. <execution>
  249. <id>ursimvm-install-urcap</id>
  250. <phase>install</phase>
  251. <goals>
  252. <goal>exec</goal>
  253. </goals>
  254. <configuration>
  255. <executable>sshpass</executable>
  256. <commandlineArgs>-p ${ursimvm.install.password} scp -o StrictHostKeyChecking=no target/${project.build.finalName}.jar ${ursimvm.install.username}@${ursimvm.install.host}:/home/ur/ursim-current/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
  257. <workingDirectory>.</workingDirectory>
  258. </configuration>
  259. </execution>
  260. </executions>
  261. </plugin>
  262. </plugins>
  263. </build>
  264. </profile>
  265. </profiles>
  266. </project>