Converting a Netbeans project to a Maven enabled project

后端 未结 5 1351
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 01:38

How can I transition a Netbeans generated project into accepting a Maven configuration? There are options to create Maven based projects, but there is nothing (that I\'ve fo

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 02:14

    I discovered by accident, the reason why Netbeans 8.2. opens projects as Netbeans projects instead of Maven projects; after you have deleted the netbeans and ant specific files then replaced them with the correctly formed pom.

    Netbeans seems to cache the project types for already opened projects, this can be resolved by deleting said cache.

    Windows its located here:

    C:\Users\${username}\AppData\Local\NetBeans\Cache

    Linux here:

    ~/.cache/netbeans/${netbeans_version}/index/

    Mac here:

    ~/Library/Caches/NetBeans/${netbeans_version}/

提交回复
热议问题