我正在尝试在netbeans中加载maven项目,其中包含pom.yml而不是pom.xml。
当我转到应用程序所在的目录时,Netbeans不会将其识别为项目/应用程序。它显示为常规目录。当我点击目录时,它会把我带到里面而不是打开它。
我在插件仓库中检查了是否有任何相关的插件,但不幸的是,没有任何插件。
有人可以帮帮我吗?
由于
答案 0 :(得分:1)
pom.yml
扩展使用了pom.yml
。 Netbeans不支持它。
一个有效的解决方案是将pom.xml
转换回mvn io.takari.polyglot:polyglot-translate-plugin:0.1.15:translate \
-Dinput=pom.xml \
-Doutput=pom.yml
。
使用Maven 3.3.1+运行以下命令
polyglot-translate-plugin
注意: ... A required class was missing while executing \
io.takari.polyglot:polyglot-translate-plugin:0.1.16:translate: \
org/codehaus/plexus/util/xml/XmlStreamReader
的较新版本有错误,请参阅Polyglot for Maven。哪导致错误
rename