Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-dev] Reading a plugin's configuration during project configuration

Hi everybody,

I am building a m2e extension for a code generation maven plugin. That plugin’s configuration allows for a custom directory that contains the generated sources, e.g.

<build>
 <plugins>
   <plugin>
     <groupId>groupID</groupId>
     <artifactId>artifactID</artifactId>
     <version>1.2.3</version>
     <configuration>
       <outputDirectory>target/generated-sources/ast</outputDirectory >
     </configuration>
   </plugin>
 </plugins>
</build>

I need this parameter to add the directory as source directory during project configuration. What is the preferred way to access configuration parameter’s like these?

TIA and Cheers

-- 
Dipl.-Inform. Antonio Navarro Pérez               Software Engineering
Lehrstuhl für Software Engineering              RWTH Aachen University         
Ahornstraße 55, Raum 4310, D-52074 Aachen             perez@xxxxxxxxxx
Phone ++49 241 80-21342 / Fax -22218            http://www.se-rwth.de/

Back to the top