简体   繁体   English

如何将内置的休眠添加到本地 Maven 存储库?

[英]How to add built hibernate to local maven repo?

To build hibernate (5.5) I do this:要构建休眠(5.5),我这样做:

git clone git://github.com/hibernate/hibernate-orm.git
./gradlew build -x test

as a result I have in release/target/distributions two files:结果我在发布/目标/发行版中有两个文件:

hibernate-release-5.5.0-SNAPSHOT.tgz  hibernate-release-5.5.0-SNAPSHOT.zip

These files have binary and source code of the hibernate.这些文件有休眠的二进制和源代码。 However, built jars are not added to local maven repo.但是,构建的 jar 不会添加到本地 Maven 存储库中。 Could anyone say how to add them including sources and javadoc?谁能说如何添加它们,包括源代码和 javadoc?

The task you're looking for is publishToMavenLocal .您正在寻找的任务是publishToMavenLocal And instead of build -x test you can use assemble .您可以使用assemble代替build -x test

./gradlew assemble publishToMavenLocal

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM