maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael-O <>
Subject Re: How to create new directory in target folder with Maven
Date Sat, 07 Sep 2013 19:12:29 GMT
Am 2013-09-07 20:56, schrieb Bidlo:
> Hello, thanks for answer.
> 1. It's a plain Java library
> 2. Not a Maven plugin
> Well, this is what I tried inside my library.
> File reportFolder = new File("target/myLibrary");
> reportFolder.mkdir(); //this creates folder in the project which is using
> the library, so far so good
> and then
> File foldersToBeCopiedFromMyLibrary = new
> File("src/main/resources/bootstrap"); //this is inside myLibrary project
> FileUtils.copyDirectoryToDirectory(foldersToBeCopiedFromMyLibrary,
> reportFolder);
> And this fails on FileNotFoundException because the project which is using
> myLibrary doesn't have bootstrap folder in src/main/resources. So I can
> actually create folder in the client project but I don't know how to copy
> files and folders from library project to it's client which is using it.
> (it's the same case like the Surefire does, it's copying CSS and JS files to
> the target/surefire dir in the client)

This does not look like a Maven problem. You are seeking help for a 
general Java problem. Go for

This is clearly off-topics unless you are writing a Maven plugin and 
need some help.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message