Download commons-vfs2-2.1.jar file

Introduction

You can download commons-vfs2-2.1.jar in this page.

License

Apache License

Type List

commons-vfs2-2.1.jar file has the following types.

META-INF/LICENSE.txt
META-INF/MANIFEST.MF
META-INF/NOTICE.txt
META-INF/maven/org.apache.commons/commons-vfs2/pom.properties
META-INF/maven/org.apache.commons/commons-vfs2/pom.xml
org.apache.commons.vfs2.AllFileSelector.class
org.apache.commons.vfs2.CacheStrategy.class
org.apache.commons.vfs2.Capability.class
org.apache.commons.vfs2.FileChangeEvent.class
org.apache.commons.vfs2.FileContent.class
org.apache.commons.vfs2.FileContentInfo.class
org.apache.commons.vfs2.FileContentInfoFactory.class
org.apache.commons.vfs2.FileDepthSelector.class
org.apache.commons.vfs2.FileExtensionSelector.class
org.apache.commons.vfs2.FileFilter.class
org.apache.commons.vfs2.FileFilterSelector.class
org.apache.commons.vfs2.FileListener.class
org.apache.commons.vfs2.FileMonitor.class
org.apache.commons.vfs2.FileName.class
org.apache.commons.vfs2.FileNotFolderException.class
org.apache.commons.vfs2.FileNotFoundException.class
org.apache.commons.vfs2.FileObject.class
org.apache.commons.vfs2.FileSelectInfo.class
org.apache.commons.vfs2.FileSelector.class
org.apache.commons.vfs2.FileSystem.class
org.apache.commons.vfs2.FileSystemConfigBuilder.class
org.apache.commons.vfs2.FileSystemException.class
org.apache.commons.vfs2.FileSystemManager.class
org.apache.commons.vfs2.FileSystemOptions.class
org.apache.commons.vfs2.FileType.class
org.apache.commons.vfs2.FileTypeHasNoContentException.class
org.apache.commons.vfs2.FileTypeSelector.class
org.apache.commons.vfs2.FileUtil.class
org.apache.commons.vfs2.FilesCache.class
org.apache.commons.vfs2.NameScope.class
org.apache.commons.vfs2.PatternFileSelector.class
org.apache.commons.vfs2.RandomAccessContent.class
org.apache.commons.vfs2.Selectors.class
org.apache.commons.vfs2.UserAuthenticationData.class
org.apache.commons.vfs2.UserAuthenticator.class
org.apache.commons.vfs2.VFS.class
org.apache.commons.vfs2.VfsLog.class
org.apache.commons.vfs2.auth.StaticUserAuthenticator.class
org.apache.commons.vfs2.cache.AbstractFilesCache.class
org.apache.commons.vfs2.cache.DefaultFilesCache.class
org.apache.commons.vfs2.cache.FileSystemAndNameKey.class
org.apache.commons.vfs2.cache.LRUFilesCache.class
org.apache.commons.vfs2.cache.NullFilesCache.class
org.apache.commons.vfs2.cache.OnCallRefreshFileObject.class
org.apache.commons.vfs2.cache.SoftRefFilesCache.class
org.apache.commons.vfs2.cache.WeakRefFilesCache.class
org.apache.commons.vfs2.events.AbstractFileChangeEvent.class
org.apache.commons.vfs2.events.ChangedEvent.class
org.apache.commons.vfs2.events.CreateEvent.class
org.apache.commons.vfs2.events.DeleteEvent.class
org.apache.commons.vfs2.impl.DecoratedFileObject.class
org.apache.commons.vfs2.impl.DefaultFileContentInfo.class
org.apache.commons.vfs2.impl.DefaultFileMonitor.class
org.apache.commons.vfs2.impl.DefaultFileReplicator.class
org.apache.commons.vfs2.impl.DefaultFileSystemConfigBuilder.class
org.apache.commons.vfs2.impl.DefaultFileSystemManager.class
org.apache.commons.vfs2.impl.DefaultProviderConfiguration.class
org.apache.commons.vfs2.impl.DefaultVfsComponentContext.class
org.apache.commons.vfs2.impl.FileContentInfoFilenameFactory.class
org.apache.commons.vfs2.impl.FileTypeMap.class
org.apache.commons.vfs2.impl.PrivilegedFileReplicator.class
org.apache.commons.vfs2.impl.ProviderConfiguration.class
org.apache.commons.vfs2.impl.Resource.class
org.apache.commons.vfs2.impl.StandardFileSystemManager.class
org.apache.commons.vfs2.impl.SynchronizedFileObject.class
org.apache.commons.vfs2.impl.URLStreamHandlerProxy.class
org.apache.commons.vfs2.impl.VFSClassLoader.class
org.apache.commons.vfs2.impl.VirtualFileName.class
org.apache.commons.vfs2.impl.VirtualFileProvider.class
org.apache.commons.vfs2.impl.VirtualFileSystem.class
org.apache.commons.vfs2.operations.AbstractFileOperation.class
org.apache.commons.vfs2.operations.AbstractFileOperationProvider.class
org.apache.commons.vfs2.operations.DefaultFileOperations.class
org.apache.commons.vfs2.operations.FileOperation.class
org.apache.commons.vfs2.operations.FileOperationProvider.class
org.apache.commons.vfs2.operations.FileOperations.class
org.apache.commons.vfs2.operations.vcs.VcsAdd.class
org.apache.commons.vfs2.operations.vcs.VcsCheckout.class
org.apache.commons.vfs2.operations.vcs.VcsCommit.class
org.apache.commons.vfs2.operations.vcs.VcsCommitListener.class
org.apache.commons.vfs2.operations.vcs.VcsDelete.class
org.apache.commons.vfs2.operations.vcs.VcsLog.class
org.apache.commons.vfs2.operations.vcs.VcsLogEntry.class
org.apache.commons.vfs2.operations.vcs.VcsLogEntryHandler.class
org.apache.commons.vfs2.operations.vcs.VcsModifyListener.class
org.apache.commons.vfs2.operations.vcs.VcsRevert.class
org.apache.commons.vfs2.operations.vcs.VcsStatus.class
org.apache.commons.vfs2.operations.vcs.VcsUpdate.class
org.apache.commons.vfs2.operations.vcs.VcsUpdateListener.class
org.apache.commons.vfs2.provider.AbstractFileName.class
org.apache.commons.vfs2.provider.AbstractFileNameParser.class
org.apache.commons.vfs2.provider.AbstractFileObject.class
org.apache.commons.vfs2.provider.AbstractFileProvider.class
org.apache.commons.vfs2.provider.AbstractFileSystem.class
org.apache.commons.vfs2.provider.AbstractLayeredFileProvider.class
org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.class
org.apache.commons.vfs2.provider.AbstractRandomAccessContent.class
org.apache.commons.vfs2.provider.AbstractRandomAccessStreamContent.class
org.apache.commons.vfs2.provider.AbstractVfsComponent.class
org.apache.commons.vfs2.provider.AbstractVfsContainer.class
org.apache.commons.vfs2.provider.CompositeFileProvider.class
org.apache.commons.vfs2.provider.DefaultFileContent.class
org.apache.commons.vfs2.provider.DefaultFileSelectorInfo.class
org.apache.commons.vfs2.provider.DefaultURLConnection.class
org.apache.commons.vfs2.provider.DefaultURLStreamHandler.class
org.apache.commons.vfs2.provider.DelegateFileObject.class
org.apache.commons.vfs2.provider.FileContentThreadData.class
org.apache.commons.vfs2.provider.FileNameParser.class
org.apache.commons.vfs2.provider.FileProvider.class
org.apache.commons.vfs2.provider.FileReplicator.class
org.apache.commons.vfs2.provider.FileSystemKey.class
org.apache.commons.vfs2.provider.GenericFileName.class
org.apache.commons.vfs2.provider.HostFileNameParser.class
org.apache.commons.vfs2.provider.LayeredFileName.class
org.apache.commons.vfs2.provider.LayeredFileNameParser.class
org.apache.commons.vfs2.provider.LocalFileProvider.class
org.apache.commons.vfs2.provider.TemporaryFileStore.class
org.apache.commons.vfs2.provider.URLFileName.class
org.apache.commons.vfs2.provider.URLFileNameParser.class
org.apache.commons.vfs2.provider.UriParser.class
org.apache.commons.vfs2.provider.VfsComponent.class
org.apache.commons.vfs2.provider.VfsComponentContext.class
org.apache.commons.vfs2.provider.bzip2.Bzip2FileObject.class
org.apache.commons.vfs2.provider.bzip2.Bzip2FileProvider.class
org.apache.commons.vfs2.provider.bzip2.Bzip2FileSystem.class
org.apache.commons.vfs2.provider.compressed.CompressedFileFileObject.class
org.apache.commons.vfs2.provider.compressed.CompressedFileFileProvider.class
org.apache.commons.vfs2.provider.compressed.CompressedFileFileSystem.class
org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.class
org.apache.commons.vfs2.provider.ftp.FtpClient.class
org.apache.commons.vfs2.provider.ftp.FtpClientFactory.class
org.apache.commons.vfs2.provider.ftp.FtpFileNameParser.class
org.apache.commons.vfs2.provider.ftp.FtpFileObject.class
org.apache.commons.vfs2.provider.ftp.FtpFileProvider.class
org.apache.commons.vfs2.provider.ftp.FtpFileSystem.class
org.apache.commons.vfs2.provider.ftp.FtpFileSystemConfigBuilder.class
org.apache.commons.vfs2.provider.ftp.FtpFileType.class
org.apache.commons.vfs2.provider.ftp.FtpRandomAccessContent.class
org.apache.commons.vfs2.provider.ftps.FtpsClientFactory.class
org.apache.commons.vfs2.provider.ftps.FtpsClientWrapper.class
org.apache.commons.vfs2.provider.ftps.FtpsDataChannelProtectionLevel.class
org.apache.commons.vfs2.provider.ftps.FtpsFileProvider.class
org.apache.commons.vfs2.provider.ftps.FtpsFileSystem.class
org.apache.commons.vfs2.provider.ftps.FtpsFileSystemConfigBuilder.class
org.apache.commons.vfs2.provider.ftps.FtpsMode.class
org.apache.commons.vfs2.provider.gzip.GzipFileObject.class
org.apache.commons.vfs2.provider.gzip.GzipFileProvider.class
org.apache.commons.vfs2.provider.gzip.GzipFileSystem.class
org.apache.commons.vfs2.provider.hdfs.HdfsFileAttributes.class
org.apache.commons.vfs2.provider.hdfs.HdfsFileContentInfoFactory.class
org.apache.commons.vfs2.provider.hdfs.HdfsFileObject.class
org.apache.commons.vfs2.provider.hdfs.HdfsFileProvider.class
org.apache.commons.vfs2.provider.hdfs.HdfsFileSystem.class
org.apache.commons.vfs2.provider.hdfs.HdfsFileSystemConfigBuilder.class
org.apache.commons.vfs2.provider.hdfs.HdfsRandomAccessContent.class
org.apache.commons.vfs2.provider.http.HttpClientFactory.class
org.apache.commons.vfs2.provider.http.HttpFileContentInfoFactory.class
org.apache.commons.vfs2.provider.http.HttpFileNameParser.class
org.apache.commons.vfs2.provider.http.HttpFileObject.class
org.apache.commons.vfs2.provider.http.HttpFileProvider.class
org.apache.commons.vfs2.provider.http.HttpFileSystem.class
org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder.class
org.apache.commons.vfs2.provider.http.HttpRandomAccessContent.class
org.apache.commons.vfs2.provider.https.HttpsFileNameParser.class
org.apache.commons.vfs2.provider.https.HttpsFileProvider.class
org.apache.commons.vfs2.provider.jar.JarFileObject.class
org.apache.commons.vfs2.provider.jar.JarFileProvider.class
org.apache.commons.vfs2.provider.jar.JarFileSystem.class
org.apache.commons.vfs2.provider.jar.JarURLConnectionImpl.class
org.apache.commons.vfs2.provider.local.DefaultLocalFileProvider.class
org.apache.commons.vfs2.provider.local.GenericFileNameParser.class
org.apache.commons.vfs2.provider.local.LocalFile.class
org.apache.commons.vfs2.provider.local.LocalFileName.class
org.apache.commons.vfs2.provider.local.LocalFileNameParser.class
org.apache.commons.vfs2.provider.local.LocalFileRandomAccessContent.class
org.apache.commons.vfs2.provider.local.LocalFileSystem.class
org.apache.commons.vfs2.provider.local.WindowsFileName.class
org.apache.commons.vfs2.provider.local.WindowsFileNameParser.class
org.apache.commons.vfs2.provider.ram.RamFileData.class
org.apache.commons.vfs2.provider.ram.RamFileObject.class
org.apache.commons.vfs2.provider.ram.RamFileOutputStream.class
org.apache.commons.vfs2.provider.ram.RamFileProvider.class
org.apache.commons.vfs2.provider.ram.RamFileRandomAccessContent.class
org.apache.commons.vfs2.provider.ram.RamFileSystem.class
org.apache.commons.vfs2.provider.ram.RamFileSystemConfigBuilder.class
org.apache.commons.vfs2.provider.res.ResourceFileProvider.class
org.apache.commons.vfs2.provider.res.ResourceFileSystemConfigBuilder.class
org.apache.commons.vfs2.provider.sftp.IdentityInfo.class
org.apache.commons.vfs2.provider.sftp.IdentityRepositoryFactory.class
org.apache.commons.vfs2.provider.sftp.SftpClientFactory.class
org.apache.commons.vfs2.provider.sftp.SftpFileNameParser.class
org.apache.commons.vfs2.provider.sftp.SftpFileObject.class
org.apache.commons.vfs2.provider.sftp.SftpFileProvider.class
org.apache.commons.vfs2.provider.sftp.SftpFileSystem.class
org.apache.commons.vfs2.provider.sftp.SftpFileSystemConfigBuilder.class
org.apache.commons.vfs2.provider.sftp.SftpRandomAccessContent.class
org.apache.commons.vfs2.provider.sftp.SftpStreamProxy.class
org.apache.commons.vfs2.provider.sftp.TrustEveryoneUserInfo.class
org.apache.commons.vfs2.provider.tar.TarFileObject.class
org.apache.commons.vfs2.provider.tar.TarFileProvider.class
org.apache.commons.vfs2.provider.tar.TarFileSystem.class
org.apache.commons.vfs2.provider.tar.Tbz2FileProvider.class
org.apache.commons.vfs2.provider.tar.TgzFileProvider.class
org.apache.commons.vfs2.provider.temp.TemporaryFileProvider.class
org.apache.commons.vfs2.provider.url.UrlFileName.class
org.apache.commons.vfs2.provider.url.UrlFileNameParser.class
org.apache.commons.vfs2.provider.url.UrlFileObject.class
org.apache.commons.vfs2.provider.url.UrlFileProvider.class
org.apache.commons.vfs2.provider.url.UrlFileSystem.class
org.apache.commons.vfs2.provider.webdav.ExceptionConverter.class
org.apache.commons.vfs2.provider.webdav.WebdavFileContentInfoFactory.class
org.apache.commons.vfs2.provider.webdav.WebdavFileNameParser.class
org.apache.commons.vfs2.provider.webdav.WebdavFileObject.class
org.apache.commons.vfs2.provider.webdav.WebdavFileProvider.class
org.apache.commons.vfs2.provider.webdav.WebdavFileSystem.class
org.apache.commons.vfs2.provider.webdav.WebdavFileSystemConfigBuilder.class
org.apache.commons.vfs2.provider.webdav.WebdavMethodRetryHandler.class
org.apache.commons.vfs2.provider.zip.ZipFileObject.class
org.apache.commons.vfs2.provider.zip.ZipFileProvider.class
org.apache.commons.vfs2.provider.zip.ZipFileSystem.class
org.apache.commons.vfs2.tasks.AbstractSyncTask.class
org.apache.commons.vfs2.tasks.CopyTask.class
org.apache.commons.vfs2.tasks.DeleteTask.class
org.apache.commons.vfs2.tasks.MkdirTask.class
org.apache.commons.vfs2.tasks.MoveTask.class
org.apache.commons.vfs2.tasks.ShowFileTask.class
org.apache.commons.vfs2.tasks.SyncTask.class
org.apache.commons.vfs2.tasks.VfsTask.class
org.apache.commons.vfs2.util.CombinedResources.class
org.apache.commons.vfs2.util.Cryptor.class
org.apache.commons.vfs2.util.CryptorFactory.class
org.apache.commons.vfs2.util.DefaultCryptor.class
org.apache.commons.vfs2.util.DelegatingFileSystemOptionsBuilder.class
org.apache.commons.vfs2.util.EncryptUtil.class
org.apache.commons.vfs2.util.FileObjectUtils.class
org.apache.commons.vfs2.util.Messages.class
org.apache.commons.vfs2.util.MonitorInputStream.class
org.apache.commons.vfs2.util.MonitorOutputStream.class
org.apache.commons.vfs2.util.MonitorRandomAccessContent.class
org.apache.commons.vfs2.util.Os.class
org.apache.commons.vfs2.util.OsFamily.class
org.apache.commons.vfs2.util.PosixPermissions.class
org.apache.commons.vfs2.util.RandomAccessMode.class
org.apache.commons.vfs2.util.UserAuthenticatorUtils.class
org.apache.commons.vfs2.util.WeakRefFileListener.class
org/apache/commons/vfs2/Resources.properties
org/apache/commons/vfs2/impl/providers.xml
org/apache/commons/vfs2/tasks/antlib.xml
org/apache/commons/vfs2/tasks/tasks.properties

Pom

commons-vfs2-2.1.pom file content.

<?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>

  <name>Apache Commons VFS Core</name>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-vfs2</artifactId>
  <version>2.1</version>
  <description>Apache Commons VFS is a Virtual File System library.</description>
  <url>http://commons.apache.org/proper/commons-vfs/</url>

  <parent>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-vfs2-project</artifactId>
    <version>2.1</version>
    <relativePath>../</relativePath>
  </parent>

  <dependencies>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
    </dependency>
    <dependency>
      <groupId>ant</groupId>
      <artifactId>ant</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>commons-net</groupId>
      <artifactId>commons-net</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-compress</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-collections4</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-common</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-hdfs</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.apache.jackrabbit</groupId>
      <artifactId>jackrabbit-webdav</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>com.jcraft</groupId>
      <artifactId>jsch</artifactId>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
      <scope>test</scope>
    </dependency>
    <!-- Test FTP with Apache FTP Server (MINA) -->
    <dependency>
      <groupId>org.apache.ftpserver</groupId>
      <artifactId>ftpserver-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <scope>test</scope>
    </dependency>
    <!-- Test SFTP with Apache SHHd Server (MINA) -->
    <dependency>
      <groupId>org.apache.sshd</groupId>
      <artifactId>sshd-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.bouncycastle</groupId>
      <artifactId>bcprov-jdk16</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <scope>test</scope>
    </dependency>
    <!-- Test HTTP with Apache HttpComponent Core -->
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpcore-nio</artifactId>
      <scope>test</scope>
    </dependency>
    <!-- Test WebDAV with Apache Jackrabbit-->
    <dependency>
      <groupId>org.apache.jackrabbit</groupId>
      <artifactId>jackrabbit-standalone</artifactId>
      <scope>test</scope>
    </dependency>
    <!-- Test HDFS with Apache Hadoop -->
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-common</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
      <exclusions>
        <exclusion>
         <!-- VFS-606 - tools.jar not available in Java 9
              This exclusion can be removed after upgrading Hadoop
              to 2.7.1 or later  
          -->
          <groupId>jdk.tools</groupId>
          <artifactId>jdk.tools</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-hdfs</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>javax.ws.rs</groupId>
      <artifactId>jsr311-api</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <properties>
    <vfs.parent.dir>${basedir}/..</vfs.parent.dir>
  </properties>

  <build>
    <resources>
      <resource>
        <directory>src/main/java</directory>
        <excludes>
          <exclude>**/*.html</exclude>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
      <!-- include NOTICE/LICENSE in generated jar -->
      <resource>
        <directory>${vfs.parent.dir}</directory>
        <targetPath>META-INF</targetPath>
        <includes>
          <include>NOTICE.txt</include>
          <include>LICENSE.txt</include>
        </includes>
      </resource>
    </resources>


    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
      </testResource>
      <!-- include NOTICE/LICENSE in generated test jar -->
      <testResource>
        <directory>${vfs.parent.dir}</directory>
        <targetPath>META-INF</targetPath>
        <includes>
          <include>NOTICE.txt</include>
          <include>LICENSE.txt</include>
        </includes>
      </testResource>
    </testResources>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-test-classes</phase>
            <configuration>
              <target>
                <move todir="${project.build.testOutputDirectory}/test-data/code" failonerror="false">
                  <fileset dir="${project.build.testOutputDirectory}/code" />
                </move>
              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <trimStackTrace>false</trimStackTrace>
          <systemPropertyVariables>
            <test.basedir>target/test-classes/test-data</test.basedir>
            <test.basedir.res>test-data</test.basedir.res>
            <derby.stream.error.file>target/derby.log</derby.stream.error.file>
          </systemPropertyVariables>
          <excludes>
            <!-- Main class -->
            <exclude>**/RunTest.java</exclude>
            <!-- inner classes -->
            <exclude>**/*$*</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>webdav</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <systemPropertyVariables>
                <test.webdav.uri>${test.webdav.uri}</test.webdav.uri>
              </systemPropertyVariables>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>ftp</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <systemPropertyVariables>
                <test.ftp.uri>${test.ftp.uri}</test.ftp.uri>
              </systemPropertyVariables>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>sftp</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <systemPropertyVariables>
                <test.sftp.uri>${test.sftp.uri}</test.sftp.uri>
              </systemPropertyVariables>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>http</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <systemPropertyVariables>
                <test.http.uri>${test.http.uri}</test.http.uri>
              </systemPropertyVariables>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- On Windows we disable hdfs tests by default. -->
    <profile>
        <id>no-test-hdfs</id>
        <activation>
            <activeByDefault>false</activeByDefault>
            <os>
                <family>Windows</family>
            </os>
        </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <excludes>
                            <exclude>**/HdfsFileProviderTest.java</exclude>
                            <exclude>**/HdfsFileProviderTestCase.java</exclude>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </profile>
  </profiles>

</project>

POM Entry

<dependency>
   <groupId>org.apache.commons</groupId>
   <artifactId>commons-vfs2</artifactId>
   <version>2.1</version>
</dependency>

Download

If you think the following commons-vfs2-2.1.jar downloaded from Maven central repository is inappropriate, such as containing malicious code/tools or violating the copyright, please email , thanks.



Download commons-vfs2-2.1.jar file




PreviousNext

Related