Avalon Meta Plugin for Maven
Goals
Goal | Description |
---|---|
avalon:meta |
Generates meta info descriptors for service and component types based on javadoc tags within the java source files. Source class files are scanned for the presence of an @avalon.component or @avalon service tag and if present, a meta descriptor is generated. Meta info generation process includes:
Resulting meta info descriptors are placed int the ${basedir}/target/src directory. Typical application scenario is to define a preGoal to handle meta-info generation under the maven.xml file and inclusion of the output meta info under the project.xml jar resources. maven.xml example <project default="jar:jar"> <preGoal name="jar:jar"> <attainGoal name="avalon:meta"/> </preGoal> </project> project.xml example <project> <!-- other stuff --> <build> <!-- more stuff --> <resources> <!-- include the generated meta-info descriptors into you jar file --> <resource> <directory>${basedir}/target/src</directory> <includes> <!-- meta info desriptors --> <include>**/*.x*</include> </includes> </resource> </resources> </build> </project> |