简体   繁体   中英

maven generate-sources -identify generated source paths from a plugin

I'm trying to write a maven plugin that required to check the generated-sources directories. Can I have the configuration of other plugins and poms which would be interpreted as generated paths

outputDirectory property should be present in the plugin configuration if one want to designate a different directory to look for generated sources otherwise would be default code gen directory of maven.

<plugin>
  <groupId>org.abc.maven</groupId>
  <artifactId>myprocessor</artifactId>
  <version>1.0-SNAPSHOT</version>
  <executions>
    <execution>
      <goals>
        <goal>generate</goal>
      </goals>
      <configuration>
        <outputDirectory>${basedir}/src/main/generated</outputDirectory>
      </configuration> 
    </execution>
  </executions>
  <dependencies/>
</plugin>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM