https://bz.apache.org/bugzilla/show_bug.cgi?id=43144
--- Comment #12 from KC Wong <kc.wong.p...@gmail.com> --- I encountered the same problem today. Trying to pack the following into a JAR using <archive> took 5 minutes: <path id="runtime_classpath"> <pathelement path="${javax:javaee-api:jar}"/> <pathelement path="${com.solacesystems:sol-jms:jar}"/> <pathelement path="${com.fasterxml.jackson.core:jackson-databind:jar}"/> <pathelement path="${com.fasterxml.jackson.core:jackson-core:jar}"/> <pathelement path="${com.fasterxml.jackson.core:jackson-annotations:jar}"/> <pathelement path="${commons-logging:commons-logging:jar}"/> <pathelement path="${commons-lang:commons-lang:jar}"/> <pathelement path="${log4j:log4j:jar}"/> <pathelement path="${org.slf4j:slf4j-api:jar}"/> <pathelement path="${org.slf4j:slf4j-log4j12:jar}"/> </path> <jar destfile="${out.dir}/${env}/${project.build.finalName}.jar"> <fileset dir="${project.build.directory}\${project.build.finalName}\WEB-INF\classes" includes="**/*.class, **/*.json, **/*.properties" /> <archives> <zips> <path refid="runtime_classpath" /> </zips> </archives> <manifest> <attribute name="Main-Class" value="${mainClass}"/> </manifest> </jar> I changed to use Unzip to a temp folder, and add the temp folder as a fileset instead. That took 1 minute. The archive tag is doing something really inefficiently... -- You are receiving this mail because: You are the assignee for the bug.