Skip to content

Commit 3f7ee92

Browse files
committed
fixed shaded driver javadoc (DE-482)
1 parent 2ba34dc commit 3f7ee92

File tree

1 file changed

+19
-31
lines changed

1 file changed

+19
-31
lines changed

shaded/pom.xml

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
<groupId>org.slf4j</groupId>
4141
<artifactId>slf4j-api</artifactId>
4242
</dependency>
43+
<dependency>
44+
<!-- build arangodb-java-driver before so that we can use the javadoc artifact -->
45+
<groupId>com.arangodb</groupId>
46+
<artifactId>arangodb-java-driver</artifactId>
47+
<scope>provided</scope>
48+
</dependency>
4349
<dependency>
4450
<groupId>org.graalvm.sdk</groupId>
4551
<artifactId>graal-sdk</artifactId>
@@ -150,44 +156,26 @@
150156
</executions>
151157
</plugin>
152158
<plugin>
153-
<groupId>org.apache.maven.plugins</groupId>
154-
<artifactId>maven-dependency-plugin</artifactId>
155-
<version>3.4.0</version>
159+
<groupId>org.codehaus.mojo</groupId>
160+
<artifactId>build-helper-maven-plugin</artifactId>
161+
<version>3.3.0</version>
156162
<executions>
157163
<execution>
158-
<id>unpack-shaded-sources</id>
164+
<id>attach-javadocs</id>
159165
<phase>package</phase>
160166
<goals>
161-
<goal>unpack</goal>
167+
<goal>attach-artifact</goal>
162168
</goals>
163169
<configuration>
164-
<artifactItems>
165-
<artifactItem>
166-
<groupId>com.arangodb</groupId>
167-
<artifactId>arangodb-java-driver-shaded</artifactId>
170+
<artifacts>
171+
<artifact>
172+
<file>
173+
${project.parent.basedir}/driver/target/arangodb-java-driver-${project.version}-javadoc.jar
174+
</file>
168175
<type>jar</type>
169-
<classifier>sources</classifier>
170-
<outputDirectory>${project.build.directory}/shaded-sources</outputDirectory>
171-
</artifactItem>
172-
</artifactItems>
173-
</configuration>
174-
</execution>
175-
</executions>
176-
</plugin>
177-
<plugin>
178-
<groupId>org.apache.maven.plugins</groupId>
179-
<artifactId>maven-javadoc-plugin</artifactId>
180-
<executions>
181-
<execution>
182-
<id>attach-javadocs</id>
183-
<goals>
184-
<goal>jar</goal>
185-
</goals>
186-
<configuration>
187-
<sourcepath>${project.build.directory}/shaded-sources</sourcepath>
188-
<excludePackageNames>
189-
com.arangodb.shaded.**,**.internal**,com.arangodb.vst.**,com.arangodb.http.**,com.arangodb.velocypack.**
190-
</excludePackageNames>
176+
<classifier>javadoc</classifier>
177+
</artifact>
178+
</artifacts>
191179
</configuration>
192180
</execution>
193181
</executions>

0 commit comments

Comments
 (0)