java - Maven Plugin: accessing resources accross multiple modules -
i'm writing custom maven plugin generating xml file in multi-module maven project.
my maven structure pretty standard: 1 parent project , module project components in parent project folder:
-- parent -- module -- module b -- module c
i need list, module, set of classes flagged custom annotation. wrote set of custom annotations , annocation processor create xml file @ compile time in corresponding module output directory (${project.build.outputdirectory}) .
now need merge each module xml 1 file, don't know how access each modules within maven plugin except having each path set parameters (i don't method).
any idea on how ? maven plugins can traverse project modules ?
thank in advance.
to list list of projects can use:
list<mavenproject> projectlist = mavensession.getprojectdependencygraph().getsortedprojects()
if 1 of goals correctly executed need. every mavenproject contains getbasedir()
etc.
Comments
Post a Comment