基于已有项目建立新项目

基于已有项目建立新项目

目录

一、删除git项目:

在这里插入图片描述

查看—>隐藏的文件夹 扩展名

删除.git文件夹

修改.iml的文件名称

二:新建svn项目:

  • 连接svn 桌面右键–>tortoiseSVN–>Repo-browser ,连接到原有的svn仓库。

  • 在你想要存放新项目的文件夹上右键,选择Create Folder,输入文件夹名字。

  • 输完之后会弹出一个提示框,让你输入这个文件夹的备注。注意,这里最好不要写汉字

  • 找一个空的文件夹,然后右键这个文件夹–>svn checkout

三:报错:

Compilation of Maven projects is supported only if external build is started from an IDE. 报错

解决的方法是 鼠标右击pom.xml 向下拉 有个 add as maven project ,点一下,就可以了。

四:更改nacos上的配置文件

vspcloud-vsptrunk-email:
    name: vspcloud-vsptrunk-email
    port: 15008

五:项目地址:

D:\ideaProject\myemail\vspcloud-vsptrunk-email

六:报错:

Error starting Tomcat context. Exception: org.springframework.beans.factory.

spring:
  application:
    name: vspcloud-vsptrunk-cmcc

七:svn地址:

八:发送邮件代理服务器账号密码设置

邮箱发邮件提醒的功能 可是公司用的内网,接外网要用公司的代理服务器

props.setProperty(“proxySet”, “true”);
props.setProperty(“socksProxyHost”, “10.10.101.9”);
props.setProperty(“socksProxyPort”, “8080”);

代理服务地址和端口都设好了

但是公司的代理服务器要账号密码 这个账号密码要在那设?

解决方案:

用了一个Proxifier 的软件 用这个软件设置代理 把发邮件的程序 通过这个软件连接代理服务器 然后就ok了。

在这里插入图片描述

结果还是连不上

九:gerrit项目:

在这里插入图片描述

http://10.10.142.120:9000/gerrit/#/admin/projects/vspcloud/vspcloud-mail-service

git clone ssh://[email protected]:29418/vspcloud/vspcloud-mail-service

项目位置:

D:\ideaProject\vspcloud-mail-service

新建test分支

报错:fatal: The current branch test has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin test

应该是没有权限提交代码

发布了158 篇原创文章 · 获赞 18 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/yunfengfengfeng/article/details/105641638