简体   繁体   English

如何将Neo4j快照构建部署到自定义Maven存储库?

[英]How to deploy Neo4j snapshot build to a custom Maven repository?

When I try to build neo4j from sources and deploy it, the deployment phase fails since there is already a repository defined in the grandparent 's pom.xml . 当我尝试从源代码构建neo4j并进行部署时,部署阶段失败,因为grandparentpom.xml已经定义了一个存储库。 Is it possible to redefine (or add) the DistributionManagement properties so that I'll be able to deploy custom neo4j build to an internal non-local repository? 是否可以重新定义(或添加) DistributionManagement属性,以便能够将自定义neo4j构建部署到内部非本地存储库?

It is possible since maven-deploy-plugin 2.8 从maven-deploy-plugin 2.8开始可能

Just be sure to use that version of the plugin (by defining it in neo4j's pom if neo4j doesn't already do that by itself) 只要确保使用该插件的版本即可(如果neo4j本身还没有这样做,可以在neo4j的pom中定义它)

Then define altReleaseDeploymentRepository and/or altSnapshotDeploymentRepository in your maven settings.xml. 然后在您的maven settings.xml中定义altReleaseDeploymentRepository和/或altSnapshotDeploymentRepository (Depending on your personal preference you can also define that inside a profile). (根据您的个人喜好,您也可以在个人资料中进行定义)。

The syntax of the alternative repositories is id::layout::url where id must match the id of a server that is also defined in your settings (giving you the chance to give user/pass for that server). 备用存储库的语法为id::layout::url ,其中id必须与也在您的设置中定义的服务器的id匹配(从而使您有机会为该服务器提供用户/密码)。 Layout is default Example: 布局是default示例:

<altReleaseDeploymentRepository>my.nexus::default::https://my.domain.com/nexus/content/repositories/releases/</altReleaseDeploymentRepository>

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

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