| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <?xml version="1.0"?>
- <!--
- ~ Copyright (c) 2011-2014 The original author or authors
- ~
- ~ All rights reserved. This program and the accompanying materials
- ~ are made available under the terms of the Eclipse Public License v1.0
- ~ and Apache License v2.0 which accompanies this distribution.
- ~
- ~ The Eclipse Public License is available at
- ~ http://www.eclipse.org/legal/epl-v10.html
- ~
- ~ The Apache License v2.0 is available at
- ~ http://www.opensource.org/licenses/apache2.0.php
- ~
- ~ You may elect to redistribute this code under either of these licenses.
- -->
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
- http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>io.vertx</groupId>
- <artifactId>vertx-ext</artifactId>
- <version>38</version>
- </parent>
- <artifactId>vertx-ext-parent</artifactId>
- <version>38</version>
- <packaging>pom</packaging>
- <name>Vert.x Ext Parent</name>
- <properties>
- <!--
- Configure plugins that skip building documentation that otherwise would fail without
- the documentation bits. This is useful in pom aggregators that don't have documentation
- to build, they change this property to true.
- -->
- <doc.skip>false</doc.skip>
- <!-- We skip sources jar generation as we do it with the assembly plugin to have greater
- control over the content -->
- <source.skip>true</source.skip>
- <generated.dir>${project.basedir}/src/main/generated</generated.dir>
- </properties>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <executions>
- <execution>
- <id>default-clean</id>
- <configuration>
- <filesets>
- <fileset>
- <directory>${generated.dir}</directory>
- </fileset>
- </filesets>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <sourcepath>${basedir}/src/main/java;${generated.dir}</sourcepath>
- <reportOutputDirectory>${project.build.directory}/docs</reportOutputDirectory>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <!-- Generate sources before compilation -->
- <plugin>
- <groupId>org.bsc.maven</groupId>
- <artifactId>maven-processor-plugin</artifactId>
- <version>3.2.0</version>
- <executions>
- <execution>
- <id>generate-sources</id>
- <goals>
- <goal>process</goal>
- </goals>
- <phase>generate-sources</phase>
- <configuration>
- <systemProperties>
- <java.util.logging.SimpleFormatter.format>%4$s: %3$s - %5$s %6$s%n</java.util.logging.SimpleFormatter.format>
- </systemProperties>
- <processors>
- <processor>io.vertx.codegen.CodeGenProcessor</processor>
- <processor>io.vertx.docgen.JavaDocGenProcessor</processor>
- </processors>
- <optionMap>
- <codegen.output>${project.basedir}/src/main</codegen.output>
- <!-- Data object converters are placed in src/main/generated -->
- <codegen.output.data_object_converters>generated</codegen.output.data_object_converters>
- <docgen.source>${asciidoc.dir}/*.adoc</docgen.source>
- <docgen.output>${project.build.directory}/asciidoc/java</docgen.output>
- <maven.groupId>${project.groupId}</maven.groupId>
- <maven.artifactId>${project.artifactId}</maven.artifactId>
- <maven.version>${project.version}</maven.version>
- </optionMap>
- <defaultOutputDirectory>${project.build.directory}/generated-sources/codegen</defaultOutputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>${generated.dir}</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <executions>
- <execution>
- <id>gen-javadoc</id>
- <phase>site</phase>
- <goals>
- <goal>javadoc</goal>
- </goals>
- <configuration>
- <skip>${doc.skip}</skip>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctor-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>gen-asciidoc</id>
- <goals>
- <goal>process-asciidoc</goal>
- </goals>
- <phase>site</phase>
- <configuration>
- <skip>${doc.skip}</skip>
- <sourceDirectory>${project.build.directory}/asciidoc</sourceDirectory>
- <resources>
- <resource>
- <directory>${asciidoc.dir}</directory>
- <excludes>
- <exclude>**/*.ad</exclude>
- <exclude>**/*.adoc</exclude>
- </excludes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <!-- Package generation -->
- <profile>
- <id>pkg</id>
- <activation>
- <property>
- <name>!skipPkg</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <dependencies>
- <dependency>
- <groupId>io.vertx</groupId>
- <artifactId>vertx-ext-resources</artifactId>
- <version>38</version>
- </dependency>
- </dependencies>
- <executions>
- <!-- Package sources -->
- <execution>
- <id>package-sources</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <attach>true</attach>
- <archive>
- <!-- Need a manifest to avoid empty archive -->
- <manifest>
- </manifest>
- </archive>
- <descriptorRefs>
- <descriptorRef>sources</descriptorRef>
- </descriptorRefs>
- </configuration>
- </execution>
- <!-- Package docs -->
- <execution>
- <id>package-docs</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <skipAssembly>${doc.skip}</skipAssembly>
- <attach>true</attach>
- <descriptorRefs>
- <descriptorRef>docs</descriptorRef>
- </descriptorRefs>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.7</version>
- <reportSets>
- <reportSet>
- <reports>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
- </plugins>
- </reporting>
- </project>
|