zzyReal666 commented on issue #30390: URL: https://github.com/apache/shardingsphere/issues/30390#issuecomment-1982295726
> > 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. > > ```shell > 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. You're talking about if I can use maven or some other package management tool 3. All I did was solve one problem: referencing `shardingsphere-jdbc` when I can't use Maven and other package management.I want to build it locally and use it directly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
