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 [email protected]: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
![image](https://private-user-images.githubusercontent.com/34822229/310015955-c9de53d2-c59d-44b0-9ebe-52d184d0344e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDg3MjEsIm5iZiI6MTczOTM0ODQyMSwicGF0aCI6Ii8zNDgyMjIyOS8zMTAwMTU5NTUtYzlkZTUzZDItYzU5ZC00NGIwLTllYmUtNTJkMTg0ZDAzNDRlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA4MjAyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5ODQzNDBkOTU2MWU4Y2M1NzVkYzJkN2ZkZTRkYWY2ZjY5MDhhNzYzZWM3YTg2ZTA1NTY2MzU3YzI0ZWNmNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.N5CixUW6HrBdST4BQdn97yX_as_3poQ-iUr4ww4u4Co)
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
![image](https://private-user-images.githubusercontent.com/34822229/310016528-e77ab426-d0f6-44dd-b115-e306313f90a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDg3MjEsIm5iZiI6MTczOTM0ODQyMSwicGF0aCI6Ii8zNDgyMjIyOS8zMTAwMTY1MjgtZTc3YWI0MjYtZDBmNi00NGRkLWIxMTUtZTMwNjMxM2Y5MGExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA4MjAyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIxOWFjNzY4MTc2ZTM0ZTYzYWFjZTA2MGU2OTVmZTQ3MDJlNDg2Zjk1MmJhZWEzZTkwMjA3NmUyYzVlYmJmMjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dv5jrEgED-VQ8ZRbE9fsAsmYIfOwiEGpoAzsI5GD9_4)
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