pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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:2222</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. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  36. </properties>
  37. <build>
  38. <plugins>
  39. <plugin>
  40. <groupId>org.apache.maven.plugins</groupId>
  41. <artifactId>maven-compiler-plugin</artifactId>
  42. <version>3.6.0</version>
  43. <configuration>
  44. <source>1.7</source>
  45. <target>1.7</target>
  46. </configuration>
  47. </plugin>
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-install-plugin</artifactId>
  51. <version>2.5.2</version>
  52. </plugin>
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-surefire-plugin</artifactId>
  56. <version>2.22.1</version>
  57. <configuration>
  58. <runOrder>alphabetical</runOrder>
  59. <useSystemClassLoader>false</useSystemClassLoader>
  60. </configuration>
  61. </plugin>
  62. <plugin>
  63. <artifactId>maven-jar-plugin</artifactId>
  64. <version>3.0.2</version>
  65. <configuration>
  66. <archive>
  67. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  68. </archive>
  69. </configuration>
  70. </plugin>
  71. <plugin>
  72. <artifactId>maven-resources-plugin</artifactId>
  73. <version>3.0.2</version>
  74. </plugin>
  75. <plugin>
  76. <groupId>org.apache.felix</groupId>
  77. <artifactId>maven-bundle-plugin</artifactId>
  78. <version>2.4.0</version>
  79. <extensions>true</extensions>
  80. <executions>
  81. <execution>
  82. <id>bundle-manifest</id>
  83. <phase>process-classes</phase>
  84. <goals>
  85. <goal>manifest</goal>
  86. </goals>
  87. </execution>
  88. </executions>
  89. <configuration>
  90. <instructions>
  91. <!--********** DO NOT MODIFY THE ENTRIES OF THIS SECTION **********-->
  92. <Bundle-Category>URCap</Bundle-Category>
  93. <Bundle-Activator>uraxis.impl.Activator</Bundle-Activator>
  94. <Bundle-Vendor>${urcap.vendor}</Bundle-Vendor>
  95. <Bundle-ContactAddress>${urcap.contactAddress}</Bundle-ContactAddress>
  96. <Bundle-Copyright>${urcap.copyright}</Bundle-Copyright>
  97. <Bundle-LicenseType>${urcap.licenseType}</Bundle-LicenseType>
  98. <Bundle-Description>${urcap.description}</Bundle-Description>
  99. <!--***************************************************************-->
  100. <Import-Package>
  101. com.ur.urcap.api*;version="[1.7.0,2.0.0)",
  102. *
  103. </Import-Package>
  104. </instructions>
  105. </configuration>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.codehaus.mojo</groupId>
  109. <artifactId>exec-maven-plugin</artifactId>
  110. <version>1.6.0</version>
  111. <executions>
  112. <!-- generate URCap package after compiling -->
  113. <execution>
  114. <id>package-urcap</id>
  115. <phase>package</phase>
  116. <goals>
  117. <goal>exec</goal>
  118. </goals>
  119. <configuration>
  120. <executable>copy</executable>
  121. <commandlineArgs>target/${project.build.finalName}.jar target/${project.build.finalName}.urcap</commandlineArgs>
  122. <workingDirectory>.</workingDirectory>
  123. </configuration>
  124. </execution>
  125. </executions>
  126. </plugin>
  127. </plugins>
  128. </build>
  129. <dependencies>
  130. <dependency>
  131. <groupId>org.osgi</groupId>
  132. <artifactId>org.osgi.core</artifactId>
  133. <version>4.3.0</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.ur.urcap</groupId>
  137. <artifactId>api</artifactId>
  138. <version>1.7.0</version>
  139. <scope>provided</scope>
  140. </dependency>
  141. <!-- test dependencies -->
  142. <dependency>
  143. <groupId>junit</groupId>
  144. <artifactId>junit</artifactId>
  145. <version>4.12</version>
  146. <scope>test</scope>
  147. </dependency>
  148. </dependencies>
  149. <profiles>
  150. <profile>
  151. <id>remote</id>
  152. <build>
  153. <plugins>
  154. <plugin>
  155. <groupId>org.codehaus.mojo</groupId>
  156. <artifactId>exec-maven-plugin</artifactId>
  157. <version>1.1</version>
  158. <executions>
  159. <execution>
  160. <id>remote-install-urcap</id>
  161. <phase>install</phase>
  162. <goals>
  163. <goal>exec</goal>
  164. </goals>
  165. <configuration>
  166. <executable>sshpass</executable>
  167. <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>
  168. <workingDirectory>.</workingDirectory>
  169. </configuration>
  170. </execution>
  171. <execution>
  172. <id>remote-restart-ui</id>
  173. <phase>install</phase>
  174. <goals>
  175. <goal>exec</goal>
  176. </goals>
  177. <configuration>
  178. <executable>sshpass</executable>
  179. <commandlineArgs>-p ${urcap.install.password} ssh ${urcap.install.username}@${urcap.install.host} pkill java</commandlineArgs>
  180. <workingDirectory>.</workingDirectory>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. </plugins>
  186. </build>
  187. </profile>
  188. <profile>
  189. <id>local</id>
  190. <build>
  191. <plugins>
  192. <plugin>
  193. <groupId>org.codehaus.mojo</groupId>
  194. <artifactId>exec-maven-plugin</artifactId>
  195. <version>1.1</version>
  196. <executions>
  197. <execution>
  198. <id>local-install-urcap</id>
  199. <phase>install</phase>
  200. <goals>
  201. <goal>exec</goal>
  202. </goals>
  203. <configuration>
  204. <executable>cp</executable>
  205. <commandlineArgs>target/${project.build.finalName}.jar ${user.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
  206. <workingDirectory>.</workingDirectory>
  207. </configuration>
  208. </execution>
  209. </executions>
  210. </plugin>
  211. </plugins>
  212. </build>
  213. </profile>
  214. <profile>
  215. <id>ursim</id>
  216. <build>
  217. <plugins>
  218. <plugin>
  219. <groupId>org.codehaus.mojo</groupId>
  220. <artifactId>exec-maven-plugin</artifactId>
  221. <version>1.1</version>
  222. <executions>
  223. <execution>
  224. <id>ursim-install-urcap</id>
  225. <phase>install</phase>
  226. <goals>
  227. <goal>exec</goal>
  228. </goals>
  229. <configuration>
  230. <executable>cp</executable>
  231. <commandlineArgs>target/${project.build.finalName}.jar ${ursim.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
  232. <workingDirectory>.</workingDirectory>
  233. </configuration>
  234. </execution>
  235. </executions>
  236. </plugin>
  237. </plugins>
  238. </build>
  239. </profile>
  240. <profile>
  241. <id>ursimvm</id>
  242. <build>
  243. <plugins>
  244. <plugin>
  245. <groupId>org.codehaus.mojo</groupId>
  246. <artifactId>exec-maven-plugin</artifactId>
  247. <version>1.1</version>
  248. <executions>
  249. <execution>
  250. <id>ursimvm-install-urcap</id>
  251. <phase>install</phase>
  252. <goals>
  253. <goal>exec</goal>
  254. </goals>
  255. <configuration>
  256. <executable>sshpass</executable>
  257. <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>
  258. <workingDirectory>.</workingDirectory>
  259. </configuration>
  260. </execution>
  261. </executions>
  262. </plugin>
  263. </plugins>
  264. </build>
  265. </profile>
  266. </profiles>
  267. </project>