Java Maven MOJO - getting information from project POM

后端 未结 5 778
醉话见心
醉话见心 2021-02-05 02:50

I am working on a maven plugin. I seem to have a hard time figuring out, what would be a good way to get POM information from project in which you execute the MOJO ?

For

5条回答
  •  孤独总比滥情好
    2021-02-05 03:35

    maven-project for maven 2.x version was replaced with maven-model from version maven 3.x, so for new project, use

    
      org.apache.maven
      maven-model
      3.6.3
    
    

提交回复
热议问题