|
25 | 25 | <parent> |
26 | 26 | <groupId>io.wcm.maven</groupId> |
27 | 27 | <artifactId>io.wcm.maven.parent</artifactId> |
28 | | - <version>2.0.0</version> |
| 28 | + <version>2.0.4</version> |
29 | 29 | <relativePath /> |
30 | 30 | </parent> |
31 | 31 |
|
32 | 32 | <groupId>io.wcm.maven.plugins</groupId> |
33 | 33 | <artifactId>cq-maven-plugin</artifactId> |
34 | | - <version>1.1.4</version> |
| 34 | + <version>1.2.0</version> |
35 | 35 | <packaging>maven-plugin</packaging> |
36 | 36 |
|
37 | 37 | <name>CQ Maven Plugin</name> |
|
50 | 50 | <maven.version>3.5.0</maven.version> |
51 | 51 |
|
52 | 52 | <!-- Enable reproducible builds --> |
53 | | - <project.build.outputTimestamp>2022-01-27T09:04:49Z</project.build.outputTimestamp> |
| 53 | + <project.build.outputTimestamp>2022-08-29T10:37:37Z</project.build.outputTimestamp> |
54 | 54 |
|
55 | 55 | <!-- Enable recording of coverage during execution of maven-invoker-plugin --> |
56 | 56 | <jacoco.propertyName>invoker.mavenOpts</jacoco.propertyName> |
|
83 | 83 | <dependency> |
84 | 84 | <groupId>org.apache.maven.shared</groupId> |
85 | 85 | <artifactId>maven-invoker</artifactId> |
86 | | - <version>3.1.0</version> |
| 86 | + <version>3.2.0</version> |
87 | 87 | <scope>compile</scope> |
88 | 88 | </dependency> |
89 | 89 |
|
90 | 90 | <dependency> |
91 | 91 | <groupId>org.apache.commons</groupId> |
92 | 92 | <artifactId>commons-lang3</artifactId> |
93 | | - <version>3.12.0</version> |
| 93 | + <version>3.12.0</version> |
94 | 94 | <scope>compile</scope> |
95 | 95 | </dependency> |
96 | 96 | </dependencies> |
|
121 | 121 | </executions> |
122 | 122 | </plugin> |
123 | 123 |
|
124 | | - <plugin> |
| 124 | + <!-- Merge Jacoco results from unit tests and integration tests --> |
| 125 | + <plugin> |
125 | 126 | <groupId>org.jacoco</groupId> |
126 | 127 | <artifactId>jacoco-maven-plugin</artifactId> |
127 | 128 | <executions> |
128 | 129 | <execution> |
| 130 | + <id>before-unit-test-execution</id> |
129 | 131 | <goals> |
130 | 132 | <goal>prepare-agent</goal> |
| 133 | + </goals> |
| 134 | + <configuration> |
| 135 | + <destFile>${project.build.directory}/jacoco-output/jacoco-unit-tests.exec</destFile> |
| 136 | + <propertyName>surefire.jacoco.args</propertyName> |
| 137 | + </configuration> |
| 138 | + </execution> |
| 139 | + <execution> |
| 140 | + <id>before-integration-test-execution</id> |
| 141 | + <goals> |
131 | 142 | <goal>prepare-agent-integration</goal> |
132 | | - <goal>report</goal> |
133 | | - <goal>report-integration</goal> |
| 143 | + </goals> |
| 144 | + <configuration> |
| 145 | + <destFile>${project.build.directory}/jacoco-output/jacoco-integration-tests.exec</destFile> |
| 146 | + <propertyName>invoker.jacoco.args</propertyName> |
| 147 | + </configuration> |
| 148 | + </execution> |
| 149 | + <execution> |
| 150 | + <id>merge-unit-and-integration</id> |
| 151 | + <phase>post-integration-test</phase> |
| 152 | + <goals> |
| 153 | + <goal>merge</goal> |
134 | 154 | </goals> |
| 155 | + <configuration> |
| 156 | + <fileSets> |
| 157 | + <fileSet> |
| 158 | + <directory>${project.build.directory}/jacoco-output</directory> |
| 159 | + <includes> |
| 160 | + <include>*.exec</include> |
| 161 | + </includes> |
| 162 | + </fileSet> |
| 163 | + </fileSets> |
| 164 | + </configuration> |
135 | 165 | </execution> |
136 | 166 | </executions> |
137 | 167 | </plugin> |
138 | 168 |
|
| 169 | + <plugin> |
| 170 | + <groupId>org.apache.maven.plugins</groupId> |
| 171 | + <artifactId>maven-surefire-plugin</artifactId> |
| 172 | + <configuration> |
| 173 | + <argLine>${surefire.jacoco.args}</argLine> |
| 174 | + </configuration> |
| 175 | + </plugin> |
| 176 | + |
139 | 177 | <plugin> |
140 | 178 | <groupId>org.apache.maven.plugins</groupId> |
141 | 179 | <artifactId>maven-invoker-plugin</artifactId> |
142 | 180 | <configuration> |
143 | 181 | <projectsDirectory>src/it</projectsDirectory> |
144 | 182 | <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> |
145 | 183 | <pomIncludes> |
146 | | - <pomInclude>**/pom.xml</pomInclude> |
| 184 | + <pomInclude>*/pom.xml</pomInclude> |
147 | 185 | </pomIncludes> |
148 | 186 | <postBuildHookScript>verify</postBuildHookScript> |
149 | 187 | <streamLogsOnFailures>true</streamLogsOnFailures> |
150 | 188 | <extraArtifacts> |
151 | 189 | <extraArtifact>org.jacoco:org.jacoco.agent:${jacoco-maven-plugin.version}:jar:runtime</extraArtifact> |
152 | 190 | </extraArtifacts> |
| 191 | + <mavenOpts>${invoker.jacoco.args}</mavenOpts> |
153 | 192 | </configuration> |
154 | 193 | <executions> |
155 | 194 | <execution> |
|
0 commit comments