|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!--
|
3 | 3 |
|
4 |
| - Copyright (c) 2019, 2021 Oracle and/or its affiliates. All rights reserved. |
| 4 | + Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved. |
5 | 5 |
|
6 | 6 | This program and the accompanying materials are made available under the
|
7 | 7 | terms of the Eclipse Public License v. 2.0 which is available at
|
|
22 | 22 | <groupId>org.eclipse.persistence</groupId>
|
23 | 23 | <artifactId>org.eclipse.persistence.nightly</artifactId>
|
24 | 24 | <packaging>pom</packaging>
|
| 25 | + <description>This project file is used as a standalone module/project to prepare EclipseLink bundles and test results for publishing into nightly builds storage/page.</description> |
25 | 26 |
|
26 | 27 | <parent>
|
27 | 28 | <groupId>org.eclipse.persistence</groupId>
|
|
36 | 37 | <nightlyTestReportsDir>${project.build.directory}${nightlyDir}/Eclipse</nightlyTestReportsDir>
|
37 | 38 | </properties>
|
38 | 39 |
|
39 |
| - <dependencies> |
40 |
| - <dependency> |
41 |
| - <groupId>org.eclipse.persistence</groupId> |
42 |
| - <artifactId>org.eclipse.persistence.core.test</artifactId> |
43 |
| - <version>${project.version}</version> |
44 |
| - </dependency> |
45 |
| - <dependency> |
46 |
| - <groupId>org.eclipse.persistence</groupId> |
47 |
| - <artifactId>org.eclipse.persistence.dbws</artifactId> |
48 |
| - </dependency> |
49 |
| - <dependency> |
50 |
| - <groupId>org.eclipse.persistence</groupId> |
51 |
| - <artifactId>org.eclipse.persistence.dbws.builder</artifactId> |
52 |
| - </dependency> |
53 |
| - <dependency> |
54 |
| - <groupId>org.eclipse.persistence</groupId> |
55 |
| - <artifactId>org.eclipse.persistence.moxy</artifactId> |
56 |
| - </dependency> |
57 |
| - <dependency> |
58 |
| - <groupId>org.eclipse.persistence</groupId> |
59 |
| - <artifactId>org.eclipse.persistence.jpa.test</artifactId> |
60 |
| - <version>${project.version}</version> |
61 |
| - </dependency> |
62 |
| - <dependency> |
63 |
| - <groupId>org.eclipse.persistence</groupId> |
64 |
| - <artifactId>org.eclipse.persistence.jpa.wdf.test</artifactId> |
65 |
| - <version>${project.version}</version> |
66 |
| - </dependency> |
67 |
| - <dependency> |
68 |
| - <groupId>org.eclipse.persistence</groupId> |
69 |
| - <artifactId>org.eclipse.persistence.sdo</artifactId> |
70 |
| - </dependency> |
71 |
| - <dependency> |
72 |
| - <groupId>org.eclipse.persistence</groupId> |
73 |
| - <artifactId>eclipselink</artifactId> |
74 |
| - <type>zip</type> |
75 |
| - <version>${project.version}</version> |
76 |
| - </dependency> |
77 |
| - <dependency> |
78 |
| - <groupId>org.eclipse.persistence</groupId> |
79 |
| - <artifactId>org.eclipse.persistence.bundles.other</artifactId> |
80 |
| - <version>${project.version}</version> |
81 |
| - </dependency> |
82 |
| - </dependencies> |
83 |
| - |
84 | 40 | <build>
|
85 | 41 | <plugins>
|
86 | 42 | <!--Initialize build.date and build.time buildNumber properties. -->
|
|
111 | 67 | </execution>
|
112 | 68 | </executions>
|
113 | 69 | </plugin>
|
| 70 | + <plugin> |
| 71 | + <groupId>org.apache.maven.plugins</groupId> |
| 72 | + <artifactId>maven-antrun-plugin</artifactId> |
| 73 | + <executions> |
| 74 | + <execution> |
| 75 | + <phase>process-resources</phase> |
| 76 | + <goals> |
| 77 | + <goal>run</goal> |
| 78 | + </goals> |
| 79 | + <configuration> |
| 80 | + <target> |
| 81 | + <copy todir="${project.build.directory}/jpa-test-reports"> |
| 82 | + <fileset dir="${project.build.directory}/../../../jpa/eclipselink.jpa.test"> |
| 83 | + <include name="**/target/surefire-reports/TEST*.xml"/> |
| 84 | + <include name="**/target/failsafe-reports/TEST*.xml"/> |
| 85 | + </fileset> |
| 86 | + <flattenmapper/> |
| 87 | + </copy> |
| 88 | + <copy todir="${project.build.directory}/jpa-test-reports"> |
| 89 | + <fileset dir="${project.build.directory}/../../../jpa/eclipselink.jpa.testapps"> |
| 90 | + <include name="**/target/surefire-reports/TEST*.xml"/> |
| 91 | + <include name="**/target/failsafe-reports/TEST*.xml"/> |
| 92 | + </fileset> |
| 93 | + <flattenmapper/> |
| 94 | + </copy> |
| 95 | + <copy todir="${project.build.directory}/jpa-test-reports"> |
| 96 | + <fileset dir="${project.build.directory}/../../../jpa/eclipselink.jpa.test.jse"> |
| 97 | + <include name="**/target/surefire-reports/TEST*.xml"/> |
| 98 | + <include name="**/target/failsafe-reports/TEST*.xml"/> |
| 99 | + </fileset> |
| 100 | + <flattenmapper/> |
| 101 | + </copy> |
| 102 | + </target> |
| 103 | + </configuration> |
| 104 | + </execution> |
| 105 | + </executions> |
| 106 | + </plugin> |
| 107 | + <plugin> |
| 108 | + <groupId>org.apache.maven.plugins</groupId> |
| 109 | + <artifactId>maven-surefire-report-plugin</artifactId> |
| 110 | + <configuration> |
| 111 | + <linkXRef>false</linkXRef> |
| 112 | + </configuration> |
| 113 | + <executions> |
| 114 | + <execution> |
| 115 | + <id>generate-test-summary-html-report</id> |
| 116 | + <phase>package</phase> |
| 117 | + <goals> |
| 118 | + <goal>failsafe-report-only</goal> |
| 119 | + </goals> |
| 120 | + <configuration> |
| 121 | + <reportsDirectories> |
| 122 | + <reportsDirectory>${project.build.directory}/jpa-test-reports</reportsDirectory> |
| 123 | + </reportsDirectories> |
| 124 | + <outputDirectory>${project.build.directory}/jpa-test-reports/${project.build.testReports.subdirectory}</outputDirectory> |
| 125 | + <outputName>${project.build.testReports.summaryFile}</outputName> |
| 126 | + <title>EclipseLink JPA Test - Test Summary (more details on ${env.BUILD_URL} )</title> |
| 127 | + </configuration> |
| 128 | + </execution> |
| 129 | + </executions> |
| 130 | + </plugin> |
114 | 131 | <plugin>
|
115 | 132 | <groupId>com.coderplus.maven.plugins</groupId>
|
116 | 133 | <artifactId>copy-rename-maven-plugin</artifactId>
|
|
157 | 174 | </fileSet>
|
158 | 175 | <fileSet>
|
159 | 176 | <sourceFile>
|
160 |
| - ../../jpa/eclipselink.jpa.test/target/${project.build.testReports.subdirectory}/${project.build.testReports.summaryFile}.html |
| 177 | + ${project.build.directory}/jpa-test-reports/${project.build.testReports.subdirectory}/${project.build.testReports.summaryFile}.html |
161 | 178 | </sourceFile>
|
162 | 179 | <destinationFile>
|
163 | 180 | ${project.build.directory}${nightlyDir}/Eclipse/eclipselink-jpa-lrg${nightlyVersion}.html
|
|
0 commit comments