My project folder has a bunch of dependent jars in:

```
/lib/someapi-1.1.1/main.jar
/lib/someotherapi-2.2.2/api-2.2.2.jar
/lib/...

```

I build a JAR file and my application requires that the dependent jars get included in the final jar in the /lib folder within the jar, so the final jar should have a structure something like:

```
/org/me/myclasses.class
/lib/main.jar
/lib/api-2.2.2.jar

```

How do I get the /lib/\*.jar files flattened an included in the /lib directory of my final jar file?

---

**CLARIFICATION**

I'm essentially just trying to get a set of resource files flattened and added to a given directory in my final jar.