| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- 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. --> |
| <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>org.apache.maven.indexer</groupId> |
| <artifactId>maven-indexer</artifactId> |
| <version>4.1.1</version> |
| </parent> |
| |
| <artifactId>indexer-core</artifactId> |
| |
| <name>Maven :: Indexer Core</name> |
| <description> |
| Indexer Core contains the core support for indexing Maven repositories, searching them, publishing and consuming remotely |
| published indexes. |
| </description> |
| |
| <properties> |
| <lucene.version>3.0.3</lucene.version> |
| <maven.version>3.0.1</maven.version> |
| <aether.version>1.8</aether.version> |
| <archetype.version>2.0-alpha-4</archetype.version> |
| <wagon.version>1.0-beta-7</wagon.version> |
| <truezip.version>7.0-rc1</truezip.version> |
| </properties> |
| |
| <!-- IMPORTANT! * WHEN YOU CHANGE DEPS MAKE SURE TO UPDATE SHADE CONFIG! * DON'T FORGET OTHERWISE YOU ARE RENDERING CLI |
| UNWORKABLE! --> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.indexer</groupId> |
| <artifactId>indexer-artifact</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- Plexus --> |
| <dependency> |
| <groupId>org.sonatype.sisu</groupId> |
| <artifactId>sisu-inject-plexus</artifactId> |
| </dependency> |
| |
| <!-- Lucene --> |
| <dependency> |
| <groupId>org.apache.lucene</groupId> |
| <artifactId>lucene-core</artifactId> |
| <version>${lucene.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.lucene</groupId> |
| <artifactId>lucene-highlighter</artifactId> |
| <version>${lucene.version}</version> |
| </dependency> |
| |
| <!-- Aether --> |
| <dependency> |
| <groupId>org.sonatype.aether</groupId> |
| <artifactId>aether-api</artifactId> |
| <version>${aether.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.sonatype.aether</groupId> |
| <artifactId>aether-util</artifactId> |
| <version>${aether.version}</version> |
| </dependency> |
| |
| <!-- Maven --> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-model</artifactId> |
| <version>${maven.version}</version> |
| </dependency> |
| |
| <!-- Wagon, as optional for those want to use ResourceFetcher backed by Wagons --> |
| <dependency> |
| <groupId>org.apache.maven.wagon</groupId> |
| <artifactId>wagon-provider-api</artifactId> |
| <version>${wagon.version}</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <!-- Using org.apache.maven.archetype.source.ArchetypeDataSource from it only --> |
| <dependency> |
| <groupId>org.apache.maven.archetype</groupId> |
| <artifactId>archetype-common</artifactId> |
| <version>${archetype.version}</version> |
| <optional>true</optional> |
| <exclusions> |
| <exclusion> |
| <groupId>org.codehaus.plexus</groupId> |
| <artifactId>plexus-container-default</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-project</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-artifact</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>velocity</groupId> |
| <artifactId>velocity</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jchardet</artifactId> |
| <groupId>net.sourceforge.jchardet</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>dom4j</artifactId> |
| <groupId>dom4j</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jdom</artifactId> |
| <groupId>jdom</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>maven-model</artifactId> |
| <groupId>org.apache.maven</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>plexus-velocity</artifactId> |
| <groupId>org.codehaus.plexus</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>velocity</artifactId> |
| <groupId>org.apache.velocity</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>commons-io</artifactId> |
| <groupId>commons-io</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>commons-collections</artifactId> |
| <groupId>commons-collections</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- Needed for CLI assembly only, to make it work in "standalone" CLI mode --> |
| <dependency> |
| <groupId>org.codehaus.plexus</groupId> |
| <artifactId>plexus-cli</artifactId> |
| <version>1.2</version> |
| <optional>true</optional> |
| <exclusions> |
| <exclusion> |
| <groupId>org.codehaus.plexus</groupId> |
| <artifactId>plexus-container-default</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| <version>1.0</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <!-- ZipFacade --> |
| <dependency> |
| <groupId>de.schlichtherle.truezip</groupId> |
| <artifactId>truezip-file</artifactId> |
| <version>${truezip.version}</version> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>de.schlichtherle.truezip</groupId> |
| <artifactId>truezip-driver-zip</artifactId> |
| <version>${truezip.version}</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <!-- Test --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jmock</groupId> |
| <artifactId>jmock</artifactId> |
| <scope>test</scope> |
| <version>2.5.1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-core</artifactId> |
| <scope>test</scope> |
| <version>1.1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty</artifactId> |
| <version>6.1.19</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.wagon</groupId> |
| <artifactId>wagon-http-lightweight</artifactId> |
| <version>${wagon.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>1.3.3</version> |
| <executions> |
| <execution> |
| <id>jdk15</id> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <shadedClassifierName>cli</shadedClassifierName> |
| <createDependencyReducedPom>false</createDependencyReducedPom> |
| <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer" /> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.apache.maven.index.cli.NexusIndexerCli</mainClass> |
| </transformer> |
| </transformers> |
| <artifactSet> |
| <includes> |
| <include>org.apache.maven.indexer:indexer-artifact</include> |
| <include>aspectj:aspectjrt</include> |
| <include>commons-cli:commons-cli</include> |
| <include>org.apache.lucene:lucene-core</include> |
| <include>org.sonatype.aether:aether-api</include> |
| <include>org.sonatype.aether:aether-util</include> |
| <include>org.apache.maven:maven-model</include> |
| <include>org.codehaus.plexus:plexus-cli</include> |
| <include>org.codehaus.plexus:plexus-component-annotations</include> |
| <include>org.codehaus.plexus:plexus-classworlds</include> |
| <include>org.codehaus.plexus:plexus-utils</include> |
| <include>org.sonatype.sisu:sisu-inject-plexus</include> |
| <include>org.sonatype.sisu:sisu-inject-bean</include> |
| <include>org.sonatype.sisu:sisu-guice:jar:noaop</include> |
| <include>de.schlichtherle.truezip:truezip-kernel</include> |
| <include>de.schlichtherle.truezip:truezip-file</include> |
| <include>de.schlichtherle.truezip:truezip-driver-zip</include> |
| <include>de.schlichtherle.truezip:truezip-driver-file</include> |
| </includes> |
| </artifactSet> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>2.5</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| <configuration> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| <systemProperties> |
| <property> |
| <name>indexerJar</name> |
| <value>${project.build.directory}/${project.artifactId}-${project.version}-cli.jar</value> |
| </property> |
| <property> |
| <name>index-server</name> |
| <value>${index-server}</value> |
| </property> |
| </systemProperties> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.sonatype.plugins</groupId> |
| <artifactId>port-allocator-maven-plugin</artifactId> |
| <version>1.1</version> |
| <executions> |
| <execution> |
| <phase>validate</phase> |
| <goals> |
| <goal>allocate-ports</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <ports> |
| <port> |
| <name>index-server</name> |
| </port> |
| </ports> |
| </configuration> |
| </plugin> |
| </plugins> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>README.md</exclude> |
| <exclude>src/test/repo/**</exclude> |
| <exclude>src/test/nexus-*/**</exclude> |
| <exclude>src/test/resources/**</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| </project> |