Giter Site home page Giter Site logo

Comments (10)

zzyReal666 avatar zzyReal666 commented on June 3, 2024 1

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.

linghengqian avatar linghengqian commented on June 3, 2024
  • 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 specific maven-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.

zzyReal666 avatar zzyReal666 commented on June 3, 2024
  • 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 specific maven-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.
  1. First of all, thank you very much for letting me know the concept of Uber jar. I just want to get it.
  2. Usually we use it(shardingsphere-jdbc) as in the documentation:image
  3. 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:image
    4.Although this can work, I think it is the wrong approach.Uber jar is bigger than shardingsphere-jdbc-5.4.2-SNAPSHOT.jar,and it different from shardingsphere-jdbc-5.4.2-SNAPSHOT.jar:
    image

image
image

5.How can I get a jar just like shardingsphere-jdbc-5.4.2-SNAPSHOT.jar which get from maven repo?

from shardingsphere.

linghengqian avatar linghengqian commented on June 3, 2024

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.

zzyReal666 avatar zzyReal666 commented on June 3, 2024

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.
  1. Thank you again for your reply.
  2. How to build a FatJAR (or called Uber jar) ?
  3. I use this maven config ,got an Uber jar ,but it can not work and with some wrong:
image

image

ERROR

image

I have report this issue at #29381 (comment)

from shardingsphere.

linghengqian avatar linghengqian commented on June 3, 2024
  • 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.

linghengqian avatar linghengqian commented on June 3, 2024
  • 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.

zzyReal666 avatar zzyReal666 commented on June 3, 2024

Hi!Any plans for this?Is there anything I can do?

from shardingsphere.

linghengqian avatar linghengqian commented on June 3, 2024

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.

linghengqian avatar linghengqian commented on June 3, 2024
  • I just realized that #13609 has this requirement, but the original issue didn't mention the concept of an Uber Jar.

  • CC @totalo. Are you still working on #13609 ?

from shardingsphere.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.