Java Maven MOJO - getting information from project POM

后端 未结 5 776
醉话见心
醉话见心 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 03:34

    See Tutorial: How to Create a Maven Plugin:

    POM

            
                
                org.apache.maven
                maven-core
                3.6.3
                provided
            
    

    Mojo

    @Parameter(property = "project", readonly = true)
    private MavenProject project;
    

提交回复
热议问题