Skip to content

Commit cce8ddd

Browse files
authored
Merge pull request #2635 from ClickHouse/fix_javadoc1
adding placeholder jars
2 parents 549eff0 + 3d73801 commit cce8ddd

File tree

1 file changed

+41
-1
lines changed
  • packages/clickhouse-jdbc-all

1 file changed

+41
-1
lines changed

packages/clickhouse-jdbc-all/pom.xml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,46 @@
3737
</archive>
3838
</configuration>
3939
</plugin>
40+
<plugin>
41+
<groupId>org.apache.maven.plugins</groupId>
42+
<artifactId>maven-jar-plugin</artifactId>
43+
<version>3.3.0</version> <!-- Use a recent version -->
44+
<executions>
45+
<execution>
46+
<id>javadoc-jar</id>
47+
<phase>package</phase>
48+
<goals>
49+
<goal>jar</goal>
50+
</goals>
51+
<configuration>
52+
<classifier>javadoc</classifier>
53+
<!-- To create an empty Javadoc JAR, you can set includeEmptyDirs to false and ensure no files are copied -->
54+
<includeEmptyDirs>false</includeEmptyDirs>
55+
<excludes>
56+
<!-- Exclude all files to ensure an empty JAR if desired -->
57+
<exclude>**/*</exclude>
58+
</excludes>
59+
</configuration>
60+
</execution>
61+
</executions>
62+
</plugin>
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-source-plugin</artifactId>
66+
<configuration>
67+
<excludes>
68+
<exclude>**/*</exclude>
69+
</excludes>
70+
</configuration>
71+
<executions>
72+
<execution>
73+
<id>attach-sources</id>
74+
<goals>
75+
<goal>jar</goal>
76+
</goals>
77+
</execution>
78+
</executions>
79+
</plugin>
4080
<plugin>
4181
<groupId>org.apache.maven.plugins</groupId>
4282
<artifactId>maven-shade-plugin</artifactId>
@@ -51,7 +91,7 @@
5191
<configuration>
5292
<shadedArtifactAttached>false</shadedArtifactAttached>
5393
<createDependencyReducedPom>true</createDependencyReducedPom>
54-
<createSourcesJar>true</createSourcesJar>
94+
<createSourcesJar>false</createSourcesJar>
5595
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
5696
<shadedClassifierName></shadedClassifierName>
5797
</configuration>

0 commit comments

Comments
 (0)