如果要在Myeclipse里面对项目进行打包, 首先确保在maven的setting.xml文件里设置了本地仓库 <localRepository>D:/maven/repos</localRepository> 然后再myeclipse的命令中输入 install,该项目就会被自动加入到d盘的maven/repos下面。 只是这里是没有源码的。 如果要打包源码, 就需要输入source:jar。 然后手动复制粘贴到repos对应的目录下。 不知道要怎么设置, 才能自动放入对应的目录。 ================================= 刚才发现中文注释全是乱码, 在网上试了一些方法。 最后终于成功,把那些方法全部记下来。 - 修改Eclipse中文本文件的默认编码:windows->Preferences->general->Workspace->Text file encoding设置为UTF-8 - 修改JAVA源文件的默认编码:windows->Preferences->general->Content Types->右侧Context Types树,点开Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update 这里我的项目的pom文件里面设置了encoding为utf-8 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties>
原文地址:http://alleni123.iteye.com/blog/1955959
转载请注明原文地址: https://ju.6miu.com/read-6736.html