This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git
The following commit(s) were added to refs/heads/develop by this push:
new 898f1a68 include common in tsfile with shade (#510)
898f1a68 is described below
commit 898f1a68df47fadfa7a847b4dada01a99e976788
Author: Inky19 <[email protected]>
AuthorDate: Tue Jul 22 03:54:21 2025 +0200
include common in tsfile with shade (#510)
---
java/tsfile/pom.xml | 48 ++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 40 insertions(+), 8 deletions(-)
diff --git a/java/tsfile/pom.xml b/java/tsfile/pom.xml
index a4515e40..f0e736e2 100644
--- a/java/tsfile/pom.xml
+++ b/java/tsfile/pom.xml
@@ -142,21 +142,40 @@
</filesets>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.4.1</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <relocations/>
+
<createDependencyReducedPom>false</createDependencyReducedPom>
+ <transformers>
+ <transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/>
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<!--
Generate an OSGI compatible MANIFEST file.
-->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <exportScr>true</exportScr>
- <instructions>
- <_include>-bnd.bnd</_include>
-
<_removeheaders>Bnd-LastModified,Built-By</_removeheaders>
- <Embed-Dependency>dependencies</Embed-Dependency>
- </instructions>
- </configuration>
<executions>
+ <execution>
+ <id>bundle</id>
+ <phase>package</phase>
+ <goals>
+ <goal>bundle</goal>
+ </goals>
+ </execution>
<execution>
<id>bundle-manifest</id>
<goals>
@@ -165,6 +184,19 @@
<phase>process-classes</phase>
</execution>
</executions>
+ <configuration>
+
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
+ <archive>
+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ <instructions>
+ <Export-Package>org.apache.tsfile.*</Export-Package>
+ <Embed-Dependency>common;inline=true</Embed-Dependency>
+ <Embed-Transitive>false</Embed-Transitive>
+
<_removeheaders>Bnd-LastModified,Built-By</_removeheaders>
+
<Bundle-SymbolicName>org.apache.tsfile</Bundle-SymbolicName>
+ </instructions>
+ </configuration>
</plugin>
<!--
Use the MANIFEST file generated by the maven-bundle-plugin.