Skip to content

Commit ced3d06

Browse files
committed
Add maven build-helper plugin
This plugin is used to attach metadata about documentation artifacts
1 parent abab69b commit ced3d06

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
<maven-project-info-reports-plugin.version>3.1.2</maven-project-info-reports-plugin.version>
140140
<maven-resources-plugin.version>3.2.0</maven-resources-plugin.version>
141141
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
142+
<build-helper-maven-plugin.version>1.10</build-helper-maven-plugin.version>
142143
</properties>
143144

144145
<build>

spring-batch-docs/pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,36 @@
171171
</execution>
172172
</executions>
173173
</plugin>
174+
<plugin>
175+
<groupId>org.codehaus.mojo</groupId>
176+
<artifactId>build-helper-maven-plugin</artifactId>
177+
<version>${build-helper-maven-plugin.version}</version>
178+
<executions>
179+
<execution>
180+
<id>attach-zip</id>
181+
<goals>
182+
<goal>attach-artifact</goal>
183+
</goals>
184+
<phase>site</phase>
185+
<configuration>
186+
<artifacts>
187+
<artifact>
188+
<file>${project.build.directory}/spring-batch-${project.version}-docs.zip</file>
189+
<type>zip;zip.type=docs;zip.deployed=false</type>
190+
</artifact>
191+
<artifact>
192+
<file>${project.build.directory}/spring-batch-${project.version}-schemas.zip</file>
193+
<type>zip;zip.type=schemas;zip.deployed=false</type>
194+
</artifact>
195+
<artifact>
196+
<file>${project.build.directory}/spring-batch-${project.version}-dist.zip</file>
197+
<type>zip;zip.type=dist;zip.deployed=false</type>
198+
</artifact>
199+
</artifacts>
200+
</configuration>
201+
</execution>
202+
</executions>
203+
</plugin>
174204
<plugin>
175205
<groupId>org.apache.maven.plugins</groupId>
176206
<artifactId>maven-deploy-plugin</artifactId>

0 commit comments

Comments
 (0)