当前位置: 首页 > news >正文

上海网站建设加q.479185700访问网站速度慢

上海网站建设加q.479185700,访问网站速度慢,软件中心下载安装,未来3年房价走势预测如何通过maven将小型开源库提供给其他开发人员#xff1f; 一种方法是将其部署在Maven Central Repository上 。 我想要做的是将其部署到github #xff0c;因此我可以自由地对其进行修改。 这篇文章将告诉您如何做到这一点。 我将工件部署到github的典型方法是使用mvn depl… 如何通过maven将小型开源库提供给其他开发人员 一种方法是将其部署在Maven Central Repository上 。 我想要做的是将其部署到github 因此我可以自由地对其进行修改。 这篇文章将告诉您如何做到这一点。 我将工件部署到github的典型方法是使用mvn deploy 。 步骤如下 使用site-maven-plugin将工件推送到github 使用maven-javadoc-plugin推送Javadoc 使用maven-source-plugin推送源 配置Maven以将远程mvn-repo用作Maven存储库 配置Maven部署插件 首先我添加以下代码片段以告知Maven将工件部署到目标目录内的临时位置 distributionManagementrepositoryidinternal.repo/idnameTemporary Staging Repository/nameurlfile://${project.build.directory}/mvn-repo/url/repository /distributionManagement pluginspluginartifactIdmaven-deploy-plugin/artifactIdversion2.8.1/versionconfigurationaltDeploymentRepositoryinternal.repo::default::file://${project.build.directory}/mvn-repo/altDeploymentRepository/configuration/plugin /plugins配置Maven 然后我将我的github.com身份验证信息添加到~/.m2/settings.xml以便github site-maven-plugin可以将其推送到github settingsserversserveridgithub/idpasswordOAUTH2TOKEN/password/server/servers /settings 要么 settingsserversserveridgithub/idusernameGitHubLogin/usernamepasswordGitHubPassw0rd/password/server/servers /settings 就我个人而言我更喜欢第一种方法因为它更安全无需明确显示密码。 要获取github项目的OAUTH2TOKEN 请转到settings -- Applications -- Genreate new token 配置site-maven-plugin 配置site-maven-plugin从我的临时位置上传到github上的mvn-repo分支 plugingroupIdcom.github.github/groupIdartifactIdsite-maven-plugin/artifactIdversion0.9/versionconfigurationmessageMaven artifacts for ${project.version}/messagenoJekylltrue/noJekylloutputDirectory${project.build.directory}/mvn-repo/outputDirectorybranchrefs/heads/mvn-repo/branchincludesinclude**/*/include/includesrepositoryNamepengyifan-commons/repositoryNamerepositoryOwneryfpeng/repositoryOwnerservergithub/server/configurationexecutionsexecutiongoalsgoalsite/goal/goalsphasedeploy/phase/execution/executions /plugin 写这篇文章时存在0.9版site-maven-plugin 。 要解决此问题请git clone 0.10-SNAPSHOT版本并手动mvn install 。 配置maven-source-plugin 要将源代码包添加到mvn-repo中我们需要配置maven-source-plugin 。 在pom.xml添加以下代码 plugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-source-plugin/artifactIdversion2.3/versionexecutionsexecutionidattach-sources/idgoalsgoaljar/goal/goals/execution/executions /plugin配置Maven-javadoc-plugin 要将java doc软件包添加到mvn-repo中我们需要配置maven-javadoc-plugin 。 在pom.xml添加以下代码 plugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-javadoc-plugin/artifactIdexecutionsexecutionidattach-javadocs/idgoalsgoaljar/goal/goals/execution/executions /plugin 现在运行mvn clean deploy 。 我看到maven-deploy-plugin将文件“上传”到目标目录中的本地暂存库中然后site-maven-plugin提交这些文件并将其推送到服务器。 要验证所有二进制文件是否存在请在浏览器中访问github 然后选择mvn-repo分支。 配置Maven以将远程mvn-repo用作Maven存储库 我们应该采取的另一步骤是配置任何poms以知道我们的存储库在哪里。 我们可以将以下代码段添加到任何项目的pom.xml中 repositoriesrepositoryidPROJECT-NAME-mvn-repo/idurlhttps://raw.github.com/USERNAME/PROJECT-NAME/mvn-repo//urlsnapshotsenabledtrue/enabledupdatePolicyalways/updatePolicy/snapshots/repository /repositories翻译自: https://www.javacodegeeks.com/2014/09/hosting-a-maven-repository-on-github-with-sources-and-javadoc.html
http://www.huolong8.cn/news/160690/

相关文章:

  • 如何给自己开发的网站加域名南宁做网站优化的公司
  • 如何用word做简单的网站中国建设银行太原招聘信息网站
  • 南昌建设厅网站南宁网站制作专业
  • 湛江做网站电话做一个网站需要多大的空间
  • 思乐网站建设小型企业网站开发
  • 网站定制化台州外包加工网
  • 伦教网站设计传奇类型的网游
  • 赣榆哪里有做网站的印象笔记 wordpress
  • 怎样做网站导购教程wordpress模板仿遮天小说站
  • 哪个网站做恒生指数最安全揭阳建网站
  • wordpress网站搭建教程做网站建设的怎么赢利
  • 深圳网站制作企业邮箱企业门户网站 php
  • 网站建设开发计入二级科目明细wordpress无刷新评论
  • 安装网站模版视频教程中国企业网银怎么转账
  • 做百度推广是不是得有个网站先深圳白帽优化
  • 网络推广方案的制定流程长春企业网站seo
  • 800元网站建设网站实用性
  • 网站开发和编程有什么区别网站排名 优帮云
  • 高端网站建设公司教育机构的域名
  • 诚通凯胜生态建设有限公司网站什么是网络营销的现实基础
  • 炫酷做网站背景图江苏省工程建设招标网站
  • 北京朝阳区建设工作办公网站东莞网站建设曼哈顿信科
  • 网站怎么做百度推广平面设计培训学校推荐
  • 上海网站建设公司排名如何卸载和重装wordpress
  • 重庆建设造价工程信息网站网络营销专业学校排名
  • 北京的医疗网站建设广州做网站多少钱
  • 怎样在线做网站404购物优惠券网站怎么做
  • 零代码建站平台古腾堡 主题 wordpress
  • 禁止网站采集公司官网的作用
  • 三门峡网站建设深圳高端网站建设