How can I build a FatJar for shardingsphere-jdbc and use it correctly ? #32015
Replies: 12 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
sdk install java 21.0.2-graalce
sdk use java 21.0.2-graalce
git clone git@github.com:apache/shardingsphere.git
cd ./shardingsphere/
git reset --hard e9f622b82de3e20a2d0fe74c87bd67e604e36140
./mvnw clean install -Prelease -T1C -DskipTests -Djacoco.skip=true -Dcheckstyle.skip=true -Drat.skip=true -Dmaven.javadoc.skip=true
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc</artifactId>
<version>5.4.2-SNAPSHOT</version>
</dependency>
|
Beta Was this translation helpful? Give feedback.
-
ERRORI have report this issue at #29381 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
It seems to be similar to this :#17042 (comment) new module just like |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi!Any plans for this?Is there anything I can do? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Use "maven-shade-plugin" to build uber-jar
|
Beta Was this translation helpful? Give feedback.
-
Hi!
I had some problems building the mysql encryption application locally:
shardingsphere-jdbc-binary-distribution.xml
to include all dependencies;mvn clean install -Prelease -T1C -DskipTests -Djacoco.skip=true -Dcheckstyle.skip=true -Drat.skip=true -Dmaven.javadoc.skip=true -B
succeeded;Now I've solved the problem:
edit
shardingsphere-jdbc-binary-distribution.xml
:<dependencySets> <dependencySet> <useProjectArtifact>false</useProjectArtifact> <unpack>false</unpack> <outputDirectory>/</outputDirectory> <includes> <include>*</include> </includes> </dependencySet> </dependencySets>
then I build use cmd
mvn clean install -Prelease -T1C -DskipTests -Djacoco.skip=true -Dcheckstyle.skip=true -Drat.skip=true -Dmaven.javadoc.skip=true -B
,I got a jar with all dependenies:I hope to add this to the documentation to help you build native application packages
Beta Was this translation helpful? Give feedback.
All reactions