Bharath
Bharath

Reputation: 11

Delete only directories in maven

I am Using maven to create a war file

my folder <app> contains folder1 folder2 file1 ..

i want to get only file1

I have tried with the following..

 <packagingExcludes>app/*/*.js</packagingExcludes> 

any help here

Upvotes: 1

Views: 60

Answers (1)

Ramzy
Ramzy

Reputation: 7138

The configuration is correct but the regex looks different.We use ** to indicate multiple directories and * to indicate an optional part of a file or directory name, as mentioned here. If I am not wrong, your regex looks like excluding all .js files in all folders of app, which is different from your requirement

Upvotes: 1

Related Questions