| <?xml version="1.0" encoding="UTF-8"?> |
| <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"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version |
| 2.0 (the "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 Unless required by |
| applicable law or agreed to in writing, software distributed under the |
| License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
| CONDITIONS OF ANY KIND, either express or implied. See the License for |
| the specific language governing permissions and limitations under the |
| License. |
| --> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.servicemix</groupId> |
| <artifactId>archetypes</artifactId> |
| <version>2010.01-SNAPSHOT</version> |
| </parent> |
| |
| <groupId>org.apache.servicemix.tooling</groupId> |
| <artifactId>catalog</artifactId> |
| <packaging>pom</packaging> |
| <name>Apache ServiceMix :: Archetypes :: Catalog</name> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <mkdir dir="${project.build.directory}" /> |
| <mkdir dir="${project.build.directory}/temp/allversions" /> |
| <mkdir dir="${project.build.directory}/temp/duplicates" /> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-archetype-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>crawl</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <repository>${settings.localRepository}/org/apache/servicemix/tooling</repository> |
| <catalogFile>${project.build.directory}/temp/allversions/archetype-catalog.xml</catalogFile> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>xslt-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>filter-by-version</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>transform</goal> |
| </goals> |
| <configuration> |
| <xslFile>target/classes/filter.xsl</xslFile> |
| <srcDir>${project.build.directory}/temp/allversions</srcDir> |
| <destDir>${project.build.directory}/temp/duplicates</destDir> |
| <parameters> |
| <version>${servicemix-version}</version> |
| </parameters> |
| </configuration> |
| </execution> |
| <execution> |
| <id>dedup</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>transform</goal> |
| </goals> |
| <configuration> |
| <xslFile>target/classes/dedup.xsl</xslFile> |
| <srcDir>${project.build.directory}/temp/duplicates</srcDir> |
| <destDir>${project.build.directory}</destDir> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <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}/archetype-catalog.xml</file> |
| <type>xml</type> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |