您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

341 行
11KB

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <parent>
  4. <groupId>org.glassfish.corba</groupId>
  5. <artifactId>glassfish-corba</artifactId>
  6. <version>4.2.4</version>
  7. </parent>
  8. <artifactId>glassfish-corba-tests</artifactId>
  9. <name>Functional Tests</name>
  10. <packaging>pom</packaging>
  11. <properties>
  12. <debug.args>-Ddebug=ignored</debug.args>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.glassfish.gmbal</groupId>
  17. <artifactId>gmbal</artifactId>
  18. <version>${gmbal-version}</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>${project.groupId}</groupId>
  22. <artifactId>glassfish-corba-csiv2-idl</artifactId>
  23. <version>${project.version}</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>${project.groupId}</groupId>
  27. <artifactId>idlj</artifactId>
  28. <version>${project.version}</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>${project.groupId}</groupId>
  32. <artifactId>glassfish-corba-omgapi</artifactId>
  33. <version>${project.version}</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>${project.groupId}</groupId>
  37. <artifactId>glassfish-corba-orb</artifactId>
  38. <version>${project.version}</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.glassfish.pfl</groupId>
  42. <artifactId>pfl-basic</artifactId>
  43. <version>${pfl-version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.glassfish.pfl</groupId>
  47. <artifactId>pfl-basic-tools</artifactId>
  48. <version>${pfl-version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.glassfish.pfl</groupId>
  52. <artifactId>pfl-dynamic</artifactId>
  53. <version>${pfl-version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.glassfish.pfl</groupId>
  57. <artifactId>pfl-tf</artifactId>
  58. <version>${pfl-version}</version>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.glassfish.pfl</groupId>
  63. <artifactId>pfl-tf-tools</artifactId>
  64. <version>${pfl-version}</version>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.glassfish.pfl</groupId>
  69. <artifactId>pfl-test</artifactId>
  70. <version>${pfl-version}</version>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.glassfish.external</groupId>
  75. <artifactId>management-api</artifactId>
  76. <version>3.2.1</version>
  77. <scope>test</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.testng</groupId>
  81. <artifactId>testng</artifactId>
  82. <version>6.10</version>
  83. <scope>test</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.glassfish.corba</groupId>
  87. <artifactId>glassfish-corba-tests</artifactId>
  88. <version>4.2.4</version>
  89. </dependency>
  90. </dependencies>
  91. <build>
  92. <plugins>
  93. <plugin>
  94. <groupId>org.codehaus.mojo</groupId>
  95. <artifactId>idlj-maven-plugin</artifactId>
  96. <executions>
  97. <execution>
  98. <goals>
  99. <goal>generate-test</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. <configuration>
  104. <includeDirs>
  105. <includeDir>../omgapi/src/main/idl</includeDir>
  106. <includeDir>../omgapi/src/main/idl-includes</includeDir>
  107. </includeDirs>
  108. <sources>
  109. <source>
  110. <compatible>true</compatible>
  111. <includes>
  112. <include>legacy/**/*.idl</include>
  113. </includes>
  114. <packagePrefixes>
  115. <packagePrefix>
  116. <type>activation</type>
  117. <prefix>com.sun.corba.ee.spi</prefix>
  118. </packagePrefix>
  119. </packagePrefixes>
  120. </source>
  121. <source>
  122. <packagePrefixes>
  123. <packagePrefix>
  124. <type>IOP</type>
  125. <prefix>org.omg</prefix>
  126. </packagePrefix>
  127. <packagePrefix>
  128. <type>Messaging</type>
  129. <prefix>org.omg</prefix>
  130. </packagePrefix>
  131. <packagePrefix>
  132. <type>PortableServer</type>
  133. <prefix>org.omg</prefix>
  134. </packagePrefix>
  135. <packagePrefix>
  136. <type>PortableInterceptor</type>
  137. <prefix>org.omg</prefix>
  138. </packagePrefix>
  139. </packagePrefixes>
  140. <compatible>false</compatible>
  141. <defines>
  142. <define>
  143. <symbol>CORBA3</symbol>
  144. </define>
  145. </defines>
  146. <additionalArguments>
  147. <additionalArgument>-corba</additionalArgument>
  148. <additionalArgument>3.0</additionalArgument>
  149. </additionalArguments>
  150. <excludes>
  151. <exclude>legacy/**</exclude>
  152. </excludes>
  153. </source>
  154. </sources>
  155. </configuration>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.codehaus.mojo</groupId>
  159. <artifactId>rmic-maven-plugin</artifactId>
  160. <configuration>
  161. <testOutputDirectory>${project.build.testOutputDirectory}</testOutputDirectory>
  162. <sources>
  163. <source>
  164. <iiop>true</iiop>
  165. <poa>true</poa>
  166. <keep>true</keep>
  167. <includes>
  168. <include>**/rmiiIServantPOA.class</include>
  169. <include>**/corba/preinvokepostinvoke/MyServant.class</include>
  170. <include>**/corba/rmipoacounter/counterImpl.class</include>
  171. </includes>
  172. </source>
  173. <source>
  174. <keep>true</keep>
  175. <iiop>true</iiop>
  176. <includes>
  177. <include>**/rmiiIServant.class</include>
  178. </includes>
  179. </source>
  180. </sources>
  181. </configuration>
  182. <dependencies>
  183. <dependency>
  184. <groupId>org.glassfish.corba</groupId>
  185. <artifactId>rmic</artifactId>
  186. <version>${project.version}</version>
  187. </dependency>
  188. </dependencies>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-compiler-plugin</artifactId>
  193. <executions>
  194. <execution>
  195. <goals>
  196. <goal>testCompile</goal>
  197. </goals>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-antrun-plugin</artifactId>
  204. <executions>
  205. <execution>
  206. <id>run-tests</id>
  207. <phase>integration-test</phase>
  208. <configuration>
  209. <target>
  210. <ant antfile="../make/build.xml" target="build-tests">
  211. <property name="test-build.dir" value="${project.build.directory}/test" />
  212. <property name="root.dir" value=".." />
  213. <property name="maven.test.classpath" refid="maven.test.classpath" />
  214. </ant>
  215. </target>
  216. </configuration>
  217. <goals>
  218. <goal>run</goal>
  219. </goals>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. </plugins>
  224. </build>
  225. <profiles>
  226. <profile>
  227. <id>tools.jar</id>
  228. <activation>
  229. <file>
  230. <exists>${java.home}/../lib/tools.jar</exists>
  231. </file>
  232. </activation>
  233. <dependencies>
  234. <dependency>
  235. <groupId>com.sun</groupId>
  236. <artifactId>tools</artifactId>
  237. <version>1.6.0</version>
  238. <scope>system</scope>
  239. <systemPath>${java.home}/../lib/tools.jar</systemPath>
  240. </dependency>
  241. </dependencies>
  242. <build>
  243. <plugins>
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-antrun-plugin</artifactId>
  247. <dependencies>
  248. <dependency>
  249. <groupId>com.sun</groupId>
  250. <artifactId>tools</artifactId>
  251. <version>1.6.0</version>
  252. <scope>system</scope>
  253. <systemPath>${java.home}/../lib/tools.jar</systemPath>
  254. </dependency>
  255. </dependencies>
  256. </plugin>
  257. </plugins>
  258. </build>
  259. </profile>
  260. <profile>
  261. <id>all-tests</id>
  262. <build>
  263. <plugins>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-antrun-plugin</artifactId>
  267. <executions>
  268. <execution>
  269. <id>run-tests</id>
  270. <phase>integration-test</phase>
  271. <configuration>
  272. <target>
  273. <ant antfile="../make/build.xml" target="build-tests">
  274. <property name="test-build.dir" value="${project.build.directory}/test" />
  275. <property name="root.dir" value=".." />
  276. <property name="maven.test.classpath" refid="maven.test.classpath" />
  277. </ant>
  278. <ant antfile="../make/build.xml" target="test-all">
  279. <property name="test-build.dir" value="${project.build.directory}/test" />
  280. <property name="root.dir" value=".." />
  281. <property name="maven.test.classpath" refid="maven.test.classpath" />
  282. </ant>
  283. </target>
  284. </configuration>
  285. <goals>
  286. <goal>run</goal>
  287. </goals>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. </plugins>
  292. </build>
  293. </profile>
  294. <profile>
  295. <id>test-with-args</id>
  296. <activation>
  297. <property>
  298. <name>test.args</name>
  299. </property>
  300. </activation>
  301. <build>
  302. <plugins>
  303. <plugin>
  304. <groupId>org.apache.maven.plugins</groupId>
  305. <artifactId>maven-antrun-plugin</artifactId>
  306. <executions>
  307. <execution>
  308. <id>run-tests</id>
  309. <phase>integration-test</phase>
  310. <configuration>
  311. <target>
  312. <ant antfile="../make/build.xml" target="run-test-target-with-args">
  313. <property name="test-build.dir" value="${project.build.directory}/test" />
  314. <property name="root.dir" value=".." />
  315. <property name="maven.test.classpath" refid="maven.test.classpath" />
  316. <property name="test-args" value="${test.args}" />
  317. </ant>
  318. </target>
  319. </configuration>
  320. <goals>
  321. <goal>run</goal>
  322. </goals>
  323. </execution>
  324. </executions>
  325. </plugin>
  326. </plugins>
  327. </build>
  328. </profile>
  329. <profile>
  330. <id>add-debug-args</id>
  331. <activation>
  332. <property>
  333. <name>debug.port</name>
  334. </property>
  335. </activation>
  336. <properties>
  337. <debug.args>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:${debug.port}</debug.args>
  338. </properties>
  339. </profile>
  340. </profiles>
  341. </project>