Repository: camel Updated Branches: refs/heads/master 2368653ca -> b5d9464b0
Polished Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/dd9cce36 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/dd9cce36 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/dd9cce36 Branch: refs/heads/master Commit: dd9cce368fa6a1fd278a0d4ac36bb1d8a330168d Parents: 2368653 Author: Claus Ibsen <davscl...@apache.org> Authored: Sun Oct 15 10:30:36 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sun Oct 15 10:30:36 2017 +0200 ---------------------------------------------------------------------- components/camel-blueprint/pom.xml | 1316 ++++++++++++++++--------------- 1 file changed, 661 insertions(+), 655 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/dd9cce36/components/camel-blueprint/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-blueprint/pom.xml b/components/camel-blueprint/pom.xml index d23ef1d..5c1918a 100644 --- a/components/camel-blueprint/pom.xml +++ b/components/camel-blueprint/pom.xml @@ -17,684 +17,690 @@ limitations under the License. --> -<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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> +<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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.camel</groupId> - <artifactId>components</artifactId> - <version>2.21.0-SNAPSHOT</version> - </parent> + <parent> + <groupId>org.apache.camel</groupId> + <artifactId>components</artifactId> + <version>2.21.0-SNAPSHOT</version> + </parent> - <artifactId>camel-blueprint</artifactId> - <name>Camel :: Blueprint</name> - <description>Using Camel with OSGi Blueprint</description> - <packaging>jar</packaging> + <artifactId>camel-blueprint</artifactId> + <name>Camel :: Blueprint</name> + <description>Using Camel with OSGi Blueprint</description> + <packaging>jar</packaging> - <properties> - <!-- use by camel-catalog --> - <firstVersion>2.4.0</firstVersion> - <label>java,osgi</label> + <properties> + <!-- use by camel-catalog --> + <firstVersion>2.4.0</firstVersion> + <label>java,osgi</label> - <camel.osgi.import> - !org.apache.camel.blueprint.*, - !org.apache.camel.util.blueprint.*, - !org.apache.camel.core.osgi.*, - !org.apache.camel.core.xml.*, - org.apache.camel.*;${camel.osgi.import.strict.version}, - org.osgi.service.event*;resolution:=optional, - org.apache.aries*;version="[1.0,2)", - ${camel.osgi.import.defaults}, - * - </camel.osgi.import> - <camel.osgi.export> - org.apache.camel.blueprint*;${camel.osgi.version}, - org.apache.camel.util.blueprint*;${camel.osgi.version} - </camel.osgi.export> - <camel.osgi.private.pkg> - org.apache.camel.core.osgi*, - org.apache.camel.core.xml* - </camel.osgi.private.pkg> - </properties> + <camel.osgi.import> + !org.apache.camel.blueprint.*, + !org.apache.camel.util.blueprint.*, + !org.apache.camel.core.osgi.*, + !org.apache.camel.core.xml.*, + org.apache.camel.*;${camel.osgi.import.strict.version}, + org.osgi.service.event*;resolution:=optional, + org.apache.aries*;version="[1.0,2)", + ${camel.osgi.import.defaults}, + * + </camel.osgi.import> + <camel.osgi.export> + org.apache.camel.blueprint*;${camel.osgi.version}, + org.apache.camel.util.blueprint*;${camel.osgi.version} + </camel.osgi.export> + <camel.osgi.private.pkg> + org.apache.camel.core.osgi*, + org.apache.camel.core.xml* + </camel.osgi.private.pkg> + </properties> - <dependencies> - <dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-core</artifactId> - </dependency> - <dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-core-xml</artifactId> - </dependency> - <dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-core-osgi</artifactId> - </dependency> - <dependency> - <groupId>org.osgi</groupId> - <artifactId>org.osgi.core</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.osgi</groupId> - <artifactId>org.osgi.compendium</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.aries.blueprint</groupId> - <artifactId>org.apache.aries.blueprint.core</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.aries</groupId> - <artifactId>org.apache.aries.util</artifactId> - <version>${aries-util-version}</version> - <scope>provided</scope> - </dependency> + <dependencies> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-core</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-core-xml</artifactId> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-core-osgi</artifactId> + </dependency> + <dependency> + <groupId>org.osgi</groupId> + <artifactId>org.osgi.core</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.osgi</groupId> + <artifactId>org.osgi.compendium</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.aries.blueprint</groupId> + <artifactId>org.apache.aries.blueprint.core</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.aries</groupId> + <artifactId>org.apache.aries.util</artifactId> + <version>${aries-util-version}</version> + <scope>provided</scope> + </dependency> - <!-- for testing --> - <dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-test</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-api</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-core</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-slf4j-impl</artifactId> - <scope>test</scope> - </dependency> - </dependencies> + <!-- for testing --> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-test</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-api</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-slf4j-impl</artifactId> + <scope>test</scope> + </dependency> + </dependencies> - <build> - <resources> - <resource> - <directory>target/schema</directory> - <includes> - <include>**/*</include> - </includes> - </resource> - <resource> - <directory>src/main/resources</directory> - <includes> - <include>**/*</include> - </includes> - <filtering>true</filtering> - </resource> - </resources> + <build> + <resources> + <resource> + <directory>target/schema</directory> + <includes> + <include>**/*</include> + </includes> + </resource> + <resource> + <directory>src/main/resources</directory> + <includes> + <include>**/*</include> + </includes> + <filtering>true</filtering> + </resource> + </resources> - <plugins> - <!-- Inline the contents of camel-core-osgi and camel-core-xml into this bundle. --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <version>2.10</version> - <executions> - <execution> - <id>unpack</id> - <phase>prepare-package</phase> - <goals> - <goal>unpack</goal> - </goals> - <configuration> - <artifactItems> - <artifactItem> - <groupId>org.apache.camel</groupId> - <artifactId>camel-core-xml</artifactId> - <version>${project.version}</version> - <includes>org/apache/camel/**</includes> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - </artifactItem> - <artifactItem> - <groupId>org.apache.camel</groupId> - <artifactId>camel-core-osgi</artifactId> - <version>${project.version}</version> - <includes>org/apache/camel/**</includes> - <outputDirectory>${project.build.directory}/classes</outputDirectory> - </artifactItem> - </artifactItems> - </configuration> - </execution> - </executions> - </plugin> + <plugins> + <!-- Inline the contents of camel-core-osgi and camel-core-xml into this bundle. --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>2.10</version> + <executions> + <execution> + <id>unpack</id> + <phase>prepare-package</phase> + <goals> + <goal>unpack</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>org.apache.camel</groupId> + <artifactId>camel-core-xml</artifactId> + <version>${project.version}</version> + <includes>org/apache/camel/**</includes> + <outputDirectory>${project.build.directory}/classes</outputDirectory> + </artifactItem> + <artifactItem> + <groupId>org.apache.camel</groupId> + <artifactId>camel-core-osgi</artifactId> + <version>${project.version}</version> + <includes>org/apache/camel/**</includes> + <outputDirectory>${project.build.directory}/classes</outputDirectory> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> - <!-- add the sources from camel-core-osgi and camel-core-xml as source code in the camel-blueprint-sources.jar --> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>attach-artifacts</id> - <phase>package</phase> - <goals> - <goal>attach-artifact</goal> - </goals> - <configuration> - <artifacts> - <artifact> - <file>${project.build.directory}/schema/camel-blueprint.xsd</file> - <type>xsd</type> - </artifact> - </artifacts> - </configuration> - </execution> - </executions> - </plugin> + <!-- add the sources from camel-core-osgi and camel-core-xml as source code in the camel-blueprint-sources.jar --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>attach-artifacts</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + <configuration> + <artifacts> + <artifact> + <file>${project.build.directory}/schema/camel-blueprint.xsd</file> + <type>xsd</type> + </artifact> + </artifacts> + </configuration> + </execution> + </executions> + </plugin> - <!-- enrich the schemas with documentation --> - <plugin> - <groupId>org.apache.camel</groupId> - <artifactId>camel-eip-documentation-enricher-maven-plugin</artifactId> - <version>${project.version}</version> - <executions> - <execution> - <id>eip-documentation-enricher</id> - <!-- need to run earlier so we use the process-test-resources phase --> - <phase>process-test-resources</phase> - <goals> - <goal>eip-documentation-enricher</goal> - </goals> - <configuration> - <inputCamelSchemaFile>${project.build.directory}/schema/camel-blueprint.xsd</inputCamelSchemaFile> - <outputCamelSchemaFile>${project.build.directory}/schema/camel-blueprint.xsd</outputCamelSchemaFile> - </configuration> - </execution> - </executions> - </plugin> + <!-- enrich the schemas with documentation --> + <plugin> + <groupId>org.apache.camel</groupId> + <artifactId>camel-eip-documentation-enricher-maven-plugin</artifactId> + <version>${project.version}</version> + <executions> + <execution> + <id>eip-documentation-enricher</id> + <!-- need to run earlier so we use the process-test-resources phase --> + <phase>process-test-resources</phase> + <goals> + <goal>eip-documentation-enricher</goal> + </goals> + <configuration> + <inputCamelSchemaFile>${project.build.directory}/schema/camel-blueprint.xsd</inputCamelSchemaFile> + <outputCamelSchemaFile>${project.build.directory}/schema/camel-blueprint.xsd</outputCamelSchemaFile> + </configuration> + </execution> + </executions> + </plugin> - <!-- Push the execution order of the maven-bundle-plugin further to the end. That's why we add it here again. --> - <plugin> - <groupId>org.apache.felix</groupId> - <artifactId>maven-bundle-plugin</artifactId> - <executions> - <execution> - <id>bundle-manifest</id> - <phase>prepare-package</phase> - </execution> - </executions> - </plugin> + <!-- Push the execution order of the maven-bundle-plugin further to the end. That's why we add it here again. --> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <executions> + <execution> + <id>bundle-manifest</id> + <phase>prepare-package</phase> + </execution> + </executions> + </plugin> - </plugins> + </plugins> - <pluginManagement> - <plugins> - <plugin> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <configuration> + <artifactItems> + <artifactItem> + <groupId>org.apache.camel</groupId> + <artifactId>camel-blueprint</artifactId> + <version>${project.version}</version> + <type>jar</type> + <overWrite>false</overWrite> + <outputDirectory>${project.build.directory}/schema</outputDirectory> + <includes>camel-blueprint.xsd</includes> + </artifactItem> + </artifactItems> + </configuration> + </plugin> + <!-- Eclipse m2e Lifecycle Management --> + <plugin> + <groupId>org.eclipse.m2e</groupId> + <artifactId>lifecycle-mapping</artifactId> + <version>${lifecycle-mapping-version}</version> + <configuration> + <lifecycleMappingMetadata> + <pluginExecutions> + <pluginExecution> + <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <configuration> - <artifactItems> - <artifactItem> - <groupId>org.apache.camel</groupId> - <artifactId>camel-blueprint</artifactId> - <version>${project.version}</version> - <type>jar</type> - <overWrite>false</overWrite> - <outputDirectory>${project.build.directory}/schema</outputDirectory> - <includes>camel-blueprint.xsd</includes> - </artifactItem> - </artifactItems> - </configuration> - </plugin> - <!-- Eclipse m2e Lifecycle Management --> - <plugin> - <groupId>org.eclipse.m2e</groupId> - <artifactId>lifecycle-mapping</artifactId> - <version>${lifecycle-mapping-version}</version> - <configuration> - <lifecycleMappingMetadata> - <pluginExecutions> - <pluginExecution> - <pluginExecutionFilter> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <versionRange>${maven-antrun-plugin-version}</versionRange> - <goals> - <goal>run</goal> - </goals> - </pluginExecutionFilter> - <action> - <ignore /> - </action> - </pluginExecution> - </pluginExecutions> - </lifecycleMappingMetadata> - </configuration> - </plugin> - </plugins> - </pluginManagement> - </build> - - <profiles> - <profile> - <id>release</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <executions> - <execution> - <id>package</id> - <phase>package</phase> - <goals> - <goal>jar</goal> - </goals> - </execution> - </executions> - <configuration> - <links> - <link>http://download.oracle.com/javase/6/docs/api/</link> - <link>http://download.oracle.com/javaee/6/api/</link> - </links> - <stylesheetfile>${basedir}/../../etc/css/stylesheet.css</stylesheetfile> - <linksource>true</linksource> - <source>${jdk.version}</source> - </configuration> - </plugin> - </plugins> - </build> - </profile> - - <!-- The next three profiles are used to bypass the schemagen plugin on HP and IBM JDKs. - - TODO: Whenever Maven supports profile activations based on multiple properties, we - should combine the on-ibmjdk and on-hpjdk profiles as they do exactly the same thing. --> - <profile> - <id>enable-schemagen</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.8</version> - <inherited>true</inherited> - <dependencies> - <!-- need JAXB on the classpath to use the xjc SchemaGenTask --> - <dependency> - <groupId>com.sun.xml.bind</groupId> - <artifactId>jaxb-core</artifactId> - <version>${jaxb-version}</version> - </dependency> - <dependency> - <groupId>com.sun.xml.bind</groupId> - <artifactId>jaxb-impl</artifactId> - <version>${jaxb-version}</version> - </dependency> - <dependency> - <groupId>com.sun.xml.bind</groupId> - <artifactId>jaxb-xjc</artifactId> - <version>${jaxb-version}</version> - </dependency> - <dependency> - <groupId>javax.xml.bind</groupId> - <artifactId>jaxb-api</artifactId> - <version>${jaxb-version}</version> - </dependency> - <dependency> - <groupId>javax.activation</groupId> - <artifactId>activation</artifactId> - <version>1.1.1</version> - </dependency> - </dependencies> - <executions> - <execution> - <id>process-sources</id> - <phase>process-classes</phase> - <configuration> - <target> - <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" /> - - <echo>Copying to code together for the XSD generation</echo> - <mkdir dir="${project.build.directory}/schema-src" /> - <mkdir dir="${project.build.directory}/schema" /> - <copy todir="${project.build.directory}/schema-src"> - <fileset dir="${basedir}/src/main/java"> - <include name="org/apache/camel/blueprint/Camel*.java" /> - <include name="org/apache/camel/blueprint/ErrorHandler*.java" /> - <include name="org/apache/camel/blueprint/package-info.java" /> - <include name="org/apache/camel/util/blueprint/**/*.java" /> - </fileset> - <fileset dir="${basedir}/../camel-core-xml/src/main/java"> - <include name="org/apache/camel/core/xml/*.java" /> - <include name="org/apache/camel/core/xml/util/**/*.java" /> - </fileset> - <fileset dir="${basedir}/../../camel-core/src/main/java"> - <include name="org/apache/camel/model/**/*.java" /> - <include name="org/apache/camel/ExchangePattern.java" /> - <include name="org/apache/camel/LoggingLevel.java" /> - <include name="org/apache/camel/ManagementStatisticsLevel.java" /> - <include name="**/package-info.java" /> - </fileset> - </copy> - - <path id ="source.files.list"> - <fileset dir="${project.build.directory}/schema-src"> - <include name="**/*.java" /> - </fileset> - </path> - <property name="source.files.property" refid="source.files.list"/> - <propertyregex property="schema.source.formatted" input="${source.files.property}" regexp=":" replace=" " global="true" /> - <property name="schema.source.files" value="${schema.source.formatted}"/> - <echo>Schema files ${schema.source.files}</echo> - </target> - <exportAntProperties>true</exportAntProperties> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - <execution> - <id>include-sources</id> - <phase>package</phase> - <configuration> - <target> - <echo>Including source code from camel-core-xml in the camel-blueprint-sources.jar</echo> - <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar" update="true"> - <fileset dir="${basedir}/../camel-core-osgi/src/main/java" includes="**/*" /> - <fileset dir="${basedir}/../camel-core-xml/src/main/java" includes="**/*" /> - </jar> - </target> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - <execution> - <id>copy-schema</id> - <phase>process-test-sources</phase> - <configuration> - <target> - <echo>Copying XSD schema to be included in JAR</echo> - <move file="${project.basedir}/schema1.xsd" tofile="${project.build.directory}/schema/camel-blueprint.xsd" /> - <delete file="${project.basedir}/schema2.xsd"/> - </target> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - <!-- after the eip-documentation-enricher we need to copy some shchema files --> - <execution> - <id>include-schemas</id> - <phase>prepare-package</phase> - <configuration> - <target> - <echo>Copying XSD schema to be included in JAR</echo> - <replace file="${project.build.directory}/schema/camel-blueprint.xsd" token="http://camel.apache.org/schema/spring" value="http://camel.apache.org/schema/blueprint" /> - <copy todir="${project.build.directory}/classes"> - <fileset dir="${project.build.directory}/schema" /> - </copy> - <!-- copy modified schemas back again in classes so they are included in the JAR --> - <copy todir="${project.build.directory}/classes"> - <fileset dir="${project.build.directory}/schema" /> - </copy> - </target> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>exec-maven-plugin</artifactId> - <executions> - <execution> - <id>generate schema</id> - <phase>generate-test-sources</phase> - <goals> - <goal>exec</goal> - </goals> - </execution> - </executions> - <configuration> - <executable>schemagen</executable> - <commandlineArgs>-cp %classpath ${schema.source.files}</commandlineArgs> - </configuration> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>on-ibmjdk</id> - <activation> - <property> - <name>java.vendor</name> - <value>IBM Corporation</value> - </property> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - - <execution> - <id>unpack</id> - <phase>generate-sources</phase> + <artifactId>maven-antrun-plugin</artifactId> + <versionRange>${maven-antrun-plugin-version}</versionRange> <goals> - <goal>unpack</goal> + <goal>run</goal> </goals> - </execution> + </pluginExecutionFilter> + <action> + <ignore/> + </action> + </pluginExecution> + </pluginExecutions> + </lifecycleMappingMetadata> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> - </executions> - </plugin> - </plugins> - </build> + <profiles> + <profile> + <id>release</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>package</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + <configuration> + <links> + <link>http://download.oracle.com/javase/6/docs/api/</link> + <link>http://download.oracle.com/javaee/6/api/</link> + </links> + <stylesheetfile>${basedir}/../../etc/css/stylesheet.css</stylesheetfile> + <linksource>true</linksource> + <source>${jdk.version}</source> + </configuration> + </plugin> + </plugins> + </build> + </profile> - </profile> - <profile> - <id>on-hpjdk</id> - <activation> - <property> - <name>java.vendor</name> - <value>Hewlett-Packard Co.</value> - </property> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>unpack</id> - <phase>generate-sources</phase> - <goals> - <goal>unpack</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - <profile> - <id>jdk9-build</id> - <activation> - <jdk>9</jdk> - <property> - <name>!os.unsupported.schemagen</name> - </property> - </activation> - <build> - <plugins> - <plugin> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <reuseForks>true</reuseForks> - <argLine>--add-modules java.xml.bind,java.xml.ws --add-opens java.base/java.lang=ALL-UNNAMED</argLine> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.8</version> - <executions> - <execution> - <id>process-sources</id> - <phase>process-classes</phase> - <configuration> - <target> - <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath" /> - <echo>Copying to code together for the XSD generation</echo> - <mkdir dir="${project.build.directory}/schema-src" /> - <mkdir dir="${project.build.directory}/schema" /> - <copy todir="${project.build.directory}/schema-src"> - <fileset dir="${basedir}/src/main/java"> - <include name="org/apache/camel/blueprint/Camel*.java" /> - <include name="org/apache/camel/blueprint/ErrorHandler*.java" /> - <include name="org/apache/camel/blueprint/package-info.java" /> - <include name="org/apache/camel/util/blueprint/**/*.java" /> - </fileset> - <fileset dir="${basedir}/../camel-core-xml/src/main/java"> - <include name="org/apache/camel/core/xml/*.java" /> - <include name="org/apache/camel/core/xml/util/**/*.java" /> - </fileset> - <fileset dir="${basedir}/../../camel-core/src/main/java"> - <include name="org/apache/camel/model/**/*.java" /> - <include name="org/apache/camel/ExchangePattern.java" /> - <include name="org/apache/camel/LoggingLevel.java" /> - <include name="org/apache/camel/ManagementStatisticsLevel.java" /> - <include name="**/package-info.java" /> - </fileset> - </copy> - <path id ="source.files.list"> - <fileset dir="${project.build.directory}/schema-src"> - <include name="**/*.java" /> - </fileset> - </path> - <property name="source.files.property" refid="source.files.list"/> - <propertyregex property="schema.source.formatted" input="${source.files.property}" regexp=":" replace=" " global="true" /> - <property name="schema.source.files" value="${schema.source.formatted}"/> - <echo>Schema files ${schema.source.files}</echo> - </target> - <exportAntProperties>true</exportAntProperties> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - <execution> - <id>include-sources</id> - <phase>package</phase> - <configuration> - <target> - <echo>Including source code from camel-core-xml in the camel-blueprint-sources.jar</echo> - <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar" update="true"> - <fileset dir="${basedir}/../camel-core-osgi/src/main/java" includes="**/*" /> - <fileset dir="${basedir}/../camel-core-xml/src/main/java" includes="**/*" /> - </jar> - </target> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - <execution> - <id>copy-schema</id> - <phase>process-test-sources</phase> - <configuration> - <target> - <echo>Copying XSD schema to be included in JAR</echo> - <move file="${project.basedir}/schema1.xsd" tofile="${project.build.directory}/schema/camel-blueprint.xsd" /> - <delete file="${project.basedir}/schema2.xsd"/> - </target> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - <!-- after the eip-documentation-enricher we need to copy some shchema files --> - <execution> - <id>include-schemas</id> - <phase>prepare-package</phase> - <configuration> - <target> - <echo>Copying XSD schema to be included in JAR</echo> - <replace file="${project.build.directory}/schema/camel-blueprint.xsd" token="http://camel.apache.org/schema/spring" value="http://camel.apache.org/schema/blueprint" /> - <copy todir="${project.build.directory}/classes"> - <fileset dir="${project.build.directory}/schema" /> - </copy> - <!-- copy modified schemas back again in classes so they are included in the JAR --> - <copy todir="${project.build.directory}/classes"> - <fileset dir="${project.build.directory}/schema" /> - </copy> - </target> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>exec-maven-plugin</artifactId> - <executions> - <execution> - <id>generate schema</id> - <phase>generate-test-sources</phase> - <goals> - <goal>exec</goal> - </goals> - </execution> - </executions> - <configuration> - <executable>schemagen</executable> - <commandlineArgs>-cp %classpath ${schema.source.files}</commandlineArgs> - </configuration> - </plugin> - </plugins> - </build> - </profile> - </profiles> + <!-- The next three profiles are used to bypass the schemagen plugin on HP and IBM JDKs. + TODO: Whenever Maven supports profile activations based on multiple properties, we + should combine the on-ibmjdk and on-hpjdk profiles as they do exactly the same thing. --> + <profile> + <id>enable-schemagen</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> - <reporting> + <build> <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.8</version> + <inherited>true</inherited> + <dependencies> + <!-- need JAXB on the classpath to use the xjc SchemaGenTask --> + <dependency> + <groupId>com.sun.xml.bind</groupId> + <artifactId>jaxb-core</artifactId> + <version>${jaxb-version}</version> + </dependency> + <dependency> + <groupId>com.sun.xml.bind</groupId> + <artifactId>jaxb-impl</artifactId> + <version>${jaxb-version}</version> + </dependency> + <dependency> + <groupId>com.sun.xml.bind</groupId> + <artifactId>jaxb-xjc</artifactId> + <version>${jaxb-version}</version> + </dependency> + <dependency> + <groupId>javax.xml.bind</groupId> + <artifactId>jaxb-api</artifactId> + <version>${jaxb-version}</version> + </dependency> + <dependency> + <groupId>javax.activation</groupId> + <artifactId>activation</artifactId> + <version>1.1.1</version> + </dependency> + </dependencies> + <executions> + <execution> + <id>process-sources</id> + <phase>process-classes</phase> <configuration> - <links> - <link>http://download.oracle.com/javase/6/docs/api/</link> - <link>http://download.oracle.com/javaee/6/api/</link> - <link>http://static.springsource.org/spring/docs/${spring-version}/javadoc-api/</link> - </links> - <stylesheetfile>${basedir}/../../etc/css/stylesheet.css</stylesheetfile> - <linksource>true</linksource> - <maxmemory>256m</maxmemory> - <source>${jdk.version}</source> + <target> + <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/> - <groups> - <group> - <title>Camel Blueprint Classes</title> - <packages>org.apache.camel.blueprint</packages> - </group> - </groups> + <echo>Copying to code together for the XSD generation</echo> + <mkdir dir="${project.build.directory}/schema-src"/> + <mkdir dir="${project.build.directory}/schema"/> + <copy todir="${project.build.directory}/schema-src"> + <fileset dir="${basedir}/src/main/java"> + <include name="org/apache/camel/blueprint/Camel*.java"/> + <include name="org/apache/camel/blueprint/ErrorHandler*.java"/> + <include name="org/apache/camel/blueprint/package-info.java"/> + <include name="org/apache/camel/util/blueprint/**/*.java"/> + </fileset> + <fileset dir="${basedir}/../camel-core-xml/src/main/java"> + <include name="org/apache/camel/core/xml/*.java"/> + <include name="org/apache/camel/core/xml/util/**/*.java"/> + </fileset> + <fileset dir="${basedir}/../../camel-core/src/main/java"> + <include name="org/apache/camel/model/**/*.java"/> + <include name="org/apache/camel/ExchangePattern.java"/> + <include name="org/apache/camel/LoggingLevel.java"/> + <include name="org/apache/camel/ManagementStatisticsLevel.java"/> + <include name="**/package-info.java"/> + </fileset> + </copy> + + <path id="source.files.list"> + <fileset dir="${project.build.directory}/schema-src"> + <include name="**/*.java"/> + </fileset> + </path> + <property name="source.files.property" refid="source.files.list"/> + <propertyregex property="schema.source.formatted" input="${source.files.property}" regexp=":" + replace=" " global="true"/> + <property name="schema.source.files" value="${schema.source.formatted}"/> + <echo>Schema files ${schema.source.files}</echo> + </target> + <exportAntProperties>true</exportAntProperties> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + <execution> + <id>include-sources</id> + <phase>package</phase> + <configuration> + <target> + <echo>Including source code from camel-core-xml in the camel-blueprint-sources.jar</echo> + <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar" + update="true"> + <fileset dir="${basedir}/../camel-core-osgi/src/main/java" includes="**/*"/> + <fileset dir="${basedir}/../camel-core-xml/src/main/java" includes="**/*"/> + </jar> + </target> </configuration> - </plugin> + <goals> + <goal>run</goal> + </goals> + </execution> + <execution> + <id>copy-schema</id> + <phase>process-test-sources</phase> + <configuration> + <target> + <echo>Copying XSD schema to be included in JAR</echo> + <move file="${project.basedir}/schema1.xsd" + tofile="${project.build.directory}/schema/camel-blueprint.xsd"/> + <delete file="${project.basedir}/schema2.xsd"/> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + <!-- after the eip-documentation-enricher we need to copy some shchema files --> + <execution> + <id>include-schemas</id> + <phase>prepare-package</phase> + <configuration> + <target> + <echo>Copying XSD schema to be included in JAR</echo> + <replace file="${project.build.directory}/schema/camel-blueprint.xsd" + token="http://camel.apache.org/schema/spring" + value="http://camel.apache.org/schema/blueprint"/> + <copy todir="${project.build.directory}/classes"> + <fileset dir="${project.build.directory}/schema"/> + </copy> + <!-- copy modified schemas back again in classes so they are included in the JAR --> + <copy todir="${project.build.directory}/classes"> + <fileset dir="${project.build.directory}/schema"/> + </copy> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <executions> + <execution> + <id>generate schema</id> + <phase>generate-test-sources</phase> + <goals> + <goal>exec</goal> + </goals> + </execution> + </executions> + <configuration> + <executable>schemagen</executable> + <commandlineArgs>-cp %classpath ${schema.source.files}</commandlineArgs> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>on-ibmjdk</id> + <activation> + <property> + <name>java.vendor</name> + <value>IBM Corporation</value> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>unpack</id> + <phase>generate-sources</phase> + <goals> + <goal>unpack</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>on-hpjdk</id> + <activation> + <property> + <name>java.vendor</name> + <value>Hewlett-Packard Co.</value> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>unpack</id> + <phase>generate-sources</phase> + <goals> + <goal>unpack</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>jdk9-build</id> + <activation> + <jdk>9</jdk> + <property> + <name>!os.unsupported.schemagen</name> + </property> + </activation> + <build> + <plugins> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <reuseForks>true</reuseForks> + <argLine>--add-modules java.xml.bind,java.xml.ws --add-opens java.base/java.lang=ALL-UNNAMED</argLine> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.8</version> + <executions> + <execution> + <id>process-sources</id> + <phase>process-classes</phase> + <configuration> + <target> + <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/> + <echo>Copying to code together for the XSD generation</echo> + <mkdir dir="${project.build.directory}/schema-src"/> + <mkdir dir="${project.build.directory}/schema"/> + <copy todir="${project.build.directory}/schema-src"> + <fileset dir="${basedir}/src/main/java"> + <include name="org/apache/camel/blueprint/Camel*.java"/> + <include name="org/apache/camel/blueprint/ErrorHandler*.java"/> + <include name="org/apache/camel/blueprint/package-info.java"/> + <include name="org/apache/camel/util/blueprint/**/*.java"/> + </fileset> + <fileset dir="${basedir}/../camel-core-xml/src/main/java"> + <include name="org/apache/camel/core/xml/*.java"/> + <include name="org/apache/camel/core/xml/util/**/*.java"/> + </fileset> + <fileset dir="${basedir}/../../camel-core/src/main/java"> + <include name="org/apache/camel/model/**/*.java"/> + <include name="org/apache/camel/ExchangePattern.java"/> + <include name="org/apache/camel/LoggingLevel.java"/> + <include name="org/apache/camel/ManagementStatisticsLevel.java"/> + <include name="**/package-info.java"/> + </fileset> + </copy> + <path id="source.files.list"> + <fileset dir="${project.build.directory}/schema-src"> + <include name="**/*.java"/> + </fileset> + </path> + <property name="source.files.property" refid="source.files.list"/> + <propertyregex property="schema.source.formatted" input="${source.files.property}" regexp=":" + replace=" " global="true"/> + <property name="schema.source.files" value="${schema.source.formatted}"/> + <echo>Schema files ${schema.source.files}</echo> + </target> + <exportAntProperties>true</exportAntProperties> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + <execution> + <id>include-sources</id> + <phase>package</phase> + <configuration> + <target> + <echo>Including source code from camel-core-xml in the camel-blueprint-sources.jar</echo> + <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar" + update="true"> + <fileset dir="${basedir}/../camel-core-osgi/src/main/java" includes="**/*"/> + <fileset dir="${basedir}/../camel-core-xml/src/main/java" includes="**/*"/> + </jar> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + <execution> + <id>copy-schema</id> + <phase>process-test-sources</phase> + <configuration> + <target> + <echo>Copying XSD schema to be included in JAR</echo> + <move file="${project.basedir}/schema1.xsd" + tofile="${project.build.directory}/schema/camel-blueprint.xsd"/> + <delete file="${project.basedir}/schema2.xsd"/> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + <!-- after the eip-documentation-enricher we need to copy some shchema files --> + <execution> + <id>include-schemas</id> + <phase>prepare-package</phase> + <configuration> + <target> + <echo>Copying XSD schema to be included in JAR</echo> + <replace file="${project.build.directory}/schema/camel-blueprint.xsd" + token="http://camel.apache.org/schema/spring" + value="http://camel.apache.org/schema/blueprint"/> + <copy todir="${project.build.directory}/classes"> + <fileset dir="${project.build.directory}/schema"/> + </copy> + <!-- copy modified schemas back again in classes so they are included in the JAR --> + <copy todir="${project.build.directory}/classes"> + <fileset dir="${project.build.directory}/schema"/> + </copy> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <executions> + <execution> + <id>generate schema</id> + <phase>generate-test-sources</phase> + <goals> + <goal>exec</goal> + </goals> + </execution> + </executions> + <configuration> + <executable>schemagen</executable> + <commandlineArgs>-cp %classpath ${schema.source.files}</commandlineArgs> + </configuration> + </plugin> </plugins> - </reporting> + </build> + </profile> + </profiles> + + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <configuration> + <links> + <link>http://download.oracle.com/javase/6/docs/api/</link> + <link>http://download.oracle.com/javaee/6/api/</link> + <link>http://static.springsource.org/spring/docs/${spring-version}/javadoc-api/</link> + </links> + <stylesheetfile>${basedir}/../../etc/css/stylesheet.css</stylesheetfile> + <linksource>true</linksource> + <maxmemory>256m</maxmemory> + <source>${jdk.version}</source> + <groups> + <group> + <title>Camel Blueprint Classes</title> + <packages>org.apache.camel.blueprint</packages> + </group> + </groups> + </configuration> + </plugin> + </plugins> + </reporting> </project>