pom.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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>CDP</urcap.vendor>
  19. <urcap.contactAddress>Seestadtstraße 27</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.8.1</version>
  43. <configuration>
  44. <source>1.8</source>
  45. <target>1.8</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.1.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.1.0</version>
  74. </plugin>
  75. <plugin>
  76. <groupId>org.apache.felix</groupId>
  77. <artifactId>maven-bundle-plugin</artifactId>
  78. <version>4.2.1</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.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. <dependency>
  142. <groupId>org.apache.xmlrpc</groupId>
  143. <artifactId>xmlrpc-client</artifactId>
  144. <version>3.1.3.0</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.xmlrpc</groupId>
  148. <artifactId>xmlrpc-common</artifactId>
  149. <version>3.1.3.0</version>
  150. <exclusions>
  151. <exclusion>
  152. <groupId>org.antlr</groupId>
  153. <artifactId>stringtemplate</artifactId>
  154. </exclusion>
  155. <exclusion>
  156. <groupId>org.antlr</groupId>
  157. <artifactId>antlr-runtime</artifactId>
  158. </exclusion>
  159. </exclusions>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.ws.commons.util</groupId>
  163. <artifactId>ws-commons-util</artifactId>
  164. <version>1.0.2.0</version>
  165. <exclusions>
  166. <exclusion>
  167. <artifactId>xml-apis</artifactId>
  168. <groupId>xml-apis</groupId>
  169. </exclusion>
  170. </exclusions>
  171. </dependency>
  172. <!-- test dependencies -->
  173. <dependency>
  174. <groupId>junit</groupId>
  175. <artifactId>junit</artifactId>
  176. <version>4.12</version>
  177. <scope>test</scope>
  178. </dependency>
  179. </dependencies>
  180. <profiles>
  181. <profile>
  182. <id>remote</id>
  183. <build>
  184. <plugins>
  185. <plugin>
  186. <groupId>org.codehaus.mojo</groupId>
  187. <artifactId>exec-maven-plugin</artifactId>
  188. <version>1.1</version>
  189. <executions>
  190. <execution>
  191. <id>remote-install-urcap</id>
  192. <phase>install</phase>
  193. <goals>
  194. <goal>exec</goal>
  195. </goals>
  196. <configuration>
  197. <executable>sshpass</executable>
  198. <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>
  199. <workingDirectory>.</workingDirectory>
  200. </configuration>
  201. </execution>
  202. <execution>
  203. <id>remote-restart-ui</id>
  204. <phase>install</phase>
  205. <goals>
  206. <goal>exec</goal>
  207. </goals>
  208. <configuration>
  209. <executable>sshpass</executable>
  210. <commandlineArgs>-p ${urcap.install.password} ssh ${urcap.install.username}@${urcap.install.host} pkill java</commandlineArgs>
  211. <workingDirectory>.</workingDirectory>
  212. </configuration>
  213. </execution>
  214. </executions>
  215. </plugin>
  216. </plugins>
  217. </build>
  218. </profile>
  219. <profile>
  220. <id>local</id>
  221. <build>
  222. <plugins>
  223. <plugin>
  224. <groupId>org.codehaus.mojo</groupId>
  225. <artifactId>exec-maven-plugin</artifactId>
  226. <version>1.1</version>
  227. <executions>
  228. <execution>
  229. <id>local-install-urcap</id>
  230. <phase>install</phase>
  231. <goals>
  232. <goal>exec</goal>
  233. </goals>
  234. <configuration>
  235. <executable>cp</executable>
  236. <commandlineArgs>target/${project.build.finalName}.jar ${user.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
  237. <workingDirectory>.</workingDirectory>
  238. </configuration>
  239. </execution>
  240. </executions>
  241. </plugin>
  242. </plugins>
  243. </build>
  244. </profile>
  245. <profile>
  246. <id>ursim</id>
  247. <build>
  248. <plugins>
  249. <plugin>
  250. <groupId>org.codehaus.mojo</groupId>
  251. <artifactId>exec-maven-plugin</artifactId>
  252. <version>1.1</version>
  253. <executions>
  254. <execution>
  255. <id>ursim-install-urcap</id>
  256. <phase>install</phase>
  257. <goals>
  258. <goal>exec</goal>
  259. </goals>
  260. <configuration>
  261. <executable>cp</executable>
  262. <commandlineArgs>target/${project.build.finalName}.jar ${ursim.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
  263. <workingDirectory>.</workingDirectory>
  264. </configuration>
  265. </execution>
  266. </executions>
  267. </plugin>
  268. </plugins>
  269. </build>
  270. </profile>
  271. <profile>
  272. <id>ursimvm</id>
  273. <build>
  274. <plugins>
  275. <plugin>
  276. <groupId>org.codehaus.mojo</groupId>
  277. <artifactId>exec-maven-plugin</artifactId>
  278. <version>1.1</version>
  279. <executions>
  280. <execution>
  281. <id>ursimvm-install-urcap</id>
  282. <phase>install</phase>
  283. <goals>
  284. <goal>exec</goal>
  285. </goals>
  286. <configuration>
  287. <executable>sshpass</executable>
  288. <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>
  289. <workingDirectory>.</workingDirectory>
  290. </configuration>
  291. </execution>
  292. </executions>
  293. </plugin>
  294. </plugins>
  295. </build>
  296. </profile>
  297. </profiles>
  298. </project>