2015-3-10 settings.xml文件:

<localRepository>C:\Users\xxx\.m2\repository</localRepository>  

--C:\Users\xxx\.m2\settings.xml--

--D:\apache-maven-3.2.3\conf\settings.xml--

设置环境变量:

MAVEN_HOME=D:\apache-maven-3.2.3

Path=%MAVEN_HOME%\bin;

Eclipse设置: Preferences ->Maven ->Installations Preferences ->Maven ->User Settings                        

Global Settings: D:\apache-maven-3.2.3\conf\settings.xml                        

User Settings: C:\Users\xxx\.m2\settings.xml                        

Local Repository: C:\Users\xxx\.m2\repository

 

第一步:配置好maven地址

第二步:git分支多个jar工程的话,单独的放置在一个workspace中,如果有同一分支而本地分支不同的话,在运行的时候将其他的不开发不合并不运行的分支先关闭掉。避免工程间串代码

第三步:servers配置的tomcat发布目录,不要手动去deploy目录下面删除文件,而是通过eclipse来clean,后publish来重新发布

第四步:Maven -> Update project,重新来进行maven编译工程为jar

以上解决maven项目打包jar来发布项目不成功的问题。

 

相关文章:

  • 2022-01-11
  • 2022-02-19
  • 2022-02-07
  • 2021-12-03
  • 2022-12-23
  • 2022-01-15
  • 2022-01-15
  • 2021-06-18
猜你喜欢
  • 2022-01-12
  • 2021-04-13
  • 2021-06-10
  • 2021-07-08
  • 2022-12-23
  • 2021-07-25
  • 2021-04-26
相关资源
相似解决方案