| <?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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.oodt</groupId> |
| <artifactId>oodt-core</artifactId> |
| <version>1.9-SNAPSHOT</version> |
| <relativePath>../core/pom.xml</relativePath> |
| </parent> |
| <artifactId>cas-filemgr</artifactId> |
| <name>Catalog and Archive File Management Component</name> |
| <description>The file management component of a Catalog and Archive Service. This component |
| purposefully separates data stores and metadata stores as standard interfaces, and |
| provides some out of the box backend implementations of them (including one based |
| on the javax.sql.DataSource interface). This component provides everything that you need |
| to catalog, archive and manage files, and directories, and their associated metadata.</description> |
| <!-- All dependencies should be listed in core/pom.xml and be ordered alphabetically by package and artifact. |
| Once the dependency is in the core pom, it can then be used in other modules without the version tags. |
| For example, within core/pom.xml: |
| |
| <dependency> |
| <groupId>com.amazonaws</groupId> |
| <artifactId>aws-java-sdk</artifactId> |
| <version>1.7.4</version> |
| </dependency> |
| |
| Elsewhere in the platform: |
| <dependency> |
| <groupId>com.amazonaws</groupId> |
| <artifactId>aws-java-sdk</artifactId> |
| </dependency> |
| |
| Where possible the same dependency version should be used across the whole platform but if required the version |
| can be overridden in a specific pom and should have a comment explaing why the version has been overridden |
| --> |
| <dependencies> |
| <!-- https://mvnrepository.com/artifact/org.apache.avro/avro --> |
| <dependency> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro-ipc</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-compress</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.amazonaws</groupId> |
| <artifactId>aws-java-sdk</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-codec</groupId> |
| <artifactId>commons-codec</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-collections</groupId> |
| <artifactId>commons-collections</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-dbcp</groupId> |
| <artifactId>commons-dbcp</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-pool</groupId> |
| <artifactId>commons-pool</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>hsqldb</groupId> |
| <artifactId>hsqldb</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.lucene</groupId> |
| <artifactId>lucene-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.lucene</groupId> |
| <artifactId>lucene-analyzers-common</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.lucene</groupId> |
| <artifactId>lucene-queryparser</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.oodt</groupId> |
| <artifactId>cas-cli</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.oodt</groupId> |
| <artifactId>cas-metadata</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.oodt</groupId> |
| <artifactId>oodt-commons</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.oodt</groupId> |
| <artifactId>oodt-conf</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.solr</groupId> |
| <artifactId>solr-core</artifactId> |
| <scope>compile</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.lucene</groupId> |
| <artifactId>lucene-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.solr</groupId> |
| <artifactId>solr-lucene-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>woodstox</groupId> |
| <artifactId>wstx-asl</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.solr</groupId> |
| <artifactId>solr-solrj</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.lucene</groupId> |
| <artifactId>lucene-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.solr</groupId> |
| <artifactId>solr-lucene-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tika</groupId> |
| <artifactId>tika-parsers</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-all</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-all</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.python</groupId> |
| <artifactId>jython</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.safehaus.jug</groupId> |
| <artifactId>jug</artifactId> |
| <classifier>asl</classifier> |
| </dependency> |
| <dependency> |
| <groupId>xmlrpc</groupId> |
| <artifactId>xmlrpc</artifactId> |
| </dependency> |
| </dependencies> |
| <build> |
| <directory>target</directory> |
| <finalName>${project.artifactId}-${project.version}</finalName> |
| <sourceDirectory>src/main/java</sourceDirectory> |
| <testSourceDirectory>src/test/java</testSourceDirectory> |
| <outputDirectory>target/classes</outputDirectory> |
| <testOutputDirectory>target/test-classes</testOutputDirectory> |
| <resources> |
| <resource> |
| <filtering>true</filtering> |
| <directory>${project.basedir}/src/main/resources</directory> |
| <excludes> |
| <exclude>**/*</exclude> |
| </excludes> |
| </resource> |
| </resources> |
| <testResources> |
| <testResource> |
| <directory>${project.basedir}/src/test/resources</directory> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </testResource> |
| </testResources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro-maven-plugin</artifactId> |
| <version>1.7.7</version> |
| <configuration> |
| <stringType>String</stringType> |
| <detail>true</detail> |
| </configuration> |
| <executions> |
| <execution> |
| <id>schemas</id> |
| <configuration> |
| <imports> |
| <import>${basedir}/src/main/avro/types/AvroMimeType.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroReference.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroExtractorSpec.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroMetadata.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroTypeHandler.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroProductType.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroProduct.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroFileTransferStatus.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroQueryCriteria.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroQuery.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroProductPage.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroElement.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroQueryResult.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroFilterAlgor.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroQueryFilter.avsc</import> |
| <import>${basedir}/src/main/avro/types/AvroComplexQuery.avsc</import> |
| </imports> |
| </configuration> |
| <goals> |
| <goal>schema</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>protocol</id> |
| <configuration> |
| <imports> |
| <import>${basedir}/src/main/avro/types</import> |
| </imports> |
| </configuration> |
| <goals> |
| <goal>idl-protocol</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <forkMode>pertest</forkMode> |
| <!-- so we can DEBUG --> |
| <argLine>-enableassertions</argLine> |
| <useSystemClassLoader>false</useSystemClassLoader> |
| <systemProperties> |
| <property> |
| <name>java.util.logging.config.file</name> |
| <value>src/test/resources/test.logging.properties</value> |
| </property> |
| </systemProperties> |
| <environmentVariables> |
| <FILEMGR_HOME>${project.basedir}</FILEMGR_HOME> |
| <OODT_PROJECT>primary</OODT_PROJECT> |
| </environmentVariables> |
| <forkedProcessTimeoutInSeconds>0</forkedProcessTimeoutInSeconds> |
| <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| <includes> |
| <include>**/*Test*.java</include> |
| </includes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.2-beta-2</version> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/assembly.xml</descriptor> |
| </descriptors> |
| <archive> |
| <manifest> |
| <mainClass>org.apache.oodt.cas.filemgr.system.AvroRpcFileManagerClient</mainClass> |
| </manifest> |
| </archive> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <scm> |
| <!--<connection>scm:svn:https://svn.apache.org/repos/asf/oodt/trunk/filemgr</connection> |
| <developerConnection>scm:svn:https://svn.apache.org/repos/asf/oodt/trunk/filemgr</developerConnection> |
| <url>http://svn.apache.org/viewvc/oodt/trunk/filemgr</url>--> |
| <tag>0.13-SNAPSHOT</tag> |
| </scm> |
| <repositories> |
| <repository> |
| <releases> |
| <enabled>true</enabled> |
| </releases> |
| <snapshots> |
| <enabled>true</enabled> |
| </snapshots> |
| <id>sonatype-nexus</id> |
| <url>https://oss.sonatype.org/content/groups/public</url> |
| </repository> |
| </repositories> |
| <profiles> |
| <profile> |
| <id>audit</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>rat-maven-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>**/testdata/*</exclude> |
| <exclude>**/testdata/**/*</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| <phase>verify</phase> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |