Skip to content

Commit 3b4d3f8

Browse files
Fix javadoc generation blocking snapshot deployment (#331)
* Fix javadoc generation in maven-publish-snapshot workflow --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Thomas Turrell-Croft <thomasturrell@users.noreply.github.com>
1 parent 7cd3d74 commit 3b4d3f8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/maven-publish-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3030
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
3131
- name: Generate Javadoc
32-
run: mvn -B javadoc:javadoc --file pom.xml # This checks that the Javadoc is vaild
32+
run: mvn -B javadoc:javadoc --file pom.xml -pl xapi-model,xapi-client,xapi-model-spring-boot-starter # This checks that the Javadoc is valid

samples/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@
103103
<plugin>
104104
<groupId>org.apache.maven.plugins</groupId>
105105
<artifactId>maven-javadoc-plugin</artifactId>
106+
<configuration>
107+
<!-- Prevent javadoc from being generated for samples -->
108+
<skip>true</skip>
109+
</configuration>
106110
<executions>
107111
<execution>
108112
<id>attach-javadocs</id>

0 commit comments

Comments
 (0)