K
K
kirawa2016-05-20 09:04:25
Java
kirawa, 2016-05-20 09:04:25

How to make such a sevlet?

I need to create a servlet with which it will be possible to download a file by url. Moreover, it is in such a way that the file that needs to be downloaded is added to the dependency of the project.

<dependency>
            <groupId>doc</groupId>
            <artifactId>com.asciidoc</artifactId>
            <version>1.0</version>
            <scope>system</scope>
            <systemPath>FilePath</systemPath>
        </dependency>

How do I get this file from the dependencies in the servlet itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-05-20
@asmailiks

I think you should look at maven-resources-plugin like in this example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question