|
54 | 54 | <jacoco.version>0.8.3</jacoco.version>
|
55 | 55 | <mockito.version>3.1.0</mockito.version>
|
56 | 56 |
|
57 |
| - <arch-unit-build-plugin-core.version>2.7.2</arch-unit-build-plugin-core.version> |
| 57 | + <arch-unit-build-plugin-core.version>2.7.3-SNAPSHOT</arch-unit-build-plugin-core.version> |
58 | 58 |
|
59 |
| - <project.testresult.directory>${project.build.directory}/test-results |
60 |
| - </project.testresult.directory> |
| 59 | + <project.testresult.directory>${project.build.directory}/test-results</project.testresult.directory> |
| 60 | + <generated.test.source.directory>${project.basedir}/target/generated-test-sources/test-annotations</generated.test.source.directory> |
61 | 61 | </properties>
|
62 | 62 |
|
63 | 63 | <scm>
|
|
84 | 84 | <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
85 | 85 | </repository>
|
86 | 86 | </distributionManagement>
|
| 87 | + |
87 | 88 | <dependencies>
|
88 | 89 |
|
89 | 90 | <dependency>
|
|
142 | 143 | <scope>test</scope>
|
143 | 144 | </dependency>
|
144 | 145 |
|
| 146 | + <dependency> |
| 147 | + <groupId>junit</groupId> |
| 148 | + <artifactId>junit</artifactId> |
| 149 | + <version>4.13.1</version> |
| 150 | + <scope>test</scope> |
| 151 | + </dependency> |
| 152 | + |
145 | 153 | <dependency>
|
146 | 154 | <groupId>org.assertj</groupId>
|
147 | 155 | <artifactId>assertj-core</artifactId>
|
|
159 | 167 | -->
|
160 | 168 | </dependency>
|
161 | 169 |
|
| 170 | + <!-- needed to generate test classes above java 8 --> |
| 171 | + <dependency> |
| 172 | + <groupId>jakarta.xml.bind</groupId> |
| 173 | + <artifactId>jakarta.xml.bind-api</artifactId> |
| 174 | + <version>2.3.3</version> |
| 175 | + <scope>compile</scope> |
| 176 | + </dependency> |
| 177 | + <dependency> |
| 178 | + <groupId>com.sun.xml.bind</groupId> |
| 179 | + <artifactId>jaxb-impl</artifactId> |
| 180 | + <version>2.3.3</version> |
| 181 | + <scope>compile</scope> |
| 182 | + </dependency> |
162 | 183 |
|
163 | 184 | </dependencies>
|
| 185 | + |
164 | 186 | <build>
|
165 | 187 | <plugins>
|
| 188 | + <plugin> |
| 189 | + <groupId>org.codehaus.mojo</groupId> |
| 190 | + <artifactId>jaxb2-maven-plugin</artifactId> |
| 191 | + <version>2.5.0</version> |
| 192 | + <executions> |
| 193 | + <execution> |
| 194 | + <id>testXjc</id> |
| 195 | + <goals> |
| 196 | + <goal>testXjc</goal> |
| 197 | + </goals> |
| 198 | + <phase>generate-test-sources</phase> |
| 199 | + </execution> |
| 200 | + </executions> |
| 201 | + <configuration> |
| 202 | + <packageName>com.societegenerale.commons.plugin.maven.test.generated</packageName> |
| 203 | + <outputDirectory>${generated.test.source.directory}</outputDirectory> |
| 204 | + <testXjbSources> |
| 205 | + <testXjbSource>${project.basedir}/src/test/resources/generate/book.xsd</testXjbSource> |
| 206 | + </testXjbSources> |
| 207 | + <testSources> |
| 208 | + <testSource>${project.basedir}/src/test/resources/generate/book.xsd</testSource> |
| 209 | + </testSources> |
| 210 | + <clearOutputDir>true</clearOutputDir> |
| 211 | + </configuration> |
| 212 | + <dependencies> |
| 213 | + <dependency> |
| 214 | + <groupId>org.glassfish.jaxb</groupId> |
| 215 | + <artifactId>jaxb-xjc</artifactId> |
| 216 | + <version>2.3.2</version> |
| 217 | + <scope>compile</scope> |
| 218 | + </dependency> |
| 219 | + <dependency> |
| 220 | + <groupId>jakarta.xml.bind</groupId> |
| 221 | + <artifactId>jakarta.xml.bind-api</artifactId> |
| 222 | + <version>2.3.3</version> |
| 223 | + <scope>compile</scope> |
| 224 | + </dependency> |
| 225 | + <dependency> |
| 226 | + <groupId>com.sun.xml.bind</groupId> |
| 227 | + <artifactId>jaxb-impl</artifactId> |
| 228 | + <version>2.3.3</version> |
| 229 | + <scope>compile</scope> |
| 230 | + </dependency> |
| 231 | + </dependencies> |
| 232 | + </plugin> |
| 233 | + |
166 | 234 | <plugin>
|
167 | 235 | <groupId>org.apache.maven.plugins</groupId>
|
168 | 236 | <artifactId>maven-compiler-plugin</artifactId>
|
|
171 | 239 | <source>${maven.compiler.source}</source>
|
172 | 240 | <target>${maven.compiler.target}</target>
|
173 | 241 | </configuration>
|
| 242 | + <executions> |
| 243 | + <execution> |
| 244 | + <id>default</id> |
| 245 | + <phase>compile</phase> |
| 246 | + <goals> |
| 247 | + <goal>compile</goal> |
| 248 | + </goals> |
| 249 | + </execution> |
| 250 | + <execution> |
| 251 | + <id>compile-generated-test-source</id> |
| 252 | + <phase>test-compile</phase> |
| 253 | + <goals> |
| 254 | + <goal>testCompile</goal> |
| 255 | + </goals> |
| 256 | + <configuration> |
| 257 | + <compileSourceRoots> |
| 258 | + <compileSourceRoot>${generated.test.source.directory}</compileSourceRoot> |
| 259 | + </compileSourceRoots> |
| 260 | + <generatedTestSourcesDirectory>${generated.test.source.directory}</generatedTestSourcesDirectory> |
| 261 | + </configuration> |
| 262 | + </execution> |
| 263 | + </executions> |
174 | 264 | </plugin>
|
175 | 265 |
|
176 | 266 | <plugin>
|
|
183 | 273 | <includes>
|
184 | 274 | <include>**/*Test.java</include>
|
185 | 275 | </includes>
|
| 276 | + <excludes> |
| 277 | + <exclude>**/Abstract*Test.java</exclude> |
| 278 | + </excludes> |
186 | 279 | </configuration>
|
187 | 280 | </plugin>
|
188 | 281 |
|
|
0 commit comments