Skip to content

Commit bce8c27

Browse files
authored
beta-1 release fix (#2906)
1 parent 4932859 commit bce8c27

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

  • tika-pipes/tika-pipes-plugins/tika-pipes-http

tika-pipes/tika-pipes-plugins/tika-pipes-http/pom.xml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,33 @@
156156
<goals>
157157
<goal>single</goal>
158158
</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>
159175
<configuration>
160176
<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>
161186
</configuration>
162187
</execution>
163188
</executions>
@@ -185,10 +210,6 @@
185210
deployed to Maven Central. Sibling modules declare this plugin zip
186211
as a test-scope Maven dep, so we install-file it locally to satisfy
187212
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.
192213
-->
193214
<execution>
194215
<id>install-plugin-zip-locally</id>
@@ -197,7 +218,7 @@
197218
<goal>install-file</goal>
198219
</goals>
199220
<configuration>
200-
<file>${project.build.directory}/plugins/${project.artifactId}-${project.version}.zip</file>
221+
<file>${project.build.directory}/${project.artifactId}-${project.version}.zip</file>
201222
<groupId>${project.groupId}</groupId>
202223
<artifactId>${project.artifactId}</artifactId>
203224
<version>${project.version}</version>

0 commit comments

Comments
 (0)