Comments (10)
It seems to be similar to this :#17042 (comment) new module just like xxx-all
.But I don't know how to do it. @linghengqian
from shardingsphere.
- If I understand correctly, you are making an Uber Jar for ShardingSphere JDBC. But it seems like no one has ever needed the Uber Jar before, so it seems to me that fixing the current issue requires adding a Maven module, probably named
org.apache.shardingsphere:shardingsphere-jdbc-all
, and using the specificmaven-assembly-plugin
configuration to make the Uber Jar, and then adding documentation for that only makes sense. There is still room for change in the module name. - I'm assuming you're going to submit a PR. If you don't have time to prepare a PR, I will set an additional issue tag for this issue.
from shardingsphere.
- If I understand correctly, you are making an Uber Jar for ShardingSphere JDBC. But it seems like no one has ever needed the Uber Jar before, so it seems to me that fixing the current issue requires adding a Maven module, probably named
org.apache.shardingsphere:shardingsphere-jdbc-all
, and using the specificmaven-assembly-plugin
configuration to make the Uber Jar, and then adding documentation for that only makes sense. There is still room for change in the module name.- I'm assuming you're going to submit a PR. If you don't have time to prepare a PR, I will set an additional issue tag for this issue.
- First of all, thank you very much for letting me know the concept of
Uber jar
. I just want to get it. - Usually we use it(shardingsphere-jdbc) as in the documentation:
- Suppose I had to change some code now.How should I build the project so that these changes take effect?So I want to make an Uber jar.And I use it that way in my project.Use it instead of maven dependency:
4.Although this can work, I think it is the wrong approach.Uber jar is bigger thanshardingsphere-jdbc-5.4.2-SNAPSHOT.jar
,and it different fromshardingsphere-jdbc-5.4.2-SNAPSHOT.jar
:
5.How can I get a jar just like shardingsphere-jdbc-5.4.2-SNAPSHOT.jar
which get from maven repo?
from shardingsphere.
How can I get a jar just like shardingsphere-jdbc-5.4.2-SNAPSHOT.jar which get from maven repo?
- I don’t understand what you are talking about. If you have executed the following command via
SDKMAN!
, then obviously shardingsphere-jdbc has entered the local maven repo. This really only covers the content of the Apache Maven documentation.
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
- At this point it can be called directly in gradle or maven.
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc</artifactId>
<version>5.4.2-SNAPSHOT</version>
</dependency>
- If you need to upload the contents of the local maven repo to a private maven repo, this is not something ShardingSphere should handle. Assuming you are using the package registry for a private instance of gitlab, you should check out the documentation at https://docs.gitlab.com/16.9/ee/user/packages/maven_repository/ . This often involves redefining GAV information in private projects.
from shardingsphere.
How can I get a jar just like shardingsphere-jdbc-5.4.2-SNAPSHOT.jar which get from maven repo?
- I don’t understand what you are talking about. If you have executed the following command via
SDKMAN!
, then obviously shardingsphere-jdbc has entered the local maven repo. This really only covers the content of the Apache Maven documentation.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
- At this point it can be called directly in gradle or maven.
<dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>shardingsphere-jdbc</artifactId> <version>5.4.2-SNAPSHOT</version> </dependency>
- If you need to upload the contents of the local maven repo to a private maven repo, this is not something ShardingSphere should handle. Assuming you are using the package registry for a private instance of gitlab, you should check out the documentation at https://docs.gitlab.com/16.9/ee/user/packages/maven_repository/ . This often involves redefining GAV information in private projects.
- Thank you again for your reply.
- How to build a FatJAR (or called Uber jar) ?
- I use this maven config ,got an Uber jar ,but it can not work and with some wrong:
ERROR
I have report this issue at #29381 (comment)
from shardingsphere.
- I can't know the full content of the changes from the image. At least you need to raise a PR in your own ShardingSphere fork or provide the github url of the change commit. Your log is from a private project, so I can't see the full content either.
from shardingsphere.
- It looks like the 5.5.0 milestone will be closed tomorrow, I will look into this issue on the 5.5.1 milestone.
from shardingsphere.
Hi!Any plans for this?Is there anything I can do?
from shardingsphere.
Hi!Any plans for this?Is there anything I can do?
- An embarrassing thing involved here is that I am not sure where to put the new module. Maybe it is in the
/shardingsphere/uber/
directory? The 5.5.0 milestone was delayed due to metadata architecture adjustments. - The more embarrassing thing is that as a student, I don't have energy to investigate current issues recently. Potential discussions and PRs are still welcome.
from shardingsphere.
-
I just realized that #13609 has this requirement, but the original issue didn't mention the concept of an Uber Jar.
from shardingsphere.
Related Issues (20)
- org.yaml.snakeyaml.representer.Representer: method 'void <init>()' not found HOT 16
- spring-boot-starter-parent 3.2.4 use shardingsphere-jdbc-core 5.4.1 throw NoSuchMethodError HOT 1
- database-strategy:none not working HOT 6
- NPE when convert yaml configuration with empty data sources or empty rules
- Load single table should check storage units are not empty
- E2E test,build docker image permission denied. HOT 1
- How to start Native test for jdbc-encrypt HOT 1
- Under one mysql instance, two database schemas, how to join tables cross schemas HOT 2
- Add dependency-check-maven to shardingsphere HOT 2
- how to onlu sharding database? HOT 1
- Version 5.4.1 of ShardingSphere references SnakeYAML version 1.33, which has a security vulnerability. How to upgrade it? HOT 1
- TableNotExistsException: Table or view *** does not exist HOT 1
- some question about Readwrite-splitting HOT 1
- null point error when the table name is unstandardized HOT 1
- 5.4.1 CHAR_DIGEST_LIKE error HOT 8
- Image not loading HOT 1
- gbase 8s Compatibility issues HOT 1
- Database password parsed failed HOT 6
- Use test container instead of docker compose in Agent e2e test
- Native test only support H2?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shardingsphere.