首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

maven中运行maven-release-plugin插件错误有关问题

2012-12-16 
maven中运行maven-release-plugin插件异常问题因为我们开发是用的eclipse,里面有工程文件.project这种文件

maven中运行maven-release-plugin插件异常问题
因为我们开发是用的eclipse,里面有工程文件.project这种文件,运行release:prepare的时候报异常:
Cannot prepare the release because you have local modifications
提示你有文件没有提交,正常的文件可以提交,但是这种文件我们得让插件自己过滤掉。
配置如下:


<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-release-plugin</artifactId> <version>2.2.1</version><configuration><tagBase>https://127.0.0.1/svn/maven_svn/tags/</tagBase><checkModificationExcludes><checkModificationExclude>.project</checkModificationExclude><checkModificationExclude>.classpath</checkModificationExclude></checkModificationExcludes></configuration></plugin>

或者
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-release-plugin</artifactId> <version>2.2.1</version><configuration><tagBase>https://127.0.0.1/svn/maven_svn/tags/</tagBase><checkModificationExcludeList>.project,.classpath</checkModificationExcludeList></configuration></plugin>

热点排行