O'Reilly logo

Maven Build Customization by Giacomo Veneri, Riccardo Giomi, Umberto Antonio Cicero, Roberto Baldi, Lorenzo Anardu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

m2e connectors and lifecycle mapping

At the beginning of this appendix, we spoke about the Maven plugin connectors, which work in the background to guarantee the execution of the Maven plugins during the Eclipse build process. For example, if we declare the JAXB-2 Maven Plugin in our project as follows (as we did in the transportation-common-jar module of our sample project; see Chapter 2, Core Maven Concepts):

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>jaxb2-maven-plugin</artifactId>
  <version>1.6</version>
  <executions>
    <execution>
      <id>myExecution</id>
      <goals>
        <goal>xjc</goal>
      </goals>
      <configuration>
        <schemaDirectory>src/main/resources/schema/</schemaDirectory>
      </configuration>
    </execution>
  </executions>
</plugin>

When we put an ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required