|
156 | 156 | <goals> |
157 | 157 | <goal>single</goal> |
158 | 158 | </goals> |
| 159 | + </execution> |
| 160 | + </executions> |
| 161 | + </plugin> |
| 162 | + <!-- The plugin zip is built into target/ (the release artifact, like every other plugin). |
| 163 | + Copy it into target/plugins/ so the self-test can load it via PF4J |
| 164 | + (plugin-roots=target/plugins). Bound after make-assembly (process-test-resources). --> |
| 165 | + <plugin> |
| 166 | + <groupId>org.apache.maven.plugins</groupId> |
| 167 | + <artifactId>maven-resources-plugin</artifactId> |
| 168 | + <executions> |
| 169 | + <execution> |
| 170 | + <id>copy-plugin-zip-for-self-test</id> |
| 171 | + <phase>process-test-classes</phase> |
| 172 | + <goals> |
| 173 | + <goal>copy-resources</goal> |
| 174 | + </goals> |
159 | 175 | <configuration> |
160 | 176 | <outputDirectory>${project.build.directory}/plugins</outputDirectory> |
| 177 | + <resources> |
| 178 | + <resource> |
| 179 | + <directory>${project.build.directory}</directory> |
| 180 | + <includes> |
| 181 | + <include>${project.artifactId}-${project.version}.zip</include> |
| 182 | + </includes> |
| 183 | + <filtering>false</filtering> |
| 184 | + </resource> |
| 185 | + </resources> |
161 | 186 | </configuration> |
162 | 187 | </execution> |
163 | 188 | </executions> |
|
185 | 210 | deployed to Maven Central. Sibling modules declare this plugin zip |
186 | 211 | as a test-scope Maven dep, so we install-file it locally to satisfy |
187 | 212 | reactor resolution without making it part of the project artifacts. |
188 | | -
|
189 | | - tika-pipes-http writes its zip to target/plugins/ (not target/) so |
190 | | - that its own self-tests can load the plugin via PF4J in deployment |
191 | | - mode; reflect that path here. |
192 | 213 | --> |
193 | 214 | <execution> |
194 | 215 | <id>install-plugin-zip-locally</id> |
|
197 | 218 | <goal>install-file</goal> |
198 | 219 | </goals> |
199 | 220 | <configuration> |
200 | | - <file>${project.build.directory}/plugins/${project.artifactId}-${project.version}.zip</file> |
| 221 | + <file>${project.build.directory}/${project.artifactId}-${project.version}.zip</file> |
201 | 222 | <groupId>${project.groupId}</groupId> |
202 | 223 | <artifactId>${project.artifactId}</artifactId> |
203 | 224 | <version>${project.version}</version> |
|
0 commit comments