Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion packages/clickhouse-jdbc-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,46 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version> <!-- Use a recent version -->
<executions>
<execution>
<id>javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
<!-- To create an empty Javadoc JAR, you can set includeEmptyDirs to false and ensure no files are copied -->
<includeEmptyDirs>false</includeEmptyDirs>
<excludes>
<!-- Exclude all files to ensure an empty JAR if desired -->
<exclude>**/*</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
Comment on lines +40 to +62
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two separate maven-jar-plugin declarations which could lead to unexpected behavior. Consider merging them by moving the javadoc-jar execution into the first maven-jar-plugin declaration.

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Comment on lines +63 to +65
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The maven-source-plugin is missing a version specification. It's a best practice to explicitly define plugin versions to ensure build reproducibility.

<configuration>
<excludes>
<exclude>**/*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand All @@ -51,7 +91,7 @@
<configuration>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>true</createDependencyReducedPom>
<createSourcesJar>true</createSourcesJar>
<createSourcesJar>false</createSourcesJar>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
<shadedClassifierName></shadedClassifierName>
</configuration>
Expand Down
Loading