commons-vfs2-spring-boot-autoconfigure

Apache Commons Virtual File System Spring Boot Starter

License

License

Categories

Categories

Spring Boot Container Microservices Auto Application Layer Libs Code Generators config Configuration
GroupId

GroupId

com.github.bxforce
ArtifactId

ArtifactId

commons-vfs2-spring-boot-autoconfigure
Last Version

Last Version

1.0.1-RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

commons-vfs2-spring-boot-autoconfigure
Apache Commons Virtual File System Spring Boot Starter
Project Organization

Project Organization

bxforce

Download commons-vfs2-spring-boot-autoconfigure

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.bxforce/commons-vfs2-spring-boot-autoconfigure/ -->
<dependency>
    <groupId>com.github.bxforce</groupId>
    <artifactId>commons-vfs2-spring-boot-autoconfigure</artifactId>
    <version>1.0.1-RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.bxforce/commons-vfs2-spring-boot-autoconfigure/
implementation 'com.github.bxforce:commons-vfs2-spring-boot-autoconfigure:1.0.1-RELEASE'
// https://jarcasting.com/artifacts/com.github.bxforce/commons-vfs2-spring-boot-autoconfigure/
implementation ("com.github.bxforce:commons-vfs2-spring-boot-autoconfigure:1.0.1-RELEASE")
'com.github.bxforce:commons-vfs2-spring-boot-autoconfigure:jar:1.0.1-RELEASE'
<dependency org="com.github.bxforce" name="commons-vfs2-spring-boot-autoconfigure" rev="1.0.1-RELEASE">
  <artifact name="commons-vfs2-spring-boot-autoconfigure" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.bxforce', module='commons-vfs2-spring-boot-autoconfigure', version='1.0.1-RELEASE')
)
libraryDependencies += "com.github.bxforce" % "commons-vfs2-spring-boot-autoconfigure" % "1.0.1-RELEASE"
[com.github.bxforce/commons-vfs2-spring-boot-autoconfigure "1.0.1-RELEASE"]

Dependencies

compile (5)

Group / Artifact Type Version
org.springframework.boot : spring-boot jar 2.3.3.RELEASE
org.springframework.boot : spring-boot-autoconfigure jar 2.3.3.RELEASE
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.3.3.RELEASE
org.apache.commons : commons-vfs2 jar 2.7.0
com.jcraft : jsch jar 0.1.55

test (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.3.3.RELEASE

Project Modules

There are no modules declared in this project.

Apache Commons Virtual File System Spring Boot Starter

Maven Central javadoc

Apache Commons Virtual File System Spring Boot Starter provides an easy way to get your Spring boot application using Apache Commons Virtual File System up and running quickly.

To use the Apache Commons Virtual File System Spring Boot Starter in your projects you can include the maven dependency in your project pom file:

<dependency>
    <groupId>com.github.bxforce</groupId>
    <artifactId>commons-vfs2-spring-boot-starter</artifactId>
    <version>1.0.1-RELEASE</version>
</dependency>

Usage

First add the configuration in your application.yml. There is a lot of parameters, you can check the file SftpFileSystemProperties and the doc of vfs2 (https://commons.apache.org/proper/commons-vfs/api.html) if you need something particular.

commons-vfs2:
    sftp:
        preferredAuthentications: password

In your code, you autowire FileSystemManager and the options FileSystemOptions

@Autowired
private FileSystemManager manager;

@Autowired
private FileSystemOptions options;

And you can then connect to the sftp with the manager. ftpURI is the url to your ftp, ie sftp://username:[email protected]/path/to/file

FileObject remote = manager.resolveFile(ftpURI, options);

Versions

Version
1.0.1-RELEASE
1.0.0-RELEASE