|
33 | 33 | <properties> |
34 | 34 | <!-- This is a publicly distributed module that should be published: --> |
35 | 35 | <deploy.skip>false</deploy.skip> |
| 36 | + <!-- To run the integration tests we need to set ${hibernate.version} --> |
| 37 | + <hibernate.version>${project.version}</hibernate.version> |
36 | 38 | </properties> |
37 | 39 |
|
38 | 40 | <dependencies> |
|
68 | 70 |
|
69 | 71 | <build> |
70 | 72 | <plugins> |
71 | | - <plugin> |
72 | | - <groupId>org.apache.maven.plugins</groupId> |
73 | | - <artifactId>maven-resources-plugin</artifactId> |
74 | | - <executions> |
75 | | - <execution> |
76 | | - <id>filter-test-resources</id> |
77 | | - <phase>process-test-resources</phase> |
78 | | - <goals> |
79 | | - <goal>testResources</goal> |
80 | | - </goals> |
81 | | - <configuration> |
82 | | - <resources> |
83 | | - <resource> |
84 | | - <directory>${project.build.testOutputDirectory}</directory> |
85 | | - <filtering>true</filtering> |
86 | | - <includes> |
87 | | - <include>common/included.xml</include> |
88 | | - </includes> |
89 | | - </resource> |
90 | | - </resources> |
91 | | - <delimiters> |
92 | | - <delimiter>@*@</delimiter> |
93 | | - </delimiters> |
94 | | - </configuration> |
95 | | - </execution> |
96 | | - </executions> |
97 | | - </plugin> |
| 73 | + <!-- Prepare the integration tests : |
| 74 | + * Add the 'src/it/java' folder as as source of additional tests (only contains integration tests) |
| 75 | + * Add the contents of the 'docs/examples' folder as additional test resources |
| 76 | + --> |
98 | 77 | <plugin> |
99 | 78 | <groupId>org.codehaus.mojo</groupId> |
100 | 79 | <artifactId>build-helper-maven-plugin</artifactId> |
|
130 | 109 | </execution> |
131 | 110 | </executions> |
132 | 111 | </plugin> |
| 112 | + <!-- Prepare the integration tests |
| 113 | + * Filter the 'common/included.xml' file, and replace the delimited values with their actual properties |
| 114 | + --> |
| 115 | + <plugin> |
| 116 | + <groupId>org.apache.maven.plugins</groupId> |
| 117 | + <artifactId>maven-resources-plugin</artifactId> |
| 118 | + <executions> |
| 119 | + <execution> |
| 120 | + <id>filter-test-resources</id> |
| 121 | + <phase>process-test-resources</phase> |
| 122 | + <goals> |
| 123 | + <goal>testResources</goal> |
| 124 | + </goals> |
| 125 | + <configuration> |
| 126 | + <resources> |
| 127 | + <resource> |
| 128 | + <directory>${project.build.testOutputDirectory}</directory> |
| 129 | + <filtering>true</filtering> |
| 130 | + <includes> |
| 131 | + <include>common/included.xml</include> |
| 132 | + </includes> |
| 133 | + </resource> |
| 134 | + </resources> |
| 135 | + <delimiters> |
| 136 | + <delimiter>@*@</delimiter> |
| 137 | + </delimiters> |
| 138 | + </configuration> |
| 139 | + </execution> |
| 140 | + </executions> |
| 141 | + </plugin> |
| 142 | + <!-- run the integration tests --> |
133 | 143 | <plugin> |
134 | | - <!-- run the integration tests --> |
135 | 144 | <groupId>org.apache.maven.plugins</groupId> |
136 | 145 | <artifactId>maven-failsafe-plugin</artifactId> |
137 | 146 | <executions> |
|
0 commit comments