commons-vfs2-spring-boot-starter

Apache Commons Virtual File System Spring Boot Starter

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.github.bxforce
ArtifactId

ArtifactId

commons-vfs2-spring-boot-starter
Last Version

Last Version

1.0.1-RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project Organization

bxforce

Download commons-vfs2-spring-boot-starter

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter jar 2.3.3.RELEASE
com.github.bxforce : commons-vfs2-spring-boot-autoconfigure jar 1.0.1-RELEASE
org.apache.commons : commons-vfs2 jar 2.7.0
com.jcraft : jsch jar 0.1.55

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