Skip to content

Commit 1317d3d

Browse files
committed
fixed CI tests
1 parent 3f7ee92 commit 1317d3d

File tree

1 file changed

+41
-25
lines changed

1 file changed

+41
-25
lines changed

shaded/pom.xml

Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -155,36 +155,52 @@
155155
</execution>
156156
</executions>
157157
</plugin>
158-
<plugin>
159-
<groupId>org.codehaus.mojo</groupId>
160-
<artifactId>build-helper-maven-plugin</artifactId>
161-
<version>3.3.0</version>
162-
<executions>
163-
<execution>
164-
<id>attach-javadocs</id>
165-
<phase>package</phase>
166-
<goals>
167-
<goal>attach-artifact</goal>
168-
</goals>
169-
<configuration>
170-
<artifacts>
171-
<artifact>
172-
<file>
173-
${project.parent.basedir}/driver/target/arangodb-java-driver-${project.version}-javadoc.jar
174-
</file>
175-
<type>jar</type>
176-
<classifier>javadoc</classifier>
177-
</artifact>
178-
</artifacts>
179-
</configuration>
180-
</execution>
181-
</executions>
182-
</plugin>
183158
<plugin>
184159
<groupId>org.codehaus.mojo</groupId>
185160
<artifactId>flatten-maven-plugin</artifactId>
186161
</plugin>
187162
</plugins>
188163
</build>
189164

165+
<profiles>
166+
<profile>
167+
<!-- skip attaching javadoc artifact in case of -Dmaven.javadoc.skip=true because the artifact file could not be found -->
168+
<id>no-javadoc</id>
169+
<activation>
170+
<property>
171+
<name>!maven.javadoc.skip</name>
172+
</property>
173+
</activation>
174+
<build>
175+
<plugins>
176+
<plugin>
177+
<groupId>org.codehaus.mojo</groupId>
178+
<artifactId>build-helper-maven-plugin</artifactId>
179+
<version>3.3.0</version>
180+
<executions>
181+
<execution>
182+
<id>attach-javadocs</id>
183+
<phase>package</phase>
184+
<goals>
185+
<goal>attach-artifact</goal>
186+
</goals>
187+
<configuration>
188+
<artifacts>
189+
<artifact>
190+
<file>
191+
${project.parent.basedir}/driver/target/arangodb-java-driver-${project.version}-javadoc.jar
192+
</file>
193+
<type>jar</type>
194+
<classifier>javadoc</classifier>
195+
</artifact>
196+
</artifacts>
197+
</configuration>
198+
</execution>
199+
</executions>
200+
</plugin>
201+
</plugins>
202+
</build>
203+
</profile>
204+
</profiles>
205+
190206
</project>

0 commit comments

Comments
 (0)