问题描述
pom.xml文件中引用插件native2ascii-maven-plugin如下:<plugins><plugin><groupId>org.codehaus.mojo</groupId><artifactId>native2ascii-maven-plugin</artifactId><version>1.0-alpha-1</version><configuration><dest>src/main/resources</dest><src>src/main/resources/i18n</src></configuration><executions><execution><id>native2ascii-utf8</id><goals><goal>native2ascii</goal></goals><configuration><encoding>UTF8</encoding><includes>ApplicationResources.properties,errors.properties,ApplicationResources_*.properties,errors_*.properties</includes><excludes>ApplicationResources_pt*.properties,ApplicationResources_es*.properties,errors_pt*.properties,errors_es*.properties</excludes></configuration></execution><execution><id>native2ascii-8859_1</id><goals><goal>native2ascii</goal></goals><configuration><encoding>8859_1</encoding><includes>ApplicationResources_pt*.properties,ApplicationResources_es*.properties,errors_pt*.properties,errors_es*.properties</includes></configuration></execution></executions></plugin></plugins>但是会出现红叉,出错的位置是在<execution>错误的具体内容是:Pluginexecutionnotcoveredbylifecycleconfiguration:org.codehaus.mojo:native2ascii-maven-plugin:1.0-alpha-1:native2ascii(execution:native2ascii-utf8,phase:generate-resources)紧急!!!!!!
解决方案
本帖最后由 yubao417 于 2012-08-17 12:45:55 编辑
解决方案二:
紧急!!!
解决方案三:
不知道
解决方案四:
lz先试试这个解决办法:不要使用Maven3,而用Maven2(2.2)绑定在当前的Eclipse如果还不行,我再跟lz说另一个办法。
解决方案五:
引用3楼gradeyong的回复:
lz先试试这个解决办法:不要使用Maven3,而用Maven2(2.2)绑定在当前的Eclipse如果还不行,我再跟lz说另一个办法。
试了apache-maven-2.2.1不行